使用模型上下文协议(MCP)实现Anthropic的“think”工具。此工具利用OpenAI的o3-mini模型通过标准化的MCP接口提供深度思考能力。
pip install -r requirements.txt
在根目录中创建或编辑.env文件:
OPENAI_API_KEY=your_api_key_here
配置Claude Desktop以使用MCP服务器:
打开您的Claude Desktop配置文件:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: C:\Users\YourUsername\AppData\Roaming\Claude\claude_desktop_config.json
添加以下配置:
{
"mcpServers": {
"think": {
"command": "/full/path/to/python",
"args": [
"/full/path/to/main.py"
]
}
}
}
确保用系统上的实际路径替换这些路径。
重启Claude Desktop