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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ai-prompt-guide-mcp

v1.0.5

Published

MCP server for markdown CRUD operations on specification documents

Readme

AI Prompt Guide MCP

MCP Server & Claude Code Plugin for Multi-Agent Workflows

An MCP server that orchestrates AI agents through structured markdown documents. Create linked specifications and tasks, assign work to specialized agents with a single command, and let the system handle context injection and workflow management automatically.

Table of Contents

What It Does

This server enables you to:

  • Spec out projects as a team or solo using interlinked markdown documents
  • Make better decisions using the multi-option tradeoff workflow
  • Orchestrate specialized agents by simply assigning tasks—the server injects the right context automatically
  • Maintain impartial reviews by keeping the coordinator agent separate from implementation details

How It Works

  1. Create linked documents with specifications, guides, and architecture decisions
  2. Add @references to link related content that gets auto-injected when needed
  3. Assign tasks to agents using coordinator or subagent workflows
  4. Agent completes and reports "Done"—coordinator reviews code changes directly
  5. Review without bias by examining the actual changes, only consulting notes if needed

The system preserves context across sessions while keeping your main agent focused on orchestration and review rather than implementation details.

Key Features

Dual Task System

  • Coordinator tasks for sequential project work (auto-archives when complete)
  • Subagent tasks for flexible ad-hoc work across documents

Automatic Context Injection

  • Link documents with @/path/doc.md#section syntax
  • Referenced content loads automatically when tasks start
  • Works on any project—no configuration needed

Workflow Library

  • 11 pre-built workflows for common development scenarios
  • Access via get_workflow tool or Claude Code plugin commands
  • Reference workflows in task metadata for automatic injection
  • Create your own custom workflows easily

Getting Started

Requirements

  • Node.js 18+
  • pnpm 10.x

Install & Build

pnpm install
pnpm build

Run the Server

# Development
pnpm dev

# Production
pnpm start

# Test with inspector
pnpm inspector

Configuration

Zero-config by default - the server works immediately with no setup required. When you run Claude Code from a project directory, it automatically creates a .ai-prompt-guide/ folder in your project to store documents, tasks, and archives.

Optional configuration for custom paths:

{
  "mcpServers": {
    "ai-prompt-guide-mcp": {
      "command": "npx",
      "args": ["-y", "ai-prompt-guide-mcp"],
      "env": {
        "MCP_WORKSPACE_PATH": "/custom/workspace/path"
      }
    }
  }
}

Optional Settings:

  • MCP_WORKSPACE_PATH - Custom workspace path (default: current directory)
  • DOCS_BASE_PATH - Documents location (default: .ai-prompt-guide/docs in zero-config mode)
  • ARCHIVED_BASE_PATH - Archived documents (default: .ai-prompt-guide/archived in zero-config mode)
  • COORDINATOR_BASE_PATH - Coordinator tasks (default: .ai-prompt-guide/coordinator in zero-config mode)
  • REFERENCE_EXTRACTION_DEPTH - How deep to follow @references (1-5, default: 3)
  • LOG_LEVEL - Logging verbosity (debug, info, warn, error)

Per-Project Configuration:

Create .mcp-config.json in your project root for project-specific settings:

{
  "env": {
    "DOCS_BASE_PATH": "/custom/docs",
    "ARCHIVED_BASE_PATH": "/custom/archive",
    "COORDINATOR_BASE_PATH": "/custom/coordinator"
  }
}

Directory Structure

Zero-config structure (created automatically in your project):

your-project/
└── .ai-prompt-guide/
    ├── docs/               # Your documents and subagent tasks
    ├── coordinator/        # Sequential project tasks
    └── archived/           # Completed work (auto-populated)
        ├── docs/           # Archived documents
        └── coordinator/    # Archived task lists

Shared resources (bundled with the MCP server):

{mcp-server}/.ai-prompt-guide/
├── workflows/         # Reusable workflow protocols
└── guides/           # Documentation best practices

Everything is created automatically—no manual setup required. Workflows and guides are shared across all your projects.

