Cursor Claude Think MCP

MIT License
1
  • Linux
  • Apple

Integrations

  • Required runtime environment for the MCP server, needed to execute the script that enables Claude's explicit thinking mode.

Cursor 和 Claude Think MCP

这个MCP(模型上下文协议)工具可以在Cursor中启用Claude的显式思维模式,让你可以看到Claude一步一步的推理过程。

先决条件

  • Node.js (v14.0.0 或更高版本)
  • 光标(v0.9.0 或更高版本)
  • 终端命令的基础知识

工作原理

当你在 Cursor 的聊天中输入“思考[你的问题]”时,Claude 会:

  1. 进入明确的推理模式
  2. 展示其逐步的思考过程
  3. 在推理部分之后提供最终答案

安装

项目级安装(仅限当前项目)

此项目已安装该工具。配置位于.cursor/mcp.json中。

全局安装(所有项目)

要使此工具在所有 Cursor 项目中可用:

  1. 创建全局 MCP 配置目录:
    mkdir -p ~/.cursor
  2. 复制工具和配置:
    # Create the destination directory mkdir -p ~/claude-think-tool # Copy the tool cp src/think-tool.js ~/claude-think-tool/ # Make it executable chmod +x ~/claude-think-tool/think-tool.js # Create the global MCP configuration with absolute path (more reliable) echo "{\"mcpServers\":{\"claude-think-tool\":{\"command\":\"node\",\"args\":[\"$HOME/claude-think-tool/think-tool.js\"]}}}" > ~/.cursor/mcp.json
  3. 重新启动 Cursor以应用更改(必需)

Windows 安装

对于 Windows 用户:

  1. 创建 Cursor 配置目录:
    mkdir -p $env:USERPROFILE\.cursor
  2. 复制工具:
    mkdir -p $env:USERPROFILE\claude-think-tool copy src\think-tool.js $env:USERPROFILE\claude-think-tool\
  3. 创建全局 MCP 配置:
    echo "{\"mcpServers\":{\"claude-think-tool\":{\"command\":\"node\",\"args\":[\"$env:USERPROFILE\\claude-think-tool\\think-tool.js\"]}}}" > $env:USERPROFILE\.cursor\mcp.json
  4. 重新启动 Cursor以应用更改(必需)

用法

在任何 Cursor 聊天中,只需输入:

think What is the computational complexity of quicksort?

重要使用说明:

  • “思考”一词必须位于消息的开头,后面跟着一个空格
  • 一切“思考”之后的事情,都会被克劳德以其特殊的思维模式进行处理
  • 如果“思考”出现在您的消息中的其他地方,则该工具将不会激活
  • 无需格式或特殊字符 - 只需以“think”开头

示例

请参阅示例目录以了解示例用例:

  • 复杂问题解决
  • 数学证明
  • 决策过程
  • 代码算法分析

故障排除

如果该工具似乎不起作用:

  1. 确保安装后已重新启动 Cursor
  2. 通过在终端中运行node --version检查 Node.js 是否已安装
  3. 验证 MCP 配置中的路径是否正确并指向脚本
  4. 确保脚本可执行(在 Unix 系统上为chmod +x
  5. 在 Cursor Developer Console 中查找任何错误

对于 Windows 用户,请确保 PowerShell 或 CMD 以适当的权限运行。

技术上如何运作

此工具使用模型上下文协议来:

  1. 当你在聊天中输入“思考”时进行拦截
  2. 使用特殊的::::thinking 标签格式化您的问题
  3. 将格式化的提示返回给 Claude
  4. 克劳德识别出这些标签并进入显式推理模式

<thinking>标签向 Claude 发出信号,明确展示其推理过程。

安全注意事项

  • 该工具不会访问或传输任何敏感信息
  • 它在您的机器上本地运行,并且仅处理您发送给 Claude 的文本
  • 请参阅SECURITY.md了解漏洞报告指南

贡献

欢迎贡献!请参阅CONTRIBUTING.md获取相关指南。

执照

该项目根据LICENSE中的条款获得许可。 ::::

-
security - not tested
A
license - permissive license
-
quality - not tested

在 Cursor 中启用 Claude 的显性思维模式,让用户在以“思考”为前缀的查询时看到 Claude 的逐步推理过程。

  1. Prerequisites
    1. How It Works
      1. Installation
        1. Project-Level Installation (Current Project Only)
        2. Global Installation (All Projects)
        3. Windows Installation
      2. Usage
        1. Examples
          1. Troubleshooting
            1. How It Works Technically
              1. Security Considerations
                1. Contributing
                  1. License
                    ID: f3urc46ovs