MCP思考
模型上下文协议 (MCP) 服务器实现了“思考”工具,用于提高 Claude 和其他 LLM 的复杂推理能力。
概述
该 MCP 服务器实现了 Anthropic博客文章中描述的“思考”工具,该工具为 Claude 提供了一个专用的空间,用于在复杂的问题解决任务中进行结构化思考。事实证明,在需要遵循策略并在长链工具调用中进行推理的复杂任务中,该思考工具能够显著提升性能。
Related MCP server: MCP Python Toolbox
特征
结构化思维空间:为法学硕士提供一个专门的空间来分解复杂的问题
思想史:保存所有思想的日志,并带有时间戳以供参考
多传输支持:可与 stdio 和 SSE 传输配合使用
安装
从 PyPI 安装:
pip install mcp-think或者从源安装:
git clone https://github.com/ddkang1/mcp-think.git
cd mcp-think
pip install -e .用法
您可以直接运行 MCP 服务器:
mcp-think默认情况下,它使用 SSE 传输。要使用 stdio 传输:
mcp-think --transport stdio您还可以为 SSE 传输指定主机和端口:
mcp-think --host 0.0.0.0 --port 3001配置
要在 Windsurf 中将此工具与 Claude 一起使用,请将以下配置添加到您的 MCP 配置文件中:
"think": {
"command": "/home/xxx/.local/bin/mcp-think",
"args": ["--transport", "stdio"],
"type": "stdio",
"pollingInterval": 30000,
"startupTimeout": 30000,
"restartOnFailure": true
}对于 SSE 传输(默认):
"think": {
"command": "/home/xxx/.local/bin/mcp-think",
"args": [],
"type": "sse",
"pollingInterval": 30000,
"startupTimeout": 30000,
"restartOnFailure": true
}command字段应指向您使用 pip 安装 python 包的目录。
可用工具
MCP 服务器提供以下工具:
思考:用时间戳记录想法
发展
开发安装
git clone https://github.com/ddkang1/mcp-think.git
cd mcp-think
pip install -e ".[dev]"运行测试
pytest代码风格
该项目使用 Black 进行格式化,使用 isort 进行导入排序,使用 flake8 进行 linting:
black src tests
isort src tests
flake8 src tests贡献
欢迎贡献!详情请参阅CONTRIBUTING.md 。
变更日志
请参阅CHANGELOG.md了解该项目的变更历史记录。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.