Integrations
Supports performance optimization analysis for React components through the advanced reasoning tools
值得一提的是:
https://github.com/Jacck/mcp-reasoner
感谢 Jackk 给我这个想法。
光标AI的MCP高级推理服务器
模型上下文协议 (MCP) 服务器为 Cursor AI 中的 Claude 提供高级推理能力。
特征
- 蒙特卡洛树搜索(MCTS) :使用 MCTS 推理解决复杂的问题任务。
- 定向搜索:同时探索多条推理路径。
- R1 Transformer :利用基于 Transformer 的推理解决复杂问题。
- 混合推理:将 Transformer 分析与 MCTS 相结合,增强推理能力。
- 自动迭代推理:所有多步骤推理方法在一次工具调用中自动完成所有推理步骤。
安装
用法
使用 Cursor AI 配置
- 首先搭建服务器:Copy
- 打开光标AI
- 导航至“设置”>“功能”>“MCP”
- 点击“+ 添加新的全局 MCP 服务器”按钮
- 输入以下详细信息:
- 在命令字段中:
node C:\\Users\\[YourUsername]\\path\\to\\mcp-reasoning-server\\dist\\index.js
- 确保使用项目 dist/index.js 文件的完整路径
- 对 Windows 路径使用双反斜杠
- 在命令字段中:
- 点击“添加”
- 在列表中找到您的服务器(它最初会显示为“已禁用”)
- 单击“已禁用”将其切换为“已启用”
- 单击刷新按钮以加载可用的工具
- 命令提示符窗口将自动打开 - 这是您的服务器正在运行
- 只要此命令提示符窗口保持打开状态,推理工具就可用
或者,您可以手动编辑位于C:\Users\[Username]\.cursor\mcp.json
(Windows) 的 Cursor MCP 配置文件:
重要提示
- 服务器运行:这些工具仅在命令提示符窗口打开并运行时可用
- 进行更改:如果您对服务器代码进行了更改,则必须在重新启动之前使用
npm run build
重新构建它 - 重新启动:要重新启动服务器,请关闭命令提示符窗口并在“光标设置”中关闭/打开服务器
使用推理工具
您可以在 Cursor AI 与 Claude 的对话中直接使用推理工具:
MCTS推理
使用/reason-mcts
命令后跟您的查询来启动基于 MCTS 的推理链:
定向搜索推理
使用/reason-beam
命令进行基于波束搜索的推理:
R1 Transformer 推理
使用/reason-r1
命令进行单步基于Transformer的推理:
混合推理
使用/reason-hybrid
命令将Transformer与MCTS推理结合起来:
克劳德积分
为了让 Claude 更容易使用这些推理工具,可以添加以下自定义指令:
发展
项目结构
src/index.ts
:主服务器入口点src/tools/reasoning-tools.ts
:推理工具的实现src/tools/reasoning-wrapper.ts
:命令包装器,方便在 Cursor 中使用src/utils/errors.ts
:错误处理实用程序
自动迭代推理
推理工具的实现方式是在单次工具调用过程中自动在内部完成所有推理步骤。每种推理方法都遵循以下流程:
- 初始化第一个想法/步骤
- 自动生成后续想法/步骤
- 将所有想法连同最终结果一起归还
这种方法可确保推理过程完全完成,而无需多次手动工具调用。
添加新的推理方法
要添加新的推理方法,请按照以下步骤操作:
- 在
src/tools/reasoning-tools.ts
中添加新的工具实现 - 在
src/tools/reasoning-wrapper.ts
中添加相应的命令包装器 - 遵循现有工具的模式,定义参数和响应格式
- 如果是多步骤推理方法,则实现自动迭代
- 使用
npm run build
重建项目
限制
这是一个模拟推理服务器。在实际生产环境中,您将连接到实际的推理算法,而不是当前使用的占位符响应。
执照
国际学习中心
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
模型上下文协议服务器通过高级推理能力(包括蒙特卡洛树搜索、波束搜索、R1 变换器和混合推理方法)增强 Cursor AI 中的 Claude。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA comprehensive suite of Model Context Protocol servers designed to extend AI agent Claude's capabilities with integrations for knowledge management, reasoning, advanced search, news access, and workspace tools.Last updated -5TypeScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.Last updated -10Python
- AsecurityFlicenseAqualityA starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.Last updated -1289TypeScript
- AsecurityAlicenseAqualityA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.Last updated -1TypeScriptMIT License