agentmesh-ai 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/GUIDE.md +34 -14
  2. package/package.json +1 -1
package/GUIDE.md CHANGED
@@ -80,26 +80,35 @@ git push
80
80
  npx agentmesh-ai setup
81
81
  ```
82
82
 
83
- 它会自动检测你电脑上安装了哪些 AI 工具,然后生成对应的配置文件:
83
+ 它会自动检测你电脑上安装了哪些 AI 工具,然后配置 MCP:
84
84
 
85
85
  ```
86
86
  🔍 检测到你使用的 AI 工具:
87
87
  ✓ Claude Code
88
- Cursor
88
+ Cursor
89
89
 
90
- ? 要为哪些工具配置 AgentMesh
90
+ ? Configure AgentMesh for which tools?
91
91
  [x] Claude Code
92
- [x] Cursor
93
92
 
94
- 已写入 .claude/mcp.json
95
- ✅ 已写入 .cursor/mcp.json
93
+ Claude Code: configured via `claude mcp add`
96
94
  ```
97
95
 
98
- ### 如果 setup 没有自动识别
96
+ - **Claude Code** — setup 会自动调用 `claude mcp add` 命令配置,无需手动操作
97
+ - **Cursor / Windsurf** — setup 会生成对应的 `.cursor/mcp.json` 或 `.windsurf/mcp.json`
98
+
99
+ ### 如果 setup 没有自动配置成功
99
100
 
100
101
  你也可以手动配置。
101
102
 
102
- **Claude Code** — 创建 `.claude/mcp.json`:
103
+ **Claude Code** — 在终端运行:
104
+
105
+ ```bash
106
+ claude mcp add agentmesh -e AGENTHUB_AGENT_ID=你的agent-id -- npx -y agentmesh-ai mcp
107
+ ```
108
+
109
+ agent-id 就是 init 时生成的那个(看 `.agenthub/hub.yaml` 里的 `id` 字段)。
110
+
111
+ **Cursor** — 创建 `.cursor/mcp.json`:
103
112
 
104
113
  ```json
105
114
  {
@@ -115,14 +124,14 @@ npx agentmesh-ai setup
115
124
  }
116
125
  ```
117
126
 
118
- **Cursor** — 创建 `.cursor/mcp.json`,内容一样。
119
-
120
- agent-id 就是 init 时生成的那个(看 `.agenthub/hub.yaml` 里的 `id` 字段)。
121
-
122
127
  ### 重启你的 AI 工具
123
128
 
124
129
  **配置完后必须重启。** 关掉 Claude Code / Cursor,重新打开。
125
130
 
131
+ ### 验证 MCP 是否加载
132
+
133
+ 重启后在 Claude Code 里输入 `/mcp`,应该能看到 `agentmesh` 在列表中。
134
+
126
135
  ---
127
136
 
128
137
  ## 4. 验证是否生效
@@ -249,7 +258,18 @@ npx agentmesh-ai serve
249
258
 
250
259
  ### 其他人连入
251
260
 
252
- 其他人在自己的 MCP 配置(`.claude/mcp.json` 或 `.cursor/mcp.json`)里加上对话空间地址:
261
+ **Claude Code 用户:**
262
+
263
+ 先移除旧配置再重新添加(带上对话空间地址):
264
+
265
+ ```bash
266
+ claude mcp remove agentmesh
267
+ claude mcp add agentmesh -e AGENTHUB_AGENT_ID=你的agent-id -e AGENTHUB_SERVER_URL=ws://192.168.1.100:4800 -e AGENTHUB_SERVER_KEY=abc123 -- npx -y agentmesh-ai mcp
268
+ ```
269
+
270
+ **Cursor / Windsurf 用户:**
271
+
272
+ 在 `.cursor/mcp.json` 或 `.windsurf/mcp.json` 的 `env` 里加上对话空间地址:
253
273
 
254
274
  ```json
255
275
  {
@@ -258,7 +278,7 @@ npx agentmesh-ai serve
258
278
  "command": "npx",
259
279
  "args": ["-y", "agentmesh-ai", "mcp"],
260
280
  "env": {
261
- "AGENTHUB_AGENT_ID": "xiaohong-cursor",
281
+ "AGENTHUB_AGENT_ID": "你的agent-id",
262
282
  "AGENTHUB_SERVER_URL": "ws://192.168.1.100:4800",
263
283
  "AGENTHUB_SERVER_KEY": "abc123"
264
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmesh-ai",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Shared memory & conversation protocol for AI coding agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",