Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

msteamschinaadaptermsteamschinaadapter 搜索

Agent Skill

msteamschinaadapter 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,680

周安装

320

GitHub Stars

公开资料未说明

下载量

2,560
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:msteamschinaadapter(msteamschinaadapter 搜索)
来源仓库:https://github.com/yhs666/msteamschinaadapter
安装命令:
openclaw skills install msteamschinaadapter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install msteamschinaadapter

简介

修补 OpenClaw 以支持 Microsoft Teams 中国版(世纪互联)。

  • 解决 webhook 401 错误与 AADSTS500011 认证问题。
  • 适配国内 Azure AD 环境,确保集成稳定性。
  • 安装命令:openclaw skills install msteamschinaadapter。
  • 注意:仅限特定区域用户使用,需验证网络环境。

SKILL.md

name
msteams-china-patch
description
Patch OpenClaw to support Microsoft Teams China (世纪互联/21Vianet). Use when: (1) user reports msteams webhook 401 errors or AADSTS500011 with api.botframework.com, (2) connecting to Teams China/世纪互联, (3) msteams webhook failed errors appear in logs. This skill runs the msteams-china patch script and provides manual fallback steps for any patches that cannot be auto-applied.

MSTeams China Patch

Patches OpenClaw's compiled msteams extension to use Microsoft Teams China (世纪互联/21Vianet) endpoints.

哈希无关设计: 脚本通过内容 marker(函数名、字符串字面量)定位文件,不依赖 src-CfmuZgBM.js 这类哈希文件名,OpenClaw 更新后哈希变化也能正常运行。

Step 1 — Run the Patch Script

node /home/yang/.openclaw/workspace/skills/msteams-china-patch/scripts/apply_patch.js

Expected output:

Indexing dist files...
  1448 files indexed

Applying patches...

[OK]   buildMSTeamsAuthConfig - MSAL 中国区认证
[OK]   GRAPH_ROOT - Graph API 中国区
[OK]   getAccessToken Graph scope - 中国区
...
=== Result: 8 applied, 8 already, 0 missing, 0 not found ===

Restart gateway: systemctl --user restart openclaw-gateway

Step 2 — Restart Gateway

systemctl --user restart openclaw-gateway
# or
openclaw gateway restart

Step 3 — Verify

Send a test message to the bot from Teams. Check logs:

openclaw gateway logs --tail 50

What the Script Does

脚本通过内容 marker 定位目标文件(哈希文件名自动兼容):

#PatchMarker 定位
1buildMSTeamsAuthConfig — adds authority, issuers, scope for ChinabuildMSTeamsAuthConfig + getAuthConfigWithDefaults
2GRAPH_ROOTmicrosoftgraph.chinacloudapi.cnGRAPH_ROOT + microsoftgraph
3getAccessToken("https://graph.microsoft.com") → ChinaMsalTokenProvider + GRAPH_ROOT
4DEFAULT_MEDIA_HOST_ALLOWLIST adds China Graph CDNDEFAULT_MEDIA_HOST_ALLOWLIST + microsoftgraph
5DEFAULT_MEDIA_AUTH_HOST_ALLOWLIST adds China endpointsDEFAULT_MEDIA_AUTH_HOST_ALLOWLIST + microsoftgraph
6getDefaultIssuers adds China issuergetDefaultIssuers + api.botframework.com
7MsalConnectionManager.applyConnectionDefaults issuers adds ChinaMsalConnectionManager + applyConnectionDefaults
8jwksUri adds China JWKS endpointpayload.iss + login.botframework.com
9verifyOptions audience adds ChinaverifyOptions + api.botframework.com
10getTokenServiceEndpoint default → ChinagetTokenServiceEndpoint + TOKEN_SERVICE_ENDPOINT
11createConnectorClientWithIdentity scope default → ChinacreateConnectorClientWithIdentity
12createUserTokenClient scope/audience defaults → ChinacreateUserTokenClient
13getAccessToken botframework scope → ChinaMsalTokenProvider + loadAuthConfigFromEnv
14scopeCandidatesForUrl adds China Graph domainscopeCandidatesForUrl + graph.microsoft.com

Manual Fallback (if script reports missing or not found)

If any patch shows missing (pattern not found in located file) or not found (no file matches markers):

  1. Read the endpoints reference:
   references/endpoints.md
  1. Locate the file manually — search for the function name or string literal in dist:
   grep -r "functionName" ~/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/*.js
  1. Read the actual content and use edit tool with the real oldText → newText.

Key Bug: Audience Mismatch

The most critical bug the script fixes is in buildMSTeamsAuthConfig. The original code returns:

return sdk.getAuthConfigWithDefaults({ clientId, clientSecret, tenantId });

This causes MSAL to fall back to global endpoints because no China configuration is passed. The script fixes this by adding:

return sdk.getAuthConfigWithDefaults({
    clientId: creds.appId,
    clientSecret: creds.appPassword,
    tenantId: creds.tenantId,
    authority: "https://login.chinacloudapi.cn",
    issuers: ["https://api.botframework.azure.cn", "https://sts.chinacloudapi.cn/"],
    scope: "https://api.botframework.azure.cn"
});

Configuration (After Patching)

Configure the msteams channel with the authority field:

{
  "channels": {
    "msteams": {
      "enabled": true,
      "appId": "<APP_ID>",
      "appPassword": "<APP_PASSWORD>",
      "tenantId": "<TENANT_ID>",
      "authority": "https://login.partner.microsoftonline.cn"
    }
  }
}

Or via environment variables:

MSTEAMS_AUTHORITY=https://login.partner.microsoftonline.cn
MSTEAMS_APP_ID=<APP_ID>
MSTEAMS_APP_PASSWORD=<APP_PASSWORD>
MSTEAMS_TENANT_ID=<TENANT_ID>

Endpoints Reference

See references/endpoints.md for the complete China vs Global endpoint table (AAD authority, Bot Framework API, Graph API, JWKS URIs, AAD token issuers).

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.78%
按下载量换算2,401

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills