@fastagent/cli 0.5.1 → 0.5.2
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 +13 -0
- package/cli.js +336 -282
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ fastagent doctor
|
|
|
56
56
|
fastagent doctor --config ./fastagent.config.json
|
|
57
57
|
fastagent skills add <source>
|
|
58
58
|
fastagent skills list
|
|
59
|
+
fastagent mcp list
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
当前 `fastagent` 裸命令默认显示帮助信息;如果你想直接启动一个可工作的服务入口,优先从 IM 通道开始。
|
|
@@ -261,6 +262,16 @@ fastagent doctor --config ./fastagent.config.json
|
|
|
261
262
|
- GitHub repo URL:`https://github.com/<owner>/<repo>`
|
|
262
263
|
- GitHub tree URL:`https://github.com/<owner>/<repo>/tree/<ref>` 或 `.../tree/<ref>/skills/...`
|
|
263
264
|
|
|
265
|
+
## MCP 命令
|
|
266
|
+
|
|
267
|
+
- `fastagent mcp list` 列出 runtime-global `settings.json.mcpServers` 里的 MCP server。
|
|
268
|
+
- `fastagent mcp add <name> --command <cmd> [--arg <arg>]... [--env KEY=VALUE]...`
|
|
269
|
+
添加一个 runtime-global MCP server。
|
|
270
|
+
- `fastagent mcp remove <name>` 删除一个 runtime-global MCP server。
|
|
271
|
+
- 如果 `fastagent mcp add` 命中同名 server,CLI 会给出 `1. Overwrite / 2. Exit` 的显式选择,
|
|
272
|
+
不会静默覆盖现有配置。
|
|
273
|
+
- `fastagent mcp list` 只显示 env key,不回显 env value。
|
|
274
|
+
|
|
264
275
|
## 常见用例
|
|
265
276
|
|
|
266
277
|
```bash
|
|
@@ -273,6 +284,8 @@ fastagent skills add owner/repo
|
|
|
273
284
|
fastagent skills add owner/repo --list
|
|
274
285
|
fastagent skills add ./skills/review-pr --scope project
|
|
275
286
|
fastagent skills list --scope user
|
|
287
|
+
fastagent mcp add search --command node --arg server.js --env API_KEY=secret
|
|
288
|
+
fastagent mcp remove search
|
|
276
289
|
fastagent config
|
|
277
290
|
fastagent doctor
|
|
278
291
|
fastagent skills list
|