使用说明
想想mcp
AI助手的结构化思维工具。通过模型上下文协议提供心理模型、调试方法、决策框架等。
快速开始
安装
npm install -g think-mcp
Claude桌面配置
增添 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"think-mcp": {
"command": "npx",
"args": ["think-mcp"]
}
}
}
工具
| 工具 | 说明 | 使用时间 |
|---|---|---|
trace |
分步思维追踪 | 分解复杂问题 |
model |
心智模型(第一原则、帕累托等) | 应用结构化思维框架 |
pattern |
软件设计模式 | 架构决策 |
paradigm |
编程范式 | 选择编码方法 |
debug |
调试方法 | 系统故障排除 |
council |
多人审议 | 获得不同的观点 |
decide |
决策分析框架 | 做出重要选择 |
reflect |
元认知监控 | 评估知识边界 |
hypothesis |
科学方法 | 系统地检验思想 |
debate |
辩证推理 | 探究论点 |
map |
视觉/空间推理 | 概念图解 |
例子
使用 trace 用于解决复杂问题
"Use the trace tool to think through how to refactor this authentication system"
使用 model 第一原则
"Apply first_principles thinking using the model tool to analyze why our build is slow"
使用 council 多视角
"Use council to get security expert, performance engineer, and UX designer perspectives on this API design"
使用 debug 用于系统故障排除
"Use the debug tool with binary_search approach to find the source of this memory leak"
使用 decide 用于结构化决策
"Use decide with weighted-criteria analysis to choose between PostgreSQL and MongoDB"
工具详细信息
追踪(顺序思维)
通过结构化思维进行动态问题解决,并辅以修订和分支支持。
- 把复杂的问题分解成步骤
- 随着理解的发展,修改之前的想法
- 转向其他方法
- 跟踪多个推理步骤的进度
模型(心智模型)
将经过验证的心智模型应用于问题:
first_principles-分解为基本面opportunity_cost-分析权衡error_propagation-了解错误链rubber_duck-解释以澄清pareto_principle-关注高影响因素occams_razor-更喜欢简单的解释
模式(设计模式)
软件架构模式:
modular_architecture-组件分离api_integration-外部服务模式state_management-状态处理方法async_processing-异步模式scalability-增长考虑因素security-安全最佳实践agentic_design-AI代理模式
范式(编程范式)
编程方法选择:
imperative,procedural,object_orientedfunctional,declarative,logicevent_driven,aspect_orientedconcurrent,reactive
debug(调试方法)
系统调试方法:
binary_search-划分和缩小reverse_engineering-反向工作divide_conquer-隔离组件backtracking-跟踪执行情况cause_elimination-排除原因program_slicing-关注相关代码
理事会(协作推理)
通过多样化的专业知识、结构化的辩论和建立共识来解决多人问题。
决定(决策框架)
结构化决策分析:
pros-cons-简单比较weighted-criteria-多因素评分decision-tree-分支结果expected-value-概率加权scenario-analysis-未来情景
反映(元认知监控)
对知识边界、主张确定性和推理偏见的自我意识。
假设(科学方法)
形式科学推理,包括假设检验、变量识别和证据评估。
辩论(结构化论证)
辩证推理,论文对立综合,论证力度分析。
地图(视觉推理)
用图表、图形、流程图、概念图和状态图进行视觉思维。
远程访问(Vercel部署)
认为MCP可以部署到Vercel,以便从Claude Desktop和ChatGPT进行远程访问,而无需本地安装。
部署到Vercel
或者手动部署:
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
连接克劳德桌面(远程)
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"think-mcp": {
"command": "npx",
"args": ["mcp-remote", "https://your-deployment.vercel.app/api/mcp"]
}
}
}
连接ChatGPT
- 前往设置→ 连接器→ 高级→ 开发人员模式
- 添加URL:
https://your-deployment.vercel.app/api/mcp
发展
# Clone the repository
git clone https://github.com/chirag127/think-mcp.git
cd think-mcp
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Development mode (watch)
npm run dev
# Web development (Vercel)
cd web && npm install
npm run dev:web
项目结构
think-mcp/
├── dist/ # Compiled JavaScript files (npm package)
├── src/ # STDIO server source (for npx/local usage)
│ ├── models/ # Data interfaces
│ ├── tools/ # Tool implementations
│ │ ├── traceServer.ts
│ │ ├── modelServer.ts
│ │ ├── patternServer.ts
│ │ ├── paradigmServer.ts
│ │ ├── debugServer.ts
│ │ ├── councilServer.ts
│ │ ├── decideServer.ts
│ │ ├── reflectServer.ts
│ │ ├── hypothesisServer.ts
│ │ ├── debateServer.ts
│ │ └── mapServer.ts
│ ├── toolNames.ts # Tool name constants
│ └── index.ts # Main server entry point
├── web/ # Next.js app for Vercel deployment
│ ├── app/
│ │ ├── layout.tsx
│ │ ├── page.tsx # Landing page
│ │ └── api/
│ │ └── [transport]/
│ │ └── route.ts # MCP endpoint
│ └── lib/
│ ├── mcp-tools.ts # Tool registration
│ └── tools/ # Tool definitions
├── vercel.json # Vercel deployment config
├── package.json
├── tsconfig.json
└── README.md
技术栈
- TypeScript
- Node.js 18+
- 模型上下文协议SDK 1.25.1
- Zod 3.25+(验证)
- Vitest(测试)
作者
希拉格·辛格尔(@手性127)
许可证
麻省理工学院