diff --git a/projects/arabica/src/sprint2/README.md b/projects/arabica/src/sprint2/README.md index 2c0af2b..58fde4a 100644 --- a/projects/arabica/src/sprint2/README.md +++ b/projects/arabica/src/sprint2/README.md @@ -122,20 +122,45 @@ const OBSIDIAN_VAULT_PATH = '/your/actual/vault/path'; ## 6. 客户端接入联调(以 Cherry Studio 为例) 1. 打开 Cherry Studio,进入 **设置 → MCP**。 + 2. 添加新的 Server 配置: - **名称**:`ProjectCaffeine-Sprint2` - **Command**:`node` - - **Args**:`["--inspect=9230", "/home/wguo/Downloads/Project-Caffeine/projects/arabica/sprint2/dist/app.js"]` + - **Args**:`[--inspect=9230, /home/wguo/Downloads/Project-Caffeine/projects/arabica/sprint2/dist/app.js]` (`--inspect` 端口可自定义,用于 VS Code 调试) + +或者通过导入json + +```json +{ + "mcpServers": { + "Project Caffeine": { + "isActive": true, + "name": "Project Caffeine", + "type": "stdio", + "description": "", + "baseUrl": "", + "command": "node", + "args": [ + "--inspect=9229", + "/home/wguo/Downloads/Project-Caffeine/projects/arabica/sprint2/dist/app.js" + ], + "env": {} + } + } +} +``` + 3. 保存后状态灯应为绿色。 + 4. 若需调试,在 VS Code 中运行“附加到进程”(监听相应端口),即可拦截所有原语调用。 --- ## 7. Sprint2 文档 -- Sprint2 [设计文档](./../../docs/design/arabica-sprint2-architecture-specification.md) -- Sprint2 [开发指南](./../../docs/design/arabica-srpint2-development-specification.md) +- Sprint2 [设计文档](./docs/arabica-sprint2-architecture-specification.md) +- Sprint2 [开发指南](./docs/arabica-sprint2-development-specification.md) ---