@vrs-soft/wecom-aibot-mcp 3.4.3 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrs-soft/wecom-aibot-mcp",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "企业微信智能机器人 MCP 客户端 - 连接 wecom-aibot-server daemon",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -50,27 +50,34 @@ description: 当用户说「现在开始通过微信联系」时触发,进入
50
50
 
51
51
  ### 3. 调用 enter_headless_mode
52
52
 
53
+ **强制前置校验**(避免错绑机器人):
54
+ - `cc_id` 必须取自步骤 2 读到的配置文件 / 步骤 2.1 生成的项目名
55
+ - `robot_id` 必须取自步骤 2 读到的 `robotName` / 步骤 2.2 用户选定的机器人
56
+ - **禁止用字面量或默认值**填这两个参数。下面所有示例里的 `${...}` 都是占位符,**不是常量**
57
+
53
58
  使用步骤 1 确定的 MCP 前缀:
54
59
 
55
60
  ```
56
61
  ${MCP}enter_headless_mode(
57
- cc_id="<项目名>",
58
- robot_id="<机器人名称>",
59
- mode="<channel http>",
60
- project_dir="<项目目录>"
62
+ cc_id="${步骤 2 / 2.1 得到的 ccId}",
63
+ robot_id="${步骤 2 / 2.2 得到的 robotName}",
64
+ mode="${步骤 1 确定的模式}",
65
+ project_dir="${当前项目目录}"
61
66
  )
62
67
  ```
63
68
 
64
- 例如 Channel 模式:
69
+ 例如 Channel 模式(假设步骤 2 已读到 `ccId="知识库", robotName="公司助理"`):
65
70
  ```
66
- mcp__wecom-aibot-channel__enter_headless_mode(cc_id="知识库", robot_id="CC", mode="channel", project_dir="...")
71
+ mcp__wecom-aibot-channel__enter_headless_mode(cc_id="知识库", robot_id="公司助理", mode="channel", project_dir="...")
67
72
  ```
68
73
 
69
- 例如 HTTP 模式:
74
+ 例如 HTTP 模式(同前提):
70
75
  ```
71
- mcp__wecom-aibot__enter_headless_mode(cc_id="知识库", robot_id="CC", mode="http", project_dir="...")
76
+ mcp__wecom-aibot__enter_headless_mode(cc_id="知识库", robot_id="公司助理", mode="http", project_dir="...")
72
77
  ```
73
78
 
79
+ > ⚠️ **示例里的 `公司助理` 是占位文案**,不要照抄。真实值来自 `.claude/wecom-aibot.json` 的 `robotName`,或本次会话中用户用 AskUserQuestion 选定的机器人名。配置存在但读出 `robotName` 与示例不符是正常的 —— 用配置里的,不要用示例里的。
80
+
74
81
  ### 2. 处理返回结果
75
82
 
76
83
  **返回字段**: