Logo deep-thinker

deep-thinker

Cộng đồng
nachosystems

Advanced cognitive reasoning MCP server — DAG thought graph, 10 strategies, metacognition, self-critique, knowledge integration, and pruning

Nhà phát hànhnachosystems
Kho mãdeep-thinker
Ngôn ngữTypeScript
Bản fork
1
Sao
13
Công cụ có sẵn
6
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    deep-thinker cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 6 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    13 sao và 1 bản fork từ kho mã được liên kết.

deep-thinker

CI npm version npm downloads license GitHub stars

Advanced cognitive thinking MCP server with DAG-based thought graph, 10 reasoning strategies (including auto-selection), 17 tools, node aliases, session persistence, structured responses, and intelligent error handling.

A significant evolution beyond sequential-thinking MCP, providing structured deep reasoning with graph-based thought management, schema validation, and intelligent strategy selection.

Quick Start

bash
npx deep-thinker
json
{
  "mcpServers": {
    "deep-thinker": {
      "command": "npx",
      "args": ["-y", "deep-thinker"]
    }
  }
}

Examples

ExampleStrategyUse Case
Architecture DecisionDialectic + ParallelMonolith vs microservices
Debugging IncidentAbductiveProduction 500 errors
Feature PrioritizationParallel + DialecticQ3 roadmap planning
Scientific HypothesisAnalogical + AbductiveLNP delivery for CRISPR
Breaking Dead EndsMetacognitive switchServerless cost analysis

Features

  • DAG-Based Thought Graph — Thoughts form a directed acyclic graph with branching, merging, and cross-edges (not just a linear chain)
  • 10 Reasoning Strategies — Sequential, Dialectic (thesis→antithesis→synthesis), Parallel, Analogical, Abductive, First Principles (deconstruct to fundamentals), Counterfactual (what-if with ripple effects), Systems Thinking (feedback loops & leverage points), MCTS (Monte Carlo optimization), Auto (intelligent auto-selection based on content and graph state)
  • Node Aliases — Use "last", "best", "root" instead of cryptic node IDs for any nodeId parameter
  • Structured Responses — All tool responses return consistent MCPResponse JSON with status, summary, confidence, nextSuggested action
  • Session Persistence — Auto-saves thought graph to ~/.deep-thinker/sessions/; resume across MCP restarts with reset({ resume: "name" })
  • Friendly Error Messages — Zod validation errors translated to human-readable hints (e.g., "confidence 0 ile 1 arasında...")
  • Confidence Scoring — Multi-factor confidence evaluation with support/contradiction analysis, depth penalties, and knowledge integration boosts
  • Self-Critique — Automatic critique generation with severity levels and confidence adjustments
  • Metacognitive Engine — Detects stuck states, stagnation, declining confidence; suggests strategy switches and corrective actions
  • Knowledge Integration — Attach external knowledge to thoughts, detect gaps, validate consistency across sources
  • Thought Pruning — Dead-end detection, redundancy removal, deep unproductive branch elimination, path optimization
  • help Tool — Discover all 17 tools grouped by category (core/advanced/workflow) with quick-start examples
  • conclude Tool — Comprehensive graph summary with primaryFinding, actionItems, graphHealth, and nextSuggested
  • High-IQ Reasoning Enhancements — 8 advanced tools: visualization, devil's advocate, cross-disciplinary synthesis, temporal projection, ethical evaluation, emotional intelligence analysis, decision explanation, social impact analysis
  • Emotional Intelligence — Analyze emotional tone, empathy, persuasion effectiveness, stakeholder emotions
  • Ethical Frameworks — Evaluate through deontological, consequentialist, virtue ethics, rights-based perspectives
  • Cross-Domain Synthesis — Combine insights from biology, economics, physics, psychology, computer science, art
  • Temporal Reasoning — Project thoughts into future/past scenarios with optimistic, pessimistic, realistic, disruptive scenarios
  • Social Impact Modeling — Analyze stakeholder emotions, group cohesion, persuasion effectiveness, ethical alignment
  • Uncertainty Quantification — Confidence intervals, probability distributions, sensitivity analysis for robust decisions
  • Multi-Language Support — Thoughts in English, Turkish, German, French, Spanish, Japanese, Chinese, Russian
  • Meta-Cognitive Layers — Recursive reasoning across 5 levels of meta-cognition
  • PromptOptimizer (Node Zero) — Entry point that transforms vague prompts into optimized Super Prompts with automatic strategy routing

Installation

Global

bash
npm install -g deep-thinker

npx (no install)

bash
npx deep-thinker

MCP Configuration

Claude Desktop

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "deep-thinker": {
      "command": "npx",
      "args": ["-y", "deep-thinker"]
    }
  }
}

Or if installed globally:

json
{
  "mcpServers": {
    "deep-thinker": {
      "command": "deep-thinker"
    }
  }
}

Other MCP Clients

The server communicates over stdio. Point your MCP client to the deep-thinker command or node path/to/dist/index.js.

Response Format

All tool responses follow the MCPResponse structure:

json
{
  "status": "ok | error | warning",
  "nodeId": "thought_3",
  "summary": "sequential stratejisiyle \"Should we use microservices?...\" eklendi",
  "confidence": 0.75,
  "data": { "...": "tool-specific data" },
  "nextSuggested": {
    "tool": "evaluate",
    "params": { "critique": true },
    "reason": "Düşük confidence — değerlendirme önerilir"
  },
  "warnings": ["Stuck detected: ..."]
}

The nextSuggested field always recommends the next logical step, making it easy to chain tool calls without guessing.

Node Aliases

Instead of looking up cryptic node IDs, use aliases for any nodeId, parentId, or targetId parameter:

AliasResolves To
"last"Most recently added node (insertion order)
"best"Node with highest confidence score
"root"First node with no incoming edges
evaluate({ nodeId: "last" })                              → evaluates the latest thought
simulate_devils_advocate({ nodeId: "best", depth: 2 })    → challenges the strongest thought
graph({ action: "path", nodeId: "root", targetId: "best" }) → traces from root to best conclusion

Session Persistence

Thought graphs are automatically saved after every think call. Sessions are stored in ~/.deep-thinker/sessions/.

javascript
// Save current session explicitly
reset({ save: true, saveName: "my-analysis" })

// List saved sessions
reset({ listSessions: true })

// Resume a saved session after MCP restart
reset({ resume: "my-analysis" })

Tools

Core Tools

think

Add a thought to the cognitive graph using a reasoning strategy.

Parameters:

ParameterTypeRequiredDescription
contentstringYesThe thought content
typestringNoThought type: hypothesis, analysis, evidence, conclusion, question, assumption, insight, critique, synthesis, observation
strategystringNoStrategy: sequential, dialectic, parallel, analogical, abductive, first_principles, counterfactual, systems_thinking, mcts, auto
confidencenumberNoInitial confidence 0-1 (default: 0.5)
parentIdstringNoParent node ID or alias (default: last leaf)
branchstringNoBranch name for parallel exploration
tagsstring[]NoTags for categorization
edgeToobjectNoExplicit edge: { targetId, type }
dialecticobjectNoDialectic mode: { thesis, antithesis?, synthesis? }
parallelarrayNoParallel mode: [{ content, type, confidence }]
analogicalobjectNoAnalogical mode: { sourceDomain, mapping, projectedConclusion }
abductiveobjectNoAbductive mode: { observation, explanations[], bestExplanation? }
firstPrinciplesobjectNoFirst Principles mode: { problem, assumptions?, depth?, domain? }
counterfactualobjectNoCounterfactual mode: { currentState?, variablesToChange, rippleDepth? }
systemsThinkingobjectNoSystems Thinking mode: { systemDescription?, components, focusArea? }
mctsobjectNoMCTS mode: { problem?, possibleActions, numSimulations? }
knowledgeobjectNoAttach knowledge: { source, content, relevance }

Strategy details:

