Logo DeepPlan MCP

DeepPlan MCP

Cộng đồng
gapgapweiqi

MCP server for DeepPlan — upgrade shallow Ai coding plans into expert-level architecture blueprints via a Council of AI Architects

Nhà phát hànhgapgapweiqi
Kho mãdeepplan-mcp
Ngôn ngữTypeScript
Bản fork
2
Sao
12
Công cụ có sẵn
2
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

    DeepPlan MCP 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.

  • 2 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ở

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


Why DeepPlan?

Every AI coding assistant can generate code — but architecture is where projects succeed or fail. DeepPlan catches design flaws, security gaps, and performance bottlenecks before they become expensive rewrites.

Without DeepPlanWith DeepPlan
PlanningAI gives generic, shallow plans4 expert architects analyze in parallel
QualityNo guardrails — hallucination driftConstitution enforces architectural correctness
PerspectiveSingle viewpointSecurity + Performance + UX/DX + DevOps
OutputVague suggestionsNumbered, executable steps for your AI agent
Your Draft Plan → 🔒 Security · ⚡ Performance · 🎨 UX/DX · 🔧 DevOps → 👑 Lead Architect → Blueprint

Works With

DeepPlan uses the Model Context Protocol (MCP) — it works with any MCP-compatible client, not just IDEs:

ClientUse Case
🖥️Cursor, Windsurf, VS Code CopilotArchitecture review while coding
💻Claude CodeTerminal-based planning and brainstorming
🤖Claude Desktop, ChatGPTConversational architecture consulting
🔧Custom MCP ClientsBuild your own AI-powered architecture tools
📡CI/CD & AutomationAutomated architecture linting in pipelines

Quick Start

Cursor

Add to ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "deepplan": {
      "command": "npx",
      "args": ["-y", "deepplan-mcp"],
      "env": {
        "DEEPPLAN_API_KEY": "dpk_your-key-here"
      }
    }
  }
}

Windsurf

Add to your Windsurf MCP configuration:

json
{
  "mcpServers": {
    "deepplan": {
      "command": "npx",
      "args": ["-y", "deepplan-mcp"],
      "env": {
        "DEEPPLAN_API_KEY": "dpk_your-key-here"
      }
    }
  }
}

Claude Code

bash
claude mcp add deepplan -- npx -y deepplan-mcp --api-key=dpk_your-key-here

VS Code (Copilot)

Add to .vscode/mcp.json:

json
{
  "servers": {
    "deepplan": {
      "command": "npx",
      "args": ["-y", "deepplan-mcp"],
      "env": {
        "DEEPPLAN_API_KEY": "dpk_your-key-here"
      }
    }
  }
}

Get your API key at deepplan.dev/api-keys — free tier included.


Use Cases

🏗️ Starting a New Project

"Build me a SaaS with Stripe billing and multi-tenant auth"

Get a complete architecture blueprint — data model, API design, auth flow, deployment strategy — reviewed by 4 experts before writing a single line of code.

🔄 Major Refactoring

"Migrate our REST API to GraphQL"

Get expert analysis of migration risks, breaking changes, edge cases, and a step-by-step execution plan your AI coding assistant can follow.

🛡️ Security Review

"Review this authentication flow for vulnerabilities"

Get a Security Architect's threat model: injection vectors, data exposure risks, and concrete mitigations tied to your tech stack.

⚡ Performance Audit

"Optimize this data pipeline that's hitting 5s response times"

Get bottleneck analysis with specific optimizations: caching strategy, query patterns, cold start reduction — all for your actual stack.

🧩 API Design

"Design a public REST API for our platform"

Get DX analysis, versioning strategy, error handling patterns, rate limiting architecture, and documentation structure.

📋 Architecture Review in CI/CD

"Automatically review architecture decisions in pull requests"

Integrate DeepPlan into your pipeline to catch architectural anti-patterns before they reach production.


Tools

upgrade_architecture_blueprint

Send a draft plan to the Council of Architects for expert-level review.

ParameterRequiredDescription
draft_planYesThe architecture plan text to upgrade
tech_stackNoe.g. "SvelteKit, Cloudflare Workers, D1"
context_constraintsNoe.g. "Must run on Edge Runtime"
model_choiceNoAI model for the Lead Architect synthesis

Returns: A structured blueprint with Architecture Directives, Edge Cases, Constraints, Patterns, and numbered Next Steps your AI agent can execute immediately.

auto_select_personas

Analyze a plan and recommend which expert personas are most relevant.

ParameterRequiredDescription
draft_planYesThe plan to analyze
available_personasNoCustom persona list (defaults to 4 built-in experts)

The Constitution

Every council session enforces architectural guardrails called "The Constitution" — rules that prevent AI hallucination drift and ensure high-quality output:

  • Terminology Precision — Flags misused architectural terms (e.g., "fetch" for a DB query → should be "query")
  • Clean Architecture Metrics — Enforces low coupling, high cohesion, correct dependency direction
  • No Code Output — Experts focus on WHAT and WHY, never HOW in code
  • Tech Stack Awareness — All recommendations must reference your actual stack
  • Impact Prioritization — Most critical findings first, no filler

Built-in Expert Personas

PersonaFocus Areas
🔒 Security ArchitectAuth, data exposure, injection, CORS, API abuse, secrets management
⚡ Performance EngineerLatency, caching, token cost, cold starts, DB queries, concurrency
🎨 UX/DX DesignerIntegration smoothness, error clarity, onboarding, config simplicity
🔧 DevOps EngineerDeploy strategy, CI/CD, monitoring, disaster recovery, scaling
👑 Lead ArchitectSynthesizes all expert reports into a unified, executable blueprint

Want domain-specific experts? Create custom personas at deepplan.dev — available via proxy mode.


Modes

Proxy Mode (Recommended)

Uses your DeepPlan API key (dpk_...). Requests are analyzed by DeepPlan Scout (expert analysis) and synthesized by DeepPlan Architect (blueprint generation).

DEEPPLAN_API_KEY=dpk_your-key-here

Premium features via proxy mode:

  • Custom personas and councils
  • Advanced orchestration (debate mode, AI+IDE refinement)
  • AI-powered search context (Librarian)
  • Usage tracking and credit management

Direct Mode (Fallback)

Uses your own OpenRouter API key. The council runs locally with 4 built-in expert personas. No DeepPlan account needed.

OPENROUTER_API_KEY=sk-or-v1-your-key-here

Configuration

VariableDescription
DEEPPLAN_API_KEYDeepPlan API key — enables proxy mode with full features
OPENROUTER_API_KEYOpenRouter key — enables direct mode (fallback)
DRAFT_PLAN_MAX_LENGTHMax input characters (default: 8000)

Configuration priority: CLI args > environment variables > .env file

bash
npx deepplan-mcp --api-key=dpk_your-key-here

Extend & Build

DeepPlan is designed to be extended. The open-source core gives you building blocks to create your own architectural intelligence:

  • Custom Personas — Add domain-specific experts (Database Architect, ML Engineer, etc.) in src/prompts/personas.ts
  • Search Providers — Plug in your own search backend by implementing the SearchProvider interface in src/search/types.ts
  • Custom Constitutions — Define your team's architectural standards and coding conventions
  • Pipeline Integration — Use as a pre-commit hook, CI/CD step, or automated PR reviewer
  • Build Your Own Client — The MCP protocol means any client can connect — build custom tools on top of DeepPlan

Architecture

┌─────────────────┐    stdio     ┌──────────────┐
│  MCP Client      │◄────────────►│  DeepPlan    │
│                  │    MCP       │  MCP Server  │
│  • AI IDEs       │    Protocol  │  (this repo) │
│  • CLI Tools     │             └──────┬───────┘
│  • Custom Apps   │                    │
└─────────────────┘       ┌─────────────┴──────────────┐
                          │                            │
                    Proxy Mode                   Direct Mode
                          │                            │
                   ┌──────▼──────┐            ┌────────▼────────┐
                   │ DeepPlan API │            │    OpenRouter    │
                   │ deepplan.dev │            │       API        │
                   │              │            │                  │
                   │ • Scout      │            │ • 4 built-in     │
                   │   (analysis) │            │   personas       │
                   │ • Architect  │            │ • Basic council  │
                   │   (synthesis)│            │                  │
                   │ • Debate     │            │                  │
                   │ • AI Search  │            │                  │
                   └──────────────┘            └──────────────────┘

Premium Features

The open-source client provides full council functionality with 4 built-in personas. For teams and power users, deepplan.dev offers:

FeatureOpen SourceDeepPlan Pro
4 Built-in Experts✅✅
Custom Personas—✅
Council Builder—✅
Debate Mode (Pro/Con)—✅
AI Search (Librarian)—✅
Chair Persona—✅
Constitution Editor—✅
Usage Dashboard—✅

Development

bash
# Clone
git clone https://github.com/gapgapweiqi/deepplan-mcp.git
cd deepplan-mcp

# Install
npm install

# Dev (with hot reload)
npm run dev

# Build
npm run build

# Type check
npm run typecheck

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.


License

MIT — use it however you want.


Cài đặt

TypingMind
{
  "mcpServers": {
    "deepplan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "deepplan-mcp"
      ],
      "env": {
        "DEEPPLAN_API_KEY": "<DEEPPLAN_API_KEY>"
      }
    }
  }
}

Công cụ có sẵn

  • upgrade_architecture_blueprint

    Sends a draft architecture plan to the DeepPlan backend for expert-level review. Returns structured architectural directives, edge cases, constraints, and numbered next steps that you (the IDE agent) can execute immediately.

    Use this when:

    • A plan feels too shallow or generic
    • Starting a complex feature or new project
    • You need architecture-level guidance before writing code

    The response includes a "Next Steps for Agent" section with numbered instructions you can follow directly.

    Internally, this tool runs a "Council of Architects" — 4 expert AI personas (Security, Performance, UX/DX, DevOps) analyze the plan in parallel, then a Lead Architect synthesizes their reports into a unified blueprint.

  • auto_select_personas

    Analyzes a draft architecture plan and recommends the most relevant expert personas to include in the council review. Returns a list of recommended persona names and focus areas.

    Use this when:

    • You want the AI to pick the best experts for a specific plan
    • The plan covers a niche domain that may benefit from specialized personas

    This tool does NOT run the full council — it only recommends which personas to use.

Dùng MCP DeepPlan MCP 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 DeepPlan MCP, 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 DeepPlan MCP 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 DeepPlan MCP.
  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": {
    "deepplan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "deepplan-mcp"
      ]
    }
  }
}
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 DeepPlan MCP, 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 DeepPlan MCP.
  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 DeepPlan MCP giúp tôi làm việc này không?
DeepPlan MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng DeepPlan MCP.

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

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

DeepPlan MCP 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 DeepPlan MCP 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 DeepPlan MCP 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 DeepPlan MCP 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 DeepPlan MCP, 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 DeepPlan MCP với TypingMind?

DeepPlan MCP 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 DeepPlan MCP cung cấp những công cụ nào trong TypingMind?

DeepPlan MCP cung cấp 2 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 DeepPlan MCP 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 DeepPlan MCP 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 👇