@bsbofmusic/agent-reach-mcp 1.2.0 → 1.2.1
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/README.md +197 -264
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,114 +1,126 @@
|
|
|
1
1
|
# Agent-Reach MCP
|
|
2
2
|
|
|
3
|
-
> ✅
|
|
3
|
+
> ✅ One-click enable | ✅ Full capability (exec) | ✅ Self-discovery (list) | ✅ Auto-update | ✅ Diagnosable (doctor) | ✅ Bootstrap self-healing
|
|
4
4
|
|
|
5
5
|
MCP (stdio) server that provides full access to [Agent-Reach](https://github.com/Panniantong/Agent-Reach) for OpenCode / Claude Code / Cursor.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Wrapper Notice
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
This project is an MCP wrapper for **Agent-Reach**, enabling its functionality through the MCP protocol.
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
13
|
+
- **Upstream Project**: [Agent-Reach](https://github.com/Panniantong/Agent-Reach)
|
|
14
|
+
- **This is NOT an official release** of Agent-Reach
|
|
15
|
+
- Upstream project name, trademark, and copyright belong to their respective owners
|
|
16
|
+
- Upstream project is licensed under MIT; see [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md)
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
##
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
### One-Click Enable (Recommended)
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"command": ["node", "FULL_PATH_TO_INDEX_JS"],
|
|
27
|
+
"type": "stdio"
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or via npx (may have Windows JScript issues):
|
|
21
32
|
|
|
22
33
|
```json
|
|
23
34
|
{
|
|
24
|
-
"command": "npx",
|
|
25
|
-
"args": ["-y", "@bsbofmusic/agent-reach-mcp@latest"],
|
|
35
|
+
"command": ["npx", "-y", "@bsbofmusic/agent-reach-mcp@latest"],
|
|
26
36
|
"type": "stdio"
|
|
27
37
|
}
|
|
28
38
|
```
|
|
29
39
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
### What happens on enable:
|
|
41
|
+
|
|
42
|
+
1. 🔍 Environment detection (OS, Python, Node.js, network)
|
|
43
|
+
2. 📦 Auto-install Python venv
|
|
44
|
+
3. 🔄 Auto-install/upgrade Agent-Reach to latest
|
|
45
|
+
4. 🐳 Auto-install Docker Desktop (Windows: winget/choco, macOS: brew)
|
|
46
|
+
5. ✅ Smoke test verification
|
|
35
47
|
|
|
36
48
|
---
|
|
37
49
|
|
|
38
|
-
##
|
|
50
|
+
## What is Agent-Reach?
|
|
39
51
|
|
|
40
|
-
Agent-Reach
|
|
52
|
+
Agent-Reach gives your AI Agent "eyes to see the entire internet". Read and search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
|
|
41
53
|
|
|
42
|
-
|
|
|
43
|
-
|
|
44
|
-
| 🌐
|
|
45
|
-
| 📺 YouTube |
|
|
46
|
-
| 📡 RSS |
|
|
47
|
-
| 🐦 Twitter/X |
|
|
48
|
-
| 📖 Reddit |
|
|
49
|
-
| 📦 GitHub |
|
|
50
|
-
| 📺 Bilibili |
|
|
51
|
-
| 📕
|
|
52
|
-
|
|
|
54
|
+
| Platform | Feature | Status |
|
|
55
|
+
|----------|---------|--------|
|
|
56
|
+
| 🌐 Web Pages | Jina Reader (any URL) | ✅ Ready |
|
|
57
|
+
| 📺 YouTube | Transcript + video search | ✅ Ready |
|
|
58
|
+
| 📡 RSS | Read any RSS/Atom feed | ✅ Ready |
|
|
59
|
+
| 🐦 Twitter/X | Read tweets, search | ⚙️ Needs bird CLI |
|
|
60
|
+
| 📖 Reddit | Search, read posts/comments | ⚙️ Needs proxy |
|
|
61
|
+
| 📦 GitHub | Read repos, search | ⚙️ Needs gh CLI |
|
|
62
|
+
| 📺 Bilibili | Transcript + search | ⚙️ Needs proxy |
|
|
63
|
+
| 📕 XiaoHongShu | Search, read notes | ⚙️ Needs Docker |
|
|
64
|
+
| 🎵 Douyin | Parse video, get download URL | ⚙️ Needs Docker |
|
|
65
|
+
| 🔍 Web Search | Exa AI semantic search | ⚙️ Needs mcporter |
|
|
53
66
|
|
|
54
67
|
---
|
|
55
68
|
|
|
56
|
-
## 5
|
|
69
|
+
## 5 Core Tools (Required)
|
|
57
70
|
|
|
58
|
-
|
|
|
59
|
-
|
|
60
|
-
| `reach_ensure` | ✅
|
|
61
|
-
| `reach_doctor` | ✅
|
|
62
|
-
| `reach_exec` | ✅
|
|
63
|
-
| `reach_list_commands` | ✅
|
|
64
|
-
| `reach_version` | ✅
|
|
71
|
+
| Tool | Description |
|
|
72
|
+
|------|-------------|
|
|
73
|
+
| `reach_ensure` | ✅ Full self-healing: reinstall/upgrade + auto-install deps |
|
|
74
|
+
| `reach_doctor` | ✅ Diagnose all platform channels + output nextSteps |
|
|
75
|
+
| `reach_exec` | ✅ Universal entry - perfect replica of all features |
|
|
76
|
+
| `reach_list_commands` | ✅ Self-discovery - list all subcommands |
|
|
77
|
+
| `reach_version` | ✅ Version info + bootstrap status |
|
|
65
78
|
|
|
66
79
|
---
|
|
67
80
|
|
|
68
|
-
##
|
|
81
|
+
## Complete Tool List
|
|
69
82
|
|
|
70
|
-
###
|
|
83
|
+
### Core
|
|
71
84
|
|
|
72
|
-
|
|
|
73
|
-
|
|
74
|
-
| `reach_ensure` |
|
|
75
|
-
| `reach_doctor` |
|
|
76
|
-
| `reach_version` |
|
|
77
|
-
| `reach_check_update` |
|
|
78
|
-
| `reach_watch` |
|
|
79
|
-
| `reach_list_commands` |
|
|
85
|
+
| Tool | Description |
|
|
86
|
+
|------|-------------|
|
|
87
|
+
| `reach_ensure` | Ensure venv exists, upgrade to latest Agent-Reach |
|
|
88
|
+
| `reach_doctor` | Diagnose all platform channels, output nextSteps |
|
|
89
|
+
| `reach_version` | Show MCP + Agent-Reach version + bootstrap status |
|
|
90
|
+
| `reach_check_update` | Check for new versions on GitHub |
|
|
91
|
+
| `reach_watch` | Quick health check (for cron tasks) |
|
|
92
|
+
| `reach_list_commands` | List all available subcommands |
|
|
80
93
|
|
|
81
|
-
###
|
|
94
|
+
### Install & Configure
|
|
82
95
|
|
|
83
|
-
|
|
|
84
|
-
|
|
85
|
-
| `reach_install` |
|
|
86
|
-
| `reach_configure` |
|
|
87
|
-
| `reach_setup` |
|
|
96
|
+
| Tool | Description |
|
|
97
|
+
|------|-------------|
|
|
98
|
+
| `reach_install` | Install system dependencies (gh CLI, bird, mcporter) |
|
|
99
|
+
| `reach_configure` | Set config (proxy, token, cookies) |
|
|
100
|
+
| `reach_setup` | Interactive configuration wizard |
|
|
88
101
|
|
|
89
|
-
###
|
|
102
|
+
### Read & Search
|
|
90
103
|
|
|
91
|
-
|
|
|
92
|
-
|
|
93
|
-
| `reach_read` |
|
|
94
|
-
| `reach_search_twitter` |
|
|
95
|
-
| `reach_search_xhs` |
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
104
|
+
| Tool | Description |
|
|
105
|
+
|------|-------------|
|
|
106
|
+
| `reach_read` | Read any URL (Jina Reader) |
|
|
107
|
+
| `reach_search_twitter` | Search Twitter (needs bird CLI) |
|
|
108
|
+
| `reach_search_xhs` | Search XiaoHongShu (needs mcporter) |
|
|
109
|
+
| `reach_search_douyin` | Parse Douyin video (needs mcporter) |
|
|
110
|
+
| `reach_search_web` | Web search (Exa) |
|
|
111
|
+
| `reach_search_github` | Search GitHub (needs gh CLI) |
|
|
98
112
|
|
|
99
|
-
###
|
|
113
|
+
### Advanced
|
|
100
114
|
|
|
101
|
-
|
|
|
102
|
-
|
|
103
|
-
| `reach_exec` | 🔧
|
|
115
|
+
| Tool | Description |
|
|
116
|
+
|------|-------------|
|
|
117
|
+
| `reach_exec` | 🔧 Universal entry - execute any subcommand |
|
|
104
118
|
|
|
105
119
|
---
|
|
106
120
|
|
|
107
|
-
##
|
|
121
|
+
## Usage Examples
|
|
108
122
|
|
|
109
|
-
###
|
|
110
|
-
|
|
111
|
-
启用 MCP 后,会自动执行 bootstrap 确保。也可手动触发:
|
|
123
|
+
### First Use (Auto Bootstrap)
|
|
112
124
|
|
|
113
125
|
```json
|
|
114
126
|
{
|
|
@@ -116,21 +128,21 @@ Agent-Reach 让你的 AI Agent 拥有"互联网之眼"。读取和搜索 Twitter
|
|
|
116
128
|
}
|
|
117
129
|
```
|
|
118
130
|
|
|
119
|
-
|
|
131
|
+
**Example Output**:
|
|
120
132
|
```
|
|
121
|
-
# reach_ensure
|
|
133
|
+
# reach_ensure Result
|
|
122
134
|
|
|
123
|
-
|
|
135
|
+
Status: ✅ Success
|
|
124
136
|
|
|
125
|
-
##
|
|
137
|
+
## Execution Log
|
|
126
138
|
- venv_check: OK (0ms)
|
|
127
139
|
- upgrade_pip: OK (2341ms)
|
|
128
140
|
- install_agent_reach: OK (5678ms)
|
|
129
141
|
|
|
130
|
-
|
|
142
|
+
Version: 1.2.0
|
|
131
143
|
```
|
|
132
144
|
|
|
133
|
-
###
|
|
145
|
+
### Diagnosis
|
|
134
146
|
|
|
135
147
|
```json
|
|
136
148
|
{
|
|
@@ -138,22 +150,7 @@ Agent-Reach 让你的 AI Agent 拥有"互联网之眼"。读取和搜索 Twitter
|
|
|
138
150
|
}
|
|
139
151
|
```
|
|
140
152
|
|
|
141
|
-
|
|
142
|
-
```
|
|
143
|
-
# reach_doctor 诊断报告
|
|
144
|
-
|
|
145
|
-
👁️ Agent Reach 状态
|
|
146
|
-
========================================
|
|
147
|
-
✅ YouTube 视频和字幕 — 可提取视频信息和字幕
|
|
148
|
-
✅ RSS/Atom 订阅源 — 可读取 RSS/Atom 源
|
|
149
|
-
❌ Twitter/X 推文 — bird CLI 未安装
|
|
150
|
-
|
|
151
|
-
## Next Steps
|
|
152
|
-
- Install bird CLI: npm install -g @steipete/bird
|
|
153
|
-
- Configure cookies: reach_configure with twitter-cookies
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### 读取网页
|
|
153
|
+
### Read Web Page
|
|
157
154
|
|
|
158
155
|
```json
|
|
159
156
|
{
|
|
@@ -162,7 +159,7 @@ Agent-Reach 让你的 AI Agent 拥有"互联网之眼"。读取和搜索 Twitter
|
|
|
162
159
|
}
|
|
163
160
|
```
|
|
164
161
|
|
|
165
|
-
###
|
|
162
|
+
### Search Twitter
|
|
166
163
|
|
|
167
164
|
```json
|
|
168
165
|
{
|
|
@@ -171,17 +168,7 @@ Agent-Reach 让你的 AI Agent 拥有"互联网之眼"。读取和搜索 Twitter
|
|
|
171
168
|
}
|
|
172
169
|
```
|
|
173
170
|
|
|
174
|
-
|
|
175
|
-
```
|
|
176
|
-
❌ bird CLI 未安装
|
|
177
|
-
|
|
178
|
-
## Next Steps
|
|
179
|
-
- Install: npm install -g @steipete/bird
|
|
180
|
-
- Configure cookies: reach_configure with twitter-cookies
|
|
181
|
-
- Or use reach_search_web for Exa search instead
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### 使用万能入口
|
|
171
|
+
### Universal Entry
|
|
185
172
|
|
|
186
173
|
```json
|
|
187
174
|
{
|
|
@@ -193,7 +180,7 @@ Agent-Reach 让你的 AI Agent 拥有"互联网之眼"。读取和搜索 Twitter
|
|
|
193
180
|
}
|
|
194
181
|
```
|
|
195
182
|
|
|
196
|
-
###
|
|
183
|
+
### Self-Discovery
|
|
197
184
|
|
|
198
185
|
```json
|
|
199
186
|
{
|
|
@@ -201,146 +188,101 @@ Agent-Reach 让你的 AI Agent 拥有"互联网之眼"。读取和搜索 Twitter
|
|
|
201
188
|
}
|
|
202
189
|
```
|
|
203
190
|
|
|
204
|
-
### 配置 Twitter Cookie
|
|
205
|
-
|
|
206
|
-
```json
|
|
207
|
-
{
|
|
208
|
-
"name": "reach_configure",
|
|
209
|
-
"arguments": {
|
|
210
|
-
"key": "twitter-cookies",
|
|
211
|
-
"value": "auth_token=xxx; ct0=yyy"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### 配置代理
|
|
217
|
-
|
|
218
|
-
```json
|
|
219
|
-
{
|
|
220
|
-
"name": "reach_configure",
|
|
221
|
-
"arguments": {
|
|
222
|
-
"key": "proxy",
|
|
223
|
-
"value": "http://user:pass@ip:port"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
```
|
|
227
|
-
|
|
228
191
|
---
|
|
229
192
|
|
|
230
|
-
##
|
|
193
|
+
## Auto-Update Strategy
|
|
231
194
|
|
|
232
|
-
|
|
195
|
+
**Default**: Lightweight `ensureLatest()` before each tool call
|
|
233
196
|
|
|
234
|
-
###
|
|
197
|
+
### Environment Variables
|
|
235
198
|
|
|
236
|
-
|
|
|
237
|
-
|
|
238
|
-
| `ALWAYS_LATEST` | `1` |
|
|
239
|
-
| `UPDATE_STRATEGY` | `simple` |
|
|
240
|
-
| `NETWORK_REQUIRED` | `1` |
|
|
241
|
-
| `
|
|
242
|
-
| `
|
|
243
|
-
| `
|
|
199
|
+
| Variable | Default | Description |
|
|
200
|
+
|----------|---------|-------------|
|
|
201
|
+
| `ALWAYS_LATEST` | `1` | Auto-update enabled |
|
|
202
|
+
| `UPDATE_STRATEGY` | `simple` | Update strategy (simple/atomic) |
|
|
203
|
+
| `NETWORK_REQUIRED` | `1` | Network required |
|
|
204
|
+
| `AUTO_INSTALL_DEPS` | `1` | Auto-install dependencies |
|
|
205
|
+
| `AUTO_START_DOCKER` | `1` | Auto-start Docker containers |
|
|
206
|
+
| `CACHE_DIR` | System cache | Cache location |
|
|
207
|
+
| `RUNTIME_DIR` | System cache/runtime | Runtime directory |
|
|
208
|
+
| `LOG_LEVEL` | `info` | Log level (error/info/debug) |
|
|
244
209
|
|
|
245
|
-
###
|
|
210
|
+
### Update Flow
|
|
246
211
|
|
|
247
|
-
1.
|
|
248
|
-
2.
|
|
249
|
-
3.
|
|
250
|
-
4.
|
|
251
|
-
5.
|
|
212
|
+
1. Check if venv exists
|
|
213
|
+
2. Check bootstrap timestamp
|
|
214
|
+
3. Run `pip install -U https://github.com/Panniantong/agent-reach/archive/main.zip`
|
|
215
|
+
4. Run smoke test
|
|
216
|
+
5. Record bootstrap timestamp
|
|
252
217
|
|
|
253
|
-
|
|
218
|
+
**Failure handling**: Update failure won't break existing version, returns nextSteps for fix.
|
|
254
219
|
|
|
255
220
|
---
|
|
256
221
|
|
|
257
|
-
##
|
|
222
|
+
## Environment Requirements
|
|
258
223
|
|
|
259
|
-
###
|
|
224
|
+
### Auto-Detection on Start
|
|
260
225
|
|
|
261
|
-
- OS / CPU
|
|
262
|
-
- Python
|
|
263
|
-
- Node.js
|
|
264
|
-
-
|
|
265
|
-
-
|
|
226
|
+
- OS / CPU architecture
|
|
227
|
+
- Python version (requires 3.10+)
|
|
228
|
+
- Node.js version
|
|
229
|
+
- Network availability
|
|
230
|
+
- Disk space
|
|
266
231
|
|
|
267
|
-
###
|
|
232
|
+
### Runtime Directories
|
|
268
233
|
|
|
269
|
-
|
|
|
270
|
-
|
|
234
|
+
| Platform | Directory |
|
|
235
|
+
|----------|-----------|
|
|
271
236
|
| Windows | `%LOCALAPPDATA%\agent-reach-mcp\` |
|
|
272
237
|
| macOS | `~/Library/Caches/agent-reach-mcp/` |
|
|
273
238
|
| Linux | `~/.cache/agent-reach-mcp/` |
|
|
274
239
|
|
|
275
|
-
### 平台特定要求
|
|
276
|
-
|
|
277
|
-
| 平台 | 要求 |
|
|
278
|
-
|------|------|
|
|
279
|
-
| Twitter | bird CLI + twitter-cookies |
|
|
280
|
-
| 小红书 | mcporter + xiaohongshu-mcp Docker |
|
|
281
|
-
| Reddit | 代理(服务器 IP 被封)|
|
|
282
|
-
| Bilibili | 代理(服务器 IP 被封)|
|
|
283
|
-
| GitHub | gh CLI(提高速率限制)|
|
|
284
|
-
| 全网搜索 | mcporter + Exa MCP |
|
|
285
|
-
|
|
286
240
|
---
|
|
287
241
|
|
|
288
|
-
##
|
|
242
|
+
## Recommended Workflow
|
|
289
243
|
|
|
290
|
-
1.
|
|
291
|
-
2.
|
|
292
|
-
3.
|
|
293
|
-
4.
|
|
294
|
-
5.
|
|
244
|
+
1. **Enable MCP** → Auto bootstrap
|
|
245
|
+
2. **Diagnose**: `reach_doctor` to see channel status
|
|
246
|
+
3. **Discover**: `reach_list_commands` to see available commands
|
|
247
|
+
4. **Configure**: `reach_configure` for cookies/proxy
|
|
248
|
+
5. **Use**: Search/read tools or `reach_exec`
|
|
295
249
|
|
|
296
250
|
---
|
|
297
251
|
|
|
298
|
-
##
|
|
252
|
+
## Verification Matrix
|
|
299
253
|
|
|
300
|
-
### A.
|
|
254
|
+
### A. One-Click Deployment ✅
|
|
301
255
|
|
|
302
|
-
|
|
256
|
+
**Target**: Just enable MCP, auto-collect and install dependencies
|
|
303
257
|
|
|
304
|
-
|
|
258
|
+
**Steps**:
|
|
305
259
|
```bash
|
|
306
|
-
# 1.
|
|
260
|
+
# 1. Clear cache
|
|
307
261
|
rm -rf ~/Library/Caches/agent-reach-mcp # macOS
|
|
308
262
|
rd /s /q %LOCALAPPDATA%\agent-reach-mcp # Windows
|
|
309
263
|
|
|
310
|
-
# 2.
|
|
264
|
+
# 2. Restart MCP
|
|
311
265
|
|
|
312
|
-
# 3.
|
|
266
|
+
# 3. Call version check
|
|
313
267
|
reach_version
|
|
314
268
|
```
|
|
315
269
|
|
|
316
|
-
|
|
270
|
+
**Expected Output (Success)**:
|
|
317
271
|
```
|
|
318
272
|
=== Agent-Reach MCP Version Info ===
|
|
319
273
|
|
|
320
|
-
MCP Version: 1.
|
|
274
|
+
MCP Version: 1.2.0
|
|
321
275
|
Agent-Reach Version: 1.2.0
|
|
322
276
|
Bootstrap Status: ✅ OK
|
|
323
277
|
Update Strategy: simple (alwaysLatest: true)
|
|
324
278
|
Runtime Dir: /Users/xxx/Library/Caches/agent-reach-mcp/runtime
|
|
325
279
|
```
|
|
326
280
|
|
|
327
|
-
|
|
328
|
-
```
|
|
329
|
-
⚠️ MCP 未完全就绪
|
|
330
|
-
|
|
331
|
-
Bootstrap 失败,部分功能可能不可用。
|
|
332
|
-
错误类型: python_missing
|
|
281
|
+
### B. Perfect Replica Verification ✅
|
|
333
282
|
|
|
334
|
-
|
|
335
|
-
- Install Python 3.10+ from https://www.python.org/downloads/
|
|
336
|
-
- Ensure Python is added to PATH during installation
|
|
337
|
-
```
|
|
283
|
+
**Target**: No capability loss after wrapping
|
|
338
284
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
**目标**: 封装后能力不缩水,新增命令自动支持
|
|
342
|
-
|
|
343
|
-
**验证命令**:
|
|
285
|
+
**Verification Commands**:
|
|
344
286
|
```json
|
|
345
287
|
{"name": "reach_exec", "arguments": {"subcommand": "version"}}
|
|
346
288
|
{"name": "reach_exec", "arguments": {"subcommand": "doctor"}}
|
|
@@ -349,112 +291,104 @@ Next Steps:
|
|
|
349
291
|
{"name": "reach_exec", "arguments": {"subcommand": "setup"}}
|
|
350
292
|
```
|
|
351
293
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
### C. 稳定健全验证 ✅
|
|
294
|
+
**Criteria**: All commands execute successfully, output matches original CLI
|
|
355
295
|
|
|
356
|
-
|
|
296
|
+
### C. Stability Verification ✅
|
|
357
297
|
|
|
358
|
-
|
|
359
|
-
1. 调用 `reach_doctor` → 检查输出包含 nextSteps
|
|
360
|
-
2. 破坏 venv → 调用 `reach_ensure` → 确认修复
|
|
361
|
-
3. 调用不存在的命令 → 检查错误输出
|
|
298
|
+
**Target**: Self-check / Self-healing / Clear errors / Observable logs
|
|
362
299
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
## Next Steps
|
|
368
|
-
- Install bird CLI: npm install -g @steipete/bird
|
|
369
|
-
```
|
|
300
|
+
**Steps**:
|
|
301
|
+
1. Call `reach_doctor` → Check output includes nextSteps
|
|
302
|
+
2. Break venv → Call `reach_ensure` → Confirm fix
|
|
303
|
+
3. Call non-existent command → Check error output
|
|
370
304
|
|
|
371
|
-
### D.
|
|
305
|
+
### D. Auto-Update Verification ✅
|
|
372
306
|
|
|
373
|
-
|
|
307
|
+
**Target**: Upgrade to latest on each call
|
|
374
308
|
|
|
375
|
-
|
|
376
|
-
1.
|
|
377
|
-
2.
|
|
378
|
-
3.
|
|
379
|
-
4.
|
|
309
|
+
**Steps**:
|
|
310
|
+
1. Call `reach_version` to record version
|
|
311
|
+
2. Wait for upstream update
|
|
312
|
+
3. Call any tool again
|
|
313
|
+
4. Check if `reach_version` updated
|
|
380
314
|
|
|
381
|
-
### E.
|
|
315
|
+
### E. Deploy-Ready Verification ✅
|
|
382
316
|
|
|
383
|
-
|
|
317
|
+
**Target**: Auto-recover after Agent restart
|
|
384
318
|
|
|
385
|
-
|
|
386
|
-
1.
|
|
387
|
-
2.
|
|
388
|
-
3.
|
|
389
|
-
4.
|
|
319
|
+
**Steps**:
|
|
320
|
+
1. Enable MCP
|
|
321
|
+
2. Restart Agent
|
|
322
|
+
3. Call any tool
|
|
323
|
+
4. Confirm no manual action needed
|
|
390
324
|
|
|
391
|
-
### F.
|
|
325
|
+
### F. Failure Scenarios
|
|
392
326
|
|
|
393
|
-
|
|
|
394
|
-
|
|
395
|
-
|
|
|
396
|
-
|
|
|
397
|
-
| venv
|
|
398
|
-
| bird
|
|
327
|
+
| Scenario | Trigger | Expected nextSteps |
|
|
328
|
+
|----------|---------|-------------------|
|
|
329
|
+
| No network | Close network | Check network connection |
|
|
330
|
+
| No Python | Remove from PATH | Install Python 3.10+ |
|
|
331
|
+
| venv corrupted | Delete venv dir | reach_ensure will rebuild |
|
|
332
|
+
| bird not installed | reach_search_twitter | npm install -g @steipete/bird |
|
|
399
333
|
|
|
400
334
|
---
|
|
401
335
|
|
|
402
|
-
##
|
|
336
|
+
## Troubleshooting
|
|
403
337
|
|
|
404
|
-
###
|
|
338
|
+
### Python Missing
|
|
405
339
|
|
|
406
|
-
|
|
340
|
+
**Cause**: Python not installed
|
|
407
341
|
|
|
408
|
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
342
|
+
**Fix**:
|
|
343
|
+
- Install Python 3.10+: https://www.python.org/downloads/
|
|
344
|
+
- Ensure "Add Python to PATH" is checked during installation
|
|
411
345
|
|
|
412
|
-
###
|
|
346
|
+
### Network Error
|
|
413
347
|
|
|
414
|
-
|
|
348
|
+
**Cause**: Cannot access GitHub
|
|
415
349
|
|
|
416
|
-
|
|
417
|
-
-
|
|
418
|
-
-
|
|
419
|
-
-
|
|
350
|
+
**Fix**:
|
|
351
|
+
- Check network connection
|
|
352
|
+
- Configure proxy: `HTTP_PROXY`, `HTTPS_PROXY`
|
|
353
|
+
- Or set `NETWORK_REQUIRED=0`
|
|
420
354
|
|
|
421
|
-
###
|
|
355
|
+
### venv Failed
|
|
422
356
|
|
|
423
|
-
|
|
357
|
+
**Cause**: Python venv module not available
|
|
424
358
|
|
|
425
|
-
|
|
426
|
-
-
|
|
359
|
+
**Fix**:
|
|
360
|
+
- Ensure full Python installed (not minimal)
|
|
427
361
|
- Linux: `sudo apt install python3-venv`
|
|
428
362
|
|
|
429
|
-
### Bootstrap
|
|
363
|
+
### Bootstrap Incomplete
|
|
430
364
|
|
|
431
|
-
|
|
365
|
+
**Error**:
|
|
432
366
|
```
|
|
433
|
-
⚠️ MCP
|
|
367
|
+
⚠️ MCP not fully ready
|
|
434
368
|
|
|
435
|
-
Bootstrap
|
|
369
|
+
Bootstrap failed, some features may be unavailable.
|
|
436
370
|
```
|
|
437
371
|
|
|
438
|
-
|
|
372
|
+
**Fix**: Call `reach_ensure` to repair
|
|
439
373
|
|
|
440
374
|
---
|
|
441
375
|
|
|
442
|
-
##
|
|
376
|
+
## Compliance
|
|
443
377
|
|
|
444
|
-
###
|
|
378
|
+
### License
|
|
445
379
|
|
|
446
|
-
|
|
|
447
|
-
|
|
448
|
-
|
|
|
449
|
-
|
|
|
380
|
+
| Project | License |
|
|
381
|
+
|---------|---------|
|
|
382
|
+
| This project (agent-reach-mcp) | MIT License |
|
|
383
|
+
| Upstream Agent-Reach | MIT License |
|
|
450
384
|
|
|
451
|
-
###
|
|
385
|
+
### Third-Party Notices
|
|
452
386
|
|
|
453
|
-
|
|
387
|
+
See [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md)
|
|
454
388
|
|
|
455
389
|
---
|
|
456
390
|
|
|
457
|
-
##
|
|
391
|
+
## Local Development
|
|
458
392
|
|
|
459
393
|
```bash
|
|
460
394
|
npm install
|
|
@@ -472,5 +406,4 @@ MIT
|
|
|
472
406
|
## Links
|
|
473
407
|
|
|
474
408
|
- [Agent-Reach GitHub](https://github.com/Panniantong/Agent-Reach)
|
|
475
|
-
- [
|
|
476
|
-
- [MCP 协议](https://modelcontextprotocol.io/)
|
|
409
|
+
- [MCP Protocol](https://modelcontextprotocol.io/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsbofmusic/agent-reach-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "MCP stdio server for Agent-Reach. Bootstrap ensure, auto-install Docker, full platform support (XiaoHongShu, Douyin, Twitter, YouTube, Bilibili, GitHub).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|