← Back to Skills Marketplace
259
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install msteamschinaadapter
Description
Patch OpenClaw to support Microsoft Teams China (世纪互联/21Vianet). Use when: (1) user reports msteams webhook 401 errors or AADSTS500011 with api.botframework....
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install msteamschinaadapter - After installation, invoke the skill by name or use
/msteamschinaadapter - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is 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.... It is an AI Agent Skill for Claude Code / OpenClaw, with 259 downloads so far.
How do I install msteams china adapter?
Run "/install msteamschinaadapter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is msteams china adapter free?
Yes, msteams china adapter is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does msteams china adapter support?
msteams china adapter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created msteams china adapter?
It is built and maintained by yhs666 (@yhs666); the current version is v1.0.1.
More Skills