plan-master-mcp
v0.4.1
Published
MCP server for AI-powered feature planning and codebase analysis. Generates PRDs, technical blueprints, and actionable tasks.
Downloads
63
Maintainers
Readme
Plan Master MCP (Node.js Edition)
What is Plan Master?
Plan Master is a Context Engineering tool designed to help AI agents plan, analyze, and execute development tasks. This is the Node.js MCP Client that connects your IDE to the Plan Master Backend.
Architecture
MCP Client (This Repo):
- Runs locally in your IDE (Node.js).
- Reads your local codebase context securely.
- Sends anonymized/filtered context to the backend.
- Open Source.
Plan Master Backend (Separate Service):
- Holds the "Secret Sauce" prompts and AI Logic (Gemini 2.5 Pro, Claude 4.5, GPT-5.1).
- Hosted / Private.
- Production URL: https://plan-master-backend.onrender.com
Troubleshooting
Having issues? Check our Troubleshooting Guide for common problems and solutions.
Installation & Usage
Prerequisites
- Node.js 18+ installed
- A Plan Master API key (required for backend)
Backend Status: Live at https://plan-master-backend.onrender.com
Getting an API Key:
Plan Master requires an API key to access the backend. Contact us at [[email protected]] or open an issue on GitHub to request access.
1. Configure Your IDE
Cursor
- Open
~/.cursor/mcp.json - Add:
{
"mcpServers": {
"plan-master": {
"command": "npx",
"args": ["-y", "plan-master-mcp"],
"env": {
"PLAN_MASTER_API_KEY": "your-api-key-here"
}
}
}
}✅ Windsurf
- Open
~/.codeium/windsurf/mcp_config.json - Add:
{
"mcpServers": {
"plan-master": {
"command": "npx",
"args": ["-y", "plan-master-mcp"],
"env": {
"PLAN_MASTER_API_KEY": "your-api-key-here"
}
}
}
}Claude Code
Run the following command:
claude mcp add plan-master \
--command npx \
--args "-y plan-master-mcp" \
--env PLAN_MASTER_API_KEY=your-api-key-hereWorkflow
Recommended Full Workflow (for best results):
- Initialize: Call
init_projectto scan your codebase and build semantic search index - Discover Context: Call
discover_feature_contextwith your feature request to find relevant existing code - Plan with Context: Call
plan_featureand pass the discovered context intoadditional_contextparameter - Implement Tasks: Use
next_tasktool to systematically work through the generated tasks - Document: Call
update_changelogwhen feature is complete
Step-by-Step Breakdown:
- "Plan a new feature...": You ask your IDE agent.
- Discover (RECOMMENDED): Agent calls
discover_feature_contextto find relevant files using semantic search. - Analyze: The MCP client scans your folder structure.
- Clarify (if needed): The AI asks clarifying questions if your feature request needs more details.
- Plan: It sends context (including discovered files) to the backend, which uses Gemini 2.5 Pro to generate a PRD.
- Blueprint: A technical architect agent creates a blueprint with Mermaid architecture diagrams.
- Tasks: A lead engineer agent breaks it down into tasks.
- Result: You get a
planning/folder withprd.md,technical_blueprint.md, andtasks.md. - Implementation: Follow tasks using
next_tasktool to track progress.
Architecture Visualization
The technical blueprint includes two Mermaid graphs:
- Current Architecture - Shows your project's current state (relevant files, components, dependencies)
- Target Architecture - Shows how the system will look after implementing the feature
This helps you:
- Understand what files/components will be affected
- See what new files/components will be created
- Visualize how dependencies will change
- Ensure the implementation won't break existing structure
To view Mermaid graphs: Install the Markdown Preview Mermaid Support extension in your IDE, then open the markdown preview.
Smart Clarification
Before generating a full feature plan, the AI will:
- Analyze your feature request and codebase
- Ask 3-7 targeted clarifying questions if needed
- Skip questions for simple/clear features
- Help you think through scope, UX, technical decisions, and constraints
This ensures better planning and reduces back-and-forth iterations!
Plan-Master MCP v0.3 – Local Smart Tools
Plan Master now includes local intelligence tools that run entirely within your MCP server (no backend required for these), using a local SQLite database and embeddings.
1. discover_feature_context - CRITICAL PRE-PLANNING STEP
Goal: Give the agent an instant, focused view of relevant files for a feature request using semantic search.
- Usage: "Call
discover_feature_contextwith your request to find relevant files BEFORE callingplan_feature." - How it works: Uses OpenAI embeddings (generated by backend, stored locally in
.plan-master/plan_master.db) to find semantically similar code snippets. - Why it matters: This grounds the planning in your actual codebase structure, preventing hallucinations and ensuring the plan aligns with existing patterns.
- Next Step: The tool output explicitly tells you to pass the results into
plan_feature'sadditional_contextparameter.
2. next_task ⚠️ CRITICAL FOR IMPLEMENTATION
Goal: Let the agent work task-by-task from planning/tasks.md and track progress systematically.
- Usage: "Call
next_taskto manage implementation workflow." - Required Workflow:
- Call
next_taskwithaction='get_next'to see what to work on - Call
next_taskwithaction='mark_in_progress'andtask_id=Xwhen starting - Implement the task
- Call
next_taskwithaction='mark_done'andtask_id=Xwhen finished - Repeat for all tasks
- Call
⚠️ Important: Always use this tool during feature implementation to keep tasks.md updated and track progress. The tool will guide you through each step with clear instructions.
3. load_constraints
Goal: Allow projects to define architecture / product rules that the agent should respect.
- Usage: "Call
load_constraintsbefore starting a major plan." - Configuration: Create
planning/constraints.mdor.planmaster.jsonto define your rules.
4. update_changelog
Goal: Maintain a project history.
- Usage: "Call
update_changelogafter implementing a feature."
🛠️ Development
# Run in dev mode
npm run dev
# Run tests
npm testSee TEST_README.md for more information about the test suite.
