使用说明
Think Tool MCP服务器(简化版)
一种实现模型上下文协议(MCP)的服务器 think 如所述的工具 Anthropic该服务器为AI代理在复杂任务中执行结构化思维提供了专用空间,从而改善了推理和决策。
概述
这个简化的MCP服务器只提供 think 工具。它允许AI代理记录其推理过程,而不会影响外部状态或检索新信息。此实现基于Anthropic关于增强代理工具使用的工程博客文章中概述的概念。这个特定的思考工具使用经过改编的SWE Bench版本。
它专为与Claude Desktop或任何兼容MCP的客户端一起使用而设计。
可用工具
服务器提供以下工具:
- 思考:用这个工具思考一些事情。它不会获取新信息或对存储库进行任何更改,只会记录想法。当需要复杂的推理或头脑风暴时使用它。
- 参数:
thought(必填,string):一个需要思考的想法。
- 输入架构:
{ "type": "object", "properties": { "thought": { "type": "string", "description": "Your thoughts." } }, "required": ["thought"] }
- 参数:
设置
地方发展
-
克隆存储库:
git clone https://github.com/monotykamary/think-tool-mcp.git cd think-tool-mcp -
安装依赖项:
npm install -
构建项目:
npm run build -
运行服务器:
node dist/index.js
环境变量
Think Tool MCP服务器不需要任何环境变量。
使用Docker运行
-
构建Docker镜像:
docker build -t think-tool-mcp . -
运行容器:
docker run -i --rm think-tool-mcp
使用Claude Desktop
要将此MCP服务器与Claude Desktop一起使用,请将以下配置添加到您的Claude Desktop设置中:
{
"mcpServers": {
"think-tool": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/monotykamary/think-tool-mcp"
]
}
}
}
使用此配置:
- Claude会在需要时自动启动Docker容器。
- MCP服务器将可用于记录和查看想法。
- 当Claude Desktop关闭时,容器将被移除。
用法示例
记录一个想法
// Example MCP Tool Call
{
"tool_name": "think",
"arguments": {
"thought": "Okay, the user wants to refactor the database schema. First, I need to analyze the current schema (using get_schema tool), then identify potential improvements like normalization or indexing. After that, I'll propose a new schema and ask for confirmation before generating the migration script."
}
}
故障排除
- 服务器连接:确保服务器正在运行(本地或通过Docker),并在MCP客户端中正确配置(例如,Claude Desktop设置)。
- 工具名称:验证您正在调用名为的工具
think.
许可证
麻省理工学院
