Pete思考MCP服务器
快速开始
本地设置
- 克隆存储库。
- 安装依赖项:
npm install
- 启动服务器:
npm start
Docker设置
- 构建Docker镜像:
docker build -t sequential-thinking-mcp .
- 运行Docker容器:
docker run -p 3000:3000 sequential-thinking-mcp
环境变量
- 复制
.env.example 向 .env 并设置您的API密钥。
CURL调用示例
列出工具
curl -X POST http://localhost:3000/api/mcp -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'
呼叫工具
curl -X POST http://localhost:3000/api/mcp -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "toolName": "dynamic_thought_branching", "thought": "Example thought", "branch_id": "1234", "confidence_score": 0.9 }, "id": 1 }'