StrategyDescriptionBest For
SequentialLinear chain: each thought derives from the previousStep-by-step reasoning
DialecticThesis → Antithesis → Synthesis pattern to resolve contradictionsResolving conflicts
ParallelExplore multiple independent branches simultaneouslyBrainstorming options
AnalogicalMap patterns from a known domain to the current problemCross-domain insights
AbductiveGenerate hypotheses and infer the best explanationRoot cause analysis
First PrinciplesDeconstruct to fundamental truths, challenge assumptionsBreaking conventions
Counterfactual"What-if" scenarios with multi-stage ripple effectsRisk/impact analysis
Systems ThinkingFeedback loops, leverage points, emergent propertiesComplex systems
MCTSMonte Carlo Tree Search for optimal decision selectionOptimization problems
AutoAutomatically selects strategy based on content signals and graph contextHands-off reasoning

How auto strategy works:

The auto strategy analyzes your content for keywords and the current graph state:

  • Content with "why"/"neden"/"how"/"nasıl" → abductive
  • Content with "if"/"eğer"/"what if"/"varsayalım" → counterfactual
  • Content with "vs"/"veya"/"compare"/"karşılaştır" → dialectic
  • Content with "system"/"sistem"/"loop"/"döngü" → systems_thinking
  • Content with "fundamental"/"temel"/"assumption"/"varsayım" → first_principles
  • Low avg confidence + many nodes → parallel (break through impasse)
  • First thought → sequential
  • After 4+ sequential thoughts → dialectic (introduce opposing view)
  • Default → sequential

Edge types: derives_from, contradicts, supports, refines, challenges, synthesizes, parallels, abstracts, instantiates

evaluate

Evaluate the thinking process with confidence scoring, critique, and graph health analysis.

Parameters:

ParameterTypeRequiredDescription
nodeIdstringNoSpecific node to evaluate (accepts aliases: last, best, root)
critiquebooleanNoGenerate self-critique (default: true)
findGapsbooleanNoFind knowledge gaps (default: false)
validateKnowledgebooleanNoValidate knowledge consistency (default: false)

metacog

Metacognitive operations — monitor and control the thinking process.

Parameters:

ParameterTypeRequiredDescription
actionstringYesreport = full state, switch = change strategy, auto_update = let system analyze
strategystringNoNew strategy (for switch action)
reasonstringNoReason for switching (for switch action)

The metacognitive engine automatically:

  • Detects stagnation (confidence not improving)
  • Detects declining confidence trends
  • Detects excessive contradictions
  • Suggests strategy switches, pruning, backtracking, or concluding

graph

Query and visualize the thought graph.

Parameters:

ParameterTypeRequiredDescription
actionstringYesvisualize, stats, path, node, branches, best_path, leaves
nodeIdstringNoNode ID or alias (for path, node actions)
targetIdstringNoTarget ID or alias (for path action)

prune

Prune and optimize the thought graph.

Parameters:

ParameterTypeRequiredDescription
actionstringYesanalyze (report only), prune (execute), optimize_path, prune_node
nodeIdstringNoNode to prune — accepts aliases (for prune_node)
reasonstringNoReason (for prune_node)

reset

Reset the thought graph and start a fresh session, save, or resume a saved session.

Parameters:

ParameterTypeRequiredDescription
problemstringNoNew problem statement
savebooleanNoSave current session before resetting (default: false)
saveNamestringNoName for saved session (recommended if save: true)
resumestringNoResume a previously saved session by name
listSessionsbooleanNoList all saved sessions

conclude

Analyze the entire thought graph and produce a comprehensive summary-conclusion with action items and graph health report.

Parameters:

ParameterTypeRequiredDescription
detailLevelstringNobrief, detailed, technical (default: detailed)
includeCounterfactualsbooleanNoInclude counterfactual analysis (default: false)
formatstringNoprose, structured, executive (default: structured)

