Think Tool MCP Server (Simplified)

Think Tool MCP Server (Simplified)

site icon
2025.04.17 0
JavaScriptAI 代理工具结构化思考开发效率
Think Tool MCP Server 是一个实现了 Anthropic 提出的 `think` 工具的 Model Context Protocol (MCP) 服务器。它为 AI 代理提供了一个专用空间,用于在复杂任务中进行结构化思考,从而提高推理和决策能力。该服务器仅提供 `think` 工具,允许 AI 代理记录其推理过程,而不会影响外部状态或获取新信息。
View on GitHub

Overview

基本能力

产品定位

Think Tool MCP Server 是一个专注于 AI 代理结构化思考的工具服务器,旨在提升 AI 代理在复杂任务中的推理和决策能力。

核心功能

  1. think 工具:允许 AI 代理记录其思考过程,适用于复杂推理或头脑风暴场景。
  2. 参数:
    • thought(必需,字符串):要记录的思考内容。

适用场景

  • AI 代理在复杂任务中需要进行结构化思考时。
  • 需要记录和回顾 AI 代理的推理过程时。

工具列表

  1. think:用于记录 AI 代理的思考内容,不获取新信息或改变外部状态。

常见问题解答

  • 服务器连接问题:确保服务器正在运行(本地或通过 Docker)并在 MCP 客户端(如 Claude Desktop 设置)中正确配置。
  • 工具名称问题:确保调用的是名为 think 的工具。

使用教程

使用依赖

  1. 确保已安装 Node.js 和 npm。
  2. 确保已安装 Docker(如果使用 Docker 运行)。

安装教程

本地开发

  1. 克隆仓库: bash git clone https://github.com/monotykamary/think-tool-mcp.git cd think-tool-mcp
  2. 安装依赖: bash npm install
  3. 构建项目: bash npm run build
  4. 运行服务器: bash node dist/index.js

使用 Docker

  1. 构建 Docker 镜像: bash docker build -t think-tool-mcp .
  2. 运行容器: bash docker run -i --rm think-tool-mcp

调试方式

  1. 确保服务器正在运行。
  2. 使用 MCP 客户端(如 Claude Desktop)调用 think 工具并检查日志输出。

与 Claude Desktop 一起使用

在 Claude Desktop 设置中添加以下配置:

{
  "mcpServers": {
    "think-tool": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/monotykamary/think-tool-mcp"
      ]
    }
  }
}

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。