article
README
🚀 逐步思考 MCP 服务器
本项目是一个逐步思考 MCP 服务器,支持在多个步骤中逐步推理问题,能自动记录每次迭代的详细历史,还具备过滤不相关信息等特性,并且便于与其他工具和服务集成。
✨ 主要特性
- 逐步推理:在多个步骤中逐步推理问题,支持在每个步骤中添加新的上下文和信息。
- 版本控制:自动记录每次迭代的详细历史,允许回溯和修正。
- 过滤功能:能够识别并丢弃不相关信息,专注于核心问题。
- 可扩展性:便于与其他工具和服务(如 API 或数据库)集成。
📦 安装指南
- 克隆仓库:
git clone https://github.com/yourusername/sequential-thinking-recall.git cd sequential-thinking-recall - 安装依赖:
npm install
💻 使用示例
服务器启动
npm run build
npm run start
开发模式
npm run dev
配置环境变量
在 config.json 中配置以下参数:
- RECALL_PRIVATE_KEY:您的私钥(带或不带 "0x" 前缀)
- RECALL_NETWORK:网络环境,可选值为
testnet或mainnet - RECALL_BUCKET_ALIAS:存储桶别名,默认为
sequential-thinking-logs - RECALL_LOG_PREFIX:日志前缀,默认为
sequential-
📚 详细文档
集成到 Cursor
- 构建项目:
npm run build - 打开 Cursor,进入设置 > MCP 服务器。
- 点击 "添加服务器",配置如下:
- 名称:
Sequential Thinking MCP - 类型:
command - 命令:
node - 参数:
/path/to/sequential-thinking-recall/dist/index.js - 环境变量:
RECALL_PRIVATE_KEY:您的私钥RECALL_NETWORK:testnetRECALL_BUCKET_ALIAS:sequential-thinking-logsRECALL_LOG_PREFIX:sequential-
- 名称:
集成到 Claude Desktop
-
构建项目:
npm run build -
找到配置文件路径:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:%APPDATA%\Claude\claude_desktop_config.json%
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
编辑
claude_desktop_config.json文件,添加以下内容:{ "mcpServers": { "sequential-thinking-mcp": { "command": "node", "args": [ "/path/to/sequential-thinking-recall/dist/index.js" ], "env": { "RECALL_PRIVATE_KEY": "您的私钥", "RECALL_NETWORK": "testnet", "RECALL_BUCKET_ALIAS": "sequential-thinking-logs", "RECALL_LOG_PREFIX": "sequential-" } } } } -
替换
/path/to/sequential-thinking-recall/dist/index.js为实际路径。
📄 许可证
此 MCP 服务器根据 MIT 许可证分发。这意味着您可以自由使用、修改和分发软件,但需遵守 MIT 许可证的条款和条件。有关详细信息,请参阅项目仓库中的 LICENSE 文件。
⚠️ 重要提示
在开发过程中,请使用
console.error()而不是console.log()进行调试和日志记录。Claude Desktop 应用通过 stdout 与服务器通信,任何console.log()语句都会干扰此通信并导致 JSON 解析错误。
扫码联系在线客服