Response includes:

  • primaryFinding — Top conclusion with confidence
  • supportingEvidence — Additional high-confidence nodes
  • strategiesUsed — Which strategies contributed
  • keyInsights — Insight-type nodes from the best path
  • actionItems — Prioritized actions derived from conclusions
  • graphHealth — Node count, dead ends, avg confidence, recommendation
  • nextSuggested — Logical next step (prune if unhealthy, save if done)

help

Discover deep-thinker tools and learn usage workflows.

Parameters:

ParameterTypeRequiredDescription
categorystringNoall, core, advanced, workflow (default: all)

Categories:

  • core — 7 daily-use tools (think, evaluate, metacog, graph, prune, reset, conclude)
  • advanced — 8 deep-analysis tools (visualization, devil's advocate, cross-disciplinary, temporal, ethical, emotional, explanation, social impact, prompt optimizer)
  • workflow — 3 recommended workflows:
    • Quick Decision — reset → think parallel → evaluate → conclude
    • Deep Analysis — reset → first_principles → counterfactual → devil's advocate → evaluate → metacog → prune → conclude
    • Breaking Dead Ends — metacog report → switch strategy → cross-disciplinary → abductive

Enhanced Tools (High-IQ Reasoning)

visualize_thought_graph

Generate visual representation of the thought graph as SVG or ASCII.

Parameters:

ParameterTypeRequiredDescription
formatstringNosvg, ascii, or tree (default: ascii)
highlightPathstringNoPath between two node IDs (format: fromId-toId)
showConfidencebooleanNoShow confidence scores (default: true)

simulate_devils_advocate

Generate counterarguments and opposing viewpoints for a given thought.

Parameters:

ParameterTypeRequiredDescription
nodeIdstringYesTarget node ID or alias (last, best, root)
depthnumberNoLevels of counterarguments (1-5, default: 2)
intensitystringNomild, moderate, or aggressive (default: moderate)

cross_disciplinary_synthesis

Combine insights from multiple domains to generate novel perspectives.

Parameters:

ParameterTypeRequiredDescription
sourceDomainsstring[]YesDomains to draw analogies from (e.g., ["biology", "economics", "art"])
targetProblemstringYesProblem to apply cross-domain insights to
maxAnalogiesnumberNoMax analogies to generate (1-10, default: 3)

temporal_projection

Project thoughts into future or past scenarios.

Parameters:

ParameterTypeRequiredDescription
nodeIdstringYesRoot node ID or alias
yearsnumberYesYears forward (positive) or backward (negative)
scenariostringNooptimistic, pessimistic, realistic, disruptive (default: realistic)

ethical_framework_evaluation

Evaluate a thought or decision through multiple ethical frameworks.

Parameters:

ParameterTypeRequiredDescription
nodeIdstringYesNode ID or alias
frameworksstring[]NoWhich frameworks: deontological, consequentialist, virtue, rights_based (default: all)

emotional_intelligence_analysis

Analyze emotional tone, stakeholder emotions, and social dynamics.

Parameters:

ParameterTypeRequiredDescription
textstringYesText to analyze for emotional content
contextstringNoContext (e.g., team meeting, customer feedback, crisis situation)
perspectiveTakingnumberNoLevel of perspective-taking 0-1 (default: 0.7)

explain_decision

Generate human-understandable explanation of a decision path.

Parameters:

ParameterTypeRequiredDescription
nodeIdstringYesDecision/conclusion node ID or alias
detailLevelstringNosimple, detailed, technical (default: detailed)
includeCounterfactualsbooleanNoShow what-if scenarios (default: true)

social_impact_analysis

Analyze social impact, stakeholder emotions, group cohesion, and persuasion effectiveness.

Parameters:

ParameterTypeRequiredDescription
nodeIdstringYesNode ID or alias
stakeholdersstring[]NoStakeholder groups (default: ["customers", "employees", "investors", "community"])

optimize_prompt

PromptOptimizer (Node Zero) — transform vague prompts into optimized Super Prompts with strategy routing.

Parameters:

ParameterTypeRequiredDescription
originalPromptstringYesUser's raw, potentially vague prompt
userContextobjectNo{ expertiseLevel, domainKnowledge[], preferences }
conversationHistoryarrayNoPrevious messages for context (max 20)
optimizationLevelstringNolight, standard, aggressive (default: standard)
targetModelstringNoclaude, gpt4, gpt35, local, generic (default: generic)
autoRoutebooleanNoAuto-route to recommended strategy (default: false)

Usage Examples

Auto Strategy Selection (New!)

think: { content: "Eğer mikroservis kullansaydık ne olurdu?" }
→ Auto-selects strategy: counterfactual (detected "Eğer" = "if" signal)

think: { content: "Why is the server crashing?" }
→ Auto-selects strategy: abductive (detected "why" signal)

think: { content: "Monolith vs microservices?" }
→ Auto-selects strategy: dialectic (detected "vs" comparison signal)

Sequential Reasoning

think: "Should we use microservices?" → type: question, confidence: 0.9
think: "Monolith has deployment bottlenecks" → type: analysis, confidence: 0.7
think: "Team lacks DevOps capacity for microservices" → type: evidence, confidence: 0.8
evaluate: { nodeId: "last", critique: true }
→ { status: "ok", confidence: 0.73, nextSuggested: { tool: "metacog" } }

Dialectic Reasoning

think: {
  strategy: "dialectic",
  dialectic: {
    thesis: "Microservices improve scalability",
    antithesis: "But add operational complexity",
    synthesis: "Use modular monolith as middle ground"
  },
  confidence: 0.75
}

Using Node Aliases

evaluate({ nodeId: "last" })                              → evaluate latest thought
simulate_devils_advocate({ nodeId: "best", depth: 3 })    → challenge strongest thought
graph({ action: "path", nodeId: "root", targetId: "best" }) → trace reasoning path
think({ parentId: "root", content: "Alternative..." })    → branch from root

Session Save & Resume

// Work on a problem...
think({ content: "Analysis...", strategy: "auto" })
think({ content: "Another insight..." })

// Save before closing
reset({ save: true, saveName: "architecture-review" })

// ... MCP restarts ...

// Resume exactly where you left off
reset({ resume: "architecture-review" })
→ { status: "ok", summary: "architecture-review oturumu geri yüklendi — 5 node ile devam ediliyor" }

First Principles Reasoning

think: {
  strategy: "first_principles",
  firstPrinciples: {
    problem: "How to improve battery efficiency?",
    assumptions: ["Batteries must use lithium", "Charging takes hours"],
    depth: 3,
    domain: "physics"
  }
}
→ Creates: Problem → Assumptions Challenged → Fundamental Truths → Reconstructed Solution

Counterfactual (What-If) Analysis

think: {
  strategy: "counterfactual",
  counterfactual: {
    currentState: "Office-based work with 5-day commute",
    variablesToChange: [
      { variable: "work_location", currentValue: "office", hypotheticalValue: "remote", impactWeight: 0.9 },
      { variable: "commute_days", currentValue: 5, hypotheticalValue: 0, impactWeight: 0.8 }
    ],
    timeHorizon: "medium_term",
    rippleDepth: 3
  }
}
→ Creates: Baseline → Variable Changes → Stage 1/2/3 Ripple Effects → Scenarios → Risk Analysis

Systems Thinking

think: {
  strategy: "systems_thinking",
  systemsThinking: {
    systemDescription: "Software development team dynamics",
    components: [
      { name: "FeatureBacklog", type: "stock", description: "Pending work" },
      { name: "DeveloperCapacity", type: "stock", description: "Available developers" },
      { name: "CodeReviews", type: "flow", description: "Review process" },
      { name: "Quality", type: "converter", description: "Quality gates" }
    ],
    focusArea: "feedback_loops"
  }
}
→ Creates: System Overview → Components → Feedback Loops → Leverage Points → Recommendations

MCTS (Monte Carlo Tree Search)

think: {
  strategy: "mcts",
  mcts: {
    problem: "Which architecture pattern to choose?",
    possibleActions: [
      { id: "microservices", description: "Microservices architecture", estimatedReward: 0.7 },
      { id: "monolith", description: "Monolithic architecture", estimatedReward: 0.5 },
      { id: "modular", description: "Modular monolith", estimatedReward: 0.8 }
    ],
    numSimulations: 100,
    pruningThreshold: 0.2
  }
}
→ Creates: Root → Actions → Simulations → Pruning Analysis → Optimal Path

Conclude Analysis

conclude({ detailLevel: "detailed" })
→ {
  status: "ok",
  summary: "12 dusunce, 3 dal, sequential+counterfactual stratejileriyle analiz tamamlandi",
  data: {
    conclusion: { primaryFinding: "...", confidence: 0.85 },
    actionItems: [{ action: "Investigate...", priority: "high" }, ...],
    graphHealth: { totalThoughts: 12, avgConfidence: 0.72, recommendation: "Graf saglikli gorunuyor" }
  },
  nextSuggested: { tool: "reset", params: { save: true }, reason: "Analizi kaydetmeyi unutmayin" }
}

Metacognitive Guidance

metacog: { action: "auto_update" }
→ Stuck detected + suggested action in nextSuggested

metacog: { action: "switch", strategy: "parallel", reason: "Break through impasse" }
→ Strategy switched + next step recommended

Pruning

prune: { action: "analyze" }
→ Dead Ends, Redundant Branches, Total prunable count

prune: { action: "prune" }
→ Nodes pruned + metacog updated + nextSuggested

Getting Help

help()                    → all tools, all categories, all workflows
help({ category: "core" })     → 7 core tools with quick-start examples
help({ category: "advanced" }) → 9 advanced tools
help({ category: "workflow" }) → 3 recommended workflows

Friendly Error Messages

When validation fails, you get human-readable errors instead of raw Zod output:

think({ confidence: 1.5 })
→ {
  status: "error",
  error: "VALIDATION_ERROR",
  message: "\"confidence\" parametresinde hata: ...",
  field: "confidence",
  hint: "confidence 0 ile 1 arasında bir sayı olmalı. Örnek: confidence: 0.7"
}

evaluate({ nodeId: "nonexistent" })
→ {
  status: "error",
  error: "NODE_NOT_FOUND",
  provided: "nonexistent",
  hint: "Geçerli alias'lar: \"last\", \"best\", \"root\" veya graph aracıyla node ID alın"
}

Architecture

src/
├── index.ts                         MCP server & 17 tool handlers
├── test.ts                          Core functionality tests (118 tests)
├── test_enhanced_strategies.ts      Strategy tests (13 tests)
├── core/
│   ├── types.ts                     Type definitions, MCPResponse, NextAction
│   ├── schemas.ts                   Zod validation schemas (10 strategies incl. auto)
│   ├── node.ts                      ThoughtNode CRUD operations
│   ├── graph.ts                     DAG-based thought graph + resolveNodeId + aliases
│   ├── strategies.ts               10 reasoning strategies + selectStrategy (auto)
│   ├── scorer.ts                    Confidence scoring & self-critique
│   ├── metacog.ts                   Metacognitive engine with smart triggers
│   ├── knowledge.ts                 Knowledge integration & validation
│   ├── pruner.ts                    Dead-end/redundancy detection & pruning
│   ├── session.ts                   Session persistence (save/load/resume)
│   └── errors.ts                    Friendly error formatting (Zod + unknown)
└── enhancements/
    ├── visualization.ts            SVG & ASCII graph visualization
    ├── devils_advocate.ts           Counterargument generation
    ├── cross_disciplinary.ts        Cross-domain analogy engine
    ├── temporal_projection.ts       Future/past thought projection
    ├── ethical_evaluation.ts         4 ethical frameworks
    ├── emotional_intelligence.ts    Emotion & sentiment analysis
    ├── explanation.ts               Decision explainability
    └── social_impact.ts             Stakeholder & social impact

What's New in v3.0.0

FeatureDescription
Node AliasesUse "last", "best", "root" instead of node IDs for all nodeId params
MCPResponseStructured JSON responses with status, summary, confidence, nextSuggested
Session PersistenceAuto-save to ~/.deep-thinker/sessions/, resume across restarts
Friendly ErrorsZod errors → human-readable hints with field-specific guidance
help Tool3-category tool discovery with workflow examples
conclude ToolGraph summary with primaryFinding, actionItems, graphHealth
strategy: autoAutomatic strategy selection based on content keywords + graph state

Comparison with sequential-thinking

Featuresequential-thinkingdeep-thinker
Thought structureLinear chainDAG (branch/merge/cross-edges)
StrategiesSequential only10 strategies (incl. auto-selection)
Schema ValidationNoneZod schemas for all strategies
ConfidenceBasic thought numberMulti-factor scoring with trend analysis
Self-critiqueNoneAutomatic with severity levels
MetacognitionNoneStuck detection, smart strategy triggers, auto-switching
KnowledgeNoneExternal references, gap detection, consistency validation
PruningNoneDead-end, redundancy, path optimization
Graph queriesLinear reviewVisualization, best path, branch analysis, statistics
Node referencesBy ID onlyAliases: last, best, root
Response formatPlain textStructured MCPResponse with nextSuggested
Session persistenceNoneAuto-save, save/load/resume
Error messagesRaw errorsHuman-readable with hints
Tool discoveryNonehelp tool with categories & workflows
ConclusionManual reviewconclude tool with actionItems
Strategy selectionManual onlyauto strategy based on content

Development

bash
git clone https://github.com/hubinoretros/deep-thinker.git
cd deep-thinker
npm install
npm run build
npm start

Testing

bash
npm run build
npm test

131 tests covering all modules: Node, Graph, 10 Strategies (including auto), Scorer, Metacog, Knowledge, Pruner, Integration, Edge Cases, Schema Validation.

Documentation

Contributing

See CONTRIBUTING.md for guidelines. PRs welcome — especially new reasoning strategies and MCP tool ideas.

License

MIT

Cài đặt

TypingMind
{
  "mcpServers": {
    "deep-thinker": {
      "command": "npx",
      "args": [
        "-y",
        "deep-thinker"
      ]
    }
  }
}

Công cụ có sẵn

  • think

    Add a thought to the cognitive graph using the current strategy. Supports sequential, dialectic, parallel, analogical, and abductive reasoning strategies. Each thought becomes a node in a DAG with confidence scoring, edges, and metadata.

  • evaluate

    Evaluate the thinking process: score confidence, generate critiques, and assess overall graph health. Provides detailed analysis of weak spots and strong reasoning paths.

  • metacog

    Metacognitive operations: view the current thinking state, get strategy suggestions, switch strategies, and receive guidance on improving reasoning. The system automatically detects stuck states and recommends actions.

  • graph

    Query and visualize the thought graph. View the DAG structure, find paths, inspect branches, and get statistics.

  • prune

    Prune and optimize the thought graph. Remove dead ends, consolidate redundant branches, and optimize reasoning paths. Helps maintain graph efficiency during deep reasoning.

  • reset

    Reset the thought graph and metacognitive state. Start a fresh reasoning session.

Dùng MCP deep-thinker với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối deep-thinker, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm deep-thinker làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của deep-thinker.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "deep-thinker": {
      "command": "npx",
      "args": [
        "-y",
        "deep-thinker"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của deep-thinker, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của deep-thinker.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng deep-thinker giúp tôi làm việc này không?
deep-thinker
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng deep-thinker.

Câu hỏi thường gặp

Máy chủ MCP deep-thinker dùng để làm gì?

deep-thinker là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP deep-thinker với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng deep-thinker với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP deep-thinker với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối deep-thinker, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP deep-thinker với TypingMind?

deep-thinker hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP deep-thinker cung cấp những công cụ nào trong TypingMind?

deep-thinker cung cấp 6 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP deep-thinker không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu deep-thinker yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