Claude Code Plugin

Install

/plugin marketplace add https://github.com/Blakeem/AI-Prompt-Guide-MCP
/plugin install ai-prompt-guide

Workflows & Commands

The plugin provides 11 workflows accessible both as slash commands and via the get_workflow MCP tool:

Development Workflows:

  • /ai-prompt-guide:develop – Simple development with anti-pattern detection and regression prevention
  • /ai-prompt-guide:develop-fix – Bug fixing with root cause analysis and regression prevention
  • /ai-prompt-guide:develop-tdd – Orchestrate multi-agent development with TDD
  • /ai-prompt-guide:develop-iterate – Orchestrate multi-agent development with manual verification

Quality & Review Workflows:

  • /ai-prompt-guide:review – Targeted review of PRs or components
  • /ai-prompt-guide:audit – Quality audit with specialized agents
  • /ai-prompt-guide:coverage – Add comprehensive test coverage

Decision Workflows:

  • /ai-prompt-guide:decide – Structured decision making with trade-off analysis
  • /ai-prompt-guide:decide-iterate – Multi-perspective decision analysis with parallel agents

Specification Workflows:

  • /ai-prompt-guide:spec-feature – Document internal feature specifications
  • /ai-prompt-guide:spec-external – Document external API specifications

Commands are shortcuts to workflows. When using Claude Code, the plugin commands provide a convenient way to invoke workflows. When using the MCP server directly, access the same workflows via:

get_workflow({ workflow: "develop" })
get_workflow({ workflow: "develop-fix" })
get_workflow({ workflow: "develop-tdd" })
get_workflow({ workflow: "audit" })
// ... etc

Examples

Simple development (no multi-agent orchestration):

/ai-prompt-guide:develop Add a dark mode toggle to the settings page with persistence to localStorage

Bug fixing:

/ai-prompt-guide:develop-fix The form submission fails when the email field is empty - returns undefined instead of validation error

Multi-agent development with TDD:

/ai-prompt-guide:develop-tdd Build an admin dashboard with user activity charts, region filtering, and CSV export. Include tests for the aggregation logic.

The plugin loads the appropriate workflow and guides you through the implementation process.

Tools Overview

The server provides 20 MCP tools organized by function:

Document Discovery & Navigation

  • create_document – Create new documents with namespace selection
  • browse_documents – Navigate document hierarchy and list contents
  • search_documents – Full-text or regex search across all documents

Content Editing

  • section – Edit, append, insert, or remove sections in bulk

Coordinator Task Management

  • coordinator_task – Create, edit, or list coordinator tasks
  • start_coordinator_task – Start the first pending task with full context
  • complete_coordinator_task – Complete task and get next or auto-archive
  • view_coordinator_task – View coordinator task details

Subagent Task Management

  • subagent_task – Create, edit, or list subagent tasks
  • start_subagent_task – Start specific task with full context
  • complete_subagent_task – Complete task and get next pending
  • view_subagent_task – View subagent task details

View & Inspection

  • view_document – View complete document structure with metadata
  • view_section – View section content without starting work

Document Lifecycle

  • edit_document – Update document title and overview
  • delete_document – Delete or archive documents
  • move – Move sections within or across documents (supports both regular sections and subagent tasks)
  • move_document – Move documents to new namespaces

Workflow & Guide Access

  • get_workflow – Load workflow protocol content
  • get_guide – Access documentation guides

All tools use consistent addressing (/doc.md#section) and work together seamlessly.

Use Case

Spec-driven development with automatic agent orchestration:

  1. Create linked specification documents for your project
  2. Add coordinator tasks for the implementation phases
  3. Assign the first task to a specialized agent with one command
  4. Agent gets full context automatically (specs, workflows, references)
  5. Agent completes work and reports "Done"
  6. Review actual code changes to maintain objectivity
  7. Move to next task—system queues it with the right context

The coordinator agent stays focused on orchestration and quality while specialized agents handle implementation. Your impartiality is preserved because you review code directly, not summaries.

License

MIT. See LICENSE for details.