npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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

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

  1. 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.
  2. 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

  1. Open ~/.cursor/mcp.json
  2. Add:
{
  "mcpServers": {
    "plan-master": {
      "command": "npx",
      "args": ["-y", "plan-master-mcp"],
      "env": {
        "PLAN_MASTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

Windsurf

  1. Open ~/.codeium/windsurf/mcp_config.json
  2. 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-here

Workflow

Recommended Full Workflow (for best results):

  1. Initialize: Call init_project to scan your codebase and build semantic search index
  2. Discover Context: Call discover_feature_context with your feature request to find relevant existing code
  3. Plan with Context: Call plan_feature and pass the discovered context into additional_context parameter
  4. Implement Tasks: Use next_task tool to systematically work through the generated tasks
  5. Document: Call update_changelog when feature is complete

Step-by-Step Breakdown:

  1. "Plan a new feature...": You ask your IDE agent.
  2. Discover (RECOMMENDED): Agent calls discover_feature_context to find relevant files using semantic search.
  3. Analyze: The MCP client scans your folder structure.
  4. Clarify (if needed): The AI asks clarifying questions if your feature request needs more details.
  5. Plan: It sends context (including discovered files) to the backend, which uses Gemini 2.5 Pro to generate a PRD.
  6. Blueprint: A technical architect agent creates a blueprint with Mermaid architecture diagrams.
  7. Tasks: A lead engineer agent breaks it down into tasks.
  8. Result: You get a planning/ folder with prd.md, technical_blueprint.md, and tasks.md.
  9. Implementation: Follow tasks using next_task tool to track progress.

Architecture Visualization

The technical blueprint includes two Mermaid graphs:

  1. Current Architecture - Shows your project's current state (relevant files, components, dependencies)
  2. 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_context with your request to find relevant files BEFORE calling plan_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's additional_context parameter.

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_task to manage implementation workflow."
  • Required Workflow:
    1. Call next_task with action='get_next' to see what to work on
    2. Call next_task with action='mark_in_progress' and task_id=X when starting
    3. Implement the task
    4. Call next_task with action='mark_done' and task_id=X when finished
    5. Repeat for all tasks

⚠️ 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_constraints before starting a major plan."
  • Configuration: Create planning/constraints.md or .planmaster.json to define your rules.

4. update_changelog

Goal: Maintain a project history.

  • Usage: "Call update_changelog after implementing a feature."

🛠️ Development

# Run in dev mode
npm run dev

# Run tests
npm test

See TEST_README.md for more information about the test suite.