结构化思维工具

为AI助手提供的结构化思维工具,包括思维模型、调试方法和决策框架等,通过模型上下文协议实现。

  • by letsgomaslow
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 letsgomaslow/think

使用说明

想想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_oriented
  • functional, declarative, logic
  • event_driven, aspect_oriented
  • concurrent, 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

  1. 前往设置→ 连接器→ 高级→ 开发人员模式
  2. 添加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)

许可证

麻省理工学院