شعار DeepPlan MCP

DeepPlan MCP

المجتمع
gapgapweiqi

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

الناشرgapgapweiqi
المستودعdeepplan-mcp
اللغةTypeScript
التفريعات
2
النجوم
12
الأدوات المتاحة
2
نوع نقل البياناتstdio
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح DeepPlan MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 2

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 12، والنسخ المتفرعة: 2 في المستودع المرتبط.


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.


التثبيت

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

الأدوات المتاحة

  • 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.

استخدم MCP الخاص بـ DeepPlan MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل DeepPlan MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف DeepPlan MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ DeepPlan MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "deepplan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "deepplan-mcp"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ DeepPlan MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ DeepPlan MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام DeepPlan MCP لمساعدتي في هذه المهمة؟
DeepPlan MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام DeepPlan MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP DeepPlan MCP؟

DeepPlan MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP DeepPlan MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام DeepPlan MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP DeepPlan MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل DeepPlan MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP DeepPlan MCP بـ TypingMind؟

يعمل DeepPlan MCP عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP DeepPlan MCP في TypingMind؟

يتيح DeepPlan MCP أدوات MCP بعدد 2، يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP DeepPlan MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان DeepPlan MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