Skip to main content
Glama

MCP思考

模型上下文协议 (MCP) 服务器实现了“思考”工具,用于提高 Claude 和其他 LLM 的复杂推理能力。

概述

该 MCP 服务器实现了 Anthropic博客文章中描述的“思考”工具,该工具为 Claude 提供了一个专用的空间,用于在复杂的问题解决任务中进行结构化思考。事实证明,在需要遵循策略并在长链工具调用中进行推理的复杂任务中,该思考工具能够显著提升性能。

Related MCP server: LLM Responses MCP Server

特征

  • 结构化思维空间:为法学硕士提供一个专门的空间来分解复杂的问题

  • 思想史:保存所有思想的日志,并带有时间戳以供参考

  • 多传输支持:可与 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文件。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.
      7
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables Claude to break down complex problems into manageable steps with support for revision and branching, facilitating dynamic and reflective problem-solving through a structured thinking process.
      1
      10 npm
      MIT