← 返回 Skills 市场
yhs666

msteams china adapter

作者 yhs666 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
259
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install msteamschinaadapter
功能描述
Patch OpenClaw to support Microsoft Teams China (世纪互联/21Vianet). Use when: (1) user reports msteams webhook 401 errors or AADSTS500011 with api.botframework....
安全使用建议
This skill contains a local Node script that will read and overwrite files inside your OpenClaw distribution to switch endpoints to Microsoft Teams China. That behavior is consistent with a legitimate patch, but be cautious because: 1) the manifest does not declare the config path it touches (the script defaults to a hardcoded /home/yang path or OPENCLAW_DIST), 2) running it will change installed files (make a backup or use version control), and 3) the source is unknown. Before running: review the full script contents yourself, confirm OPENCLAW_DIST points at the intended installation, run the script in a test environment or after backing up the dist directory, inspect the diffs the script would make, and only run it if you trust the author. If you are unsure, ask the publisher for provenance (repo or release URL) or request a signed release rather than running an instruction-only patch from an unknown source.
功能分析
Type: OpenClaw Skill Name: msteamschinaadapter Version: 1.0.1 The skill bundle contains a Node.js script (scripts/apply_patch.js) that performs direct 'monkey-patching' of the OpenClaw installation by modifying compiled JavaScript files in the node_modules directory. While the script's logic appears focused on updating Microsoft Teams endpoints for the China region (e.g., changing graph.microsoft.com to microsoftgraph.chinacloudapi.cn), the practice of an agent-led script modifying the core application's code and authentication logic (buildMSTeamsAuthConfig, jwksUri) is a high-risk behavior. Additionally, the script contains hardcoded environment-specific paths (/home/yang/) and lacks safety checks, though no evidence of intentional data exfiltration or backdoors was found.
能力评估
Purpose & Capability
The skill's stated purpose (patch OpenClaw for Teams China) matches the content: a script that searches the OpenClaw dist and replaces endpoint/authority strings. However, the manifest declares no required config paths or environment variables even though the script reads/writes the OpenClaw distribution (default hardcoded to /home/yang/.nvm/…/openclaw/dist or overridden by OPENCLAW_DIST). That omission is an incoherence: the skill needs access to user files but doesn't declare those paths.
Instruction Scope
SKILL.md instructs running the included Node script against a specific dist path and to restart the gateway; the script indexes all .js files in the dist and performs targeted string replacements, writing changes back to disk. This is in-scope for a patch, but the instructions reference hardcoded home paths (e.g., /home/yang and a specific ~/.nvm path) and advise grepping/editing files under the user's Node global modules — actions which require filesystem read/write privileges and could corrupt the installation if used incorrectly.
Install Mechanism
No install spec or external downloads are used — the skill is instruction-only with a bundled script. That limits supply-chain risk (nothing is fetched at install time). The script is executed locally by the user/agent, which is expected for a patch tool.
Credentials
The skill declares no required environment variables or credentials, which aligns with no external network calls. The script supports an OPENCLAW_DIST environment override but does not declare it; SKILL.md also shows optional MSTEAMS_* env variables for post-patch configuration. The missing declaration of OPENCLAW_DIST / config paths is a minor mismatch that reduces transparency.
Persistence & Privilege
The skill does not request permanent inclusion (always: false) and does not autonomously persist credentials. It does, however, modify another installed application's files (OpenClaw's dist). That is expected for a patch but is a privileged action — altering installed application files should be done with backups and from a trusted source.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install msteamschinaadapter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /msteamschinaadapter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
msteamschinaadapter 1.0.1 - Added patch script (scripts/apply_patch.js) to automatically update OpenClaw’s compiled msteams extension for Microsoft Teams China endpoints. - Added endpoints reference (references/endpoints.md) for quick mapping between global and China-specific endpoints. - Skill now provides both automated patching instructions and clear manual fallback steps. - Major bug fix: Ensures the adapter configures China-specific authorities, issuers, and scopes to resolve audience mismatch errors and AADSTS500011 issues with Teams China.
v1.0.0
change msteams plugin to China env
元数据
Slug msteamschinaadapter
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

msteams china adapter 是什么?

Patch OpenClaw to support Microsoft Teams China (世纪互联/21Vianet). Use when: (1) user reports msteams webhook 401 errors or AADSTS500011 with api.botframework.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 259 次。

如何安装 msteams china adapter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install msteamschinaadapter」即可一键安装,无需额外配置。

msteams china adapter 是免费的吗?

是的,msteams china adapter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

msteams china adapter 支持哪些平台?

msteams china adapter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 msteams china adapter?

由 yhs666(@yhs666)开发并维护,当前版本 v1.0.1。

💬 留言讨论