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

mcp-agent-planning

v0.2.2

Published

MCP server for persistent AI agent state management

Readme

MCP Agent Planning

Transform your AI agents with persistent memory, task tracking, and decision logging. Never lose context again across chat sessions - your AI assistants remember everything and continue exactly where they left off.

License: MIT Node.js Version MCP Protocol

What Your AI Can Do

Remember project context: "Continue working on the user auth system we discussed yesterday"
Track tasks and progress: "Show me what tasks are still pending for the API refactor"
Never repeat decisions: "Why did we choose PostgreSQL over MongoDB again?"
Manage dependencies: "What's blocking the frontend deployment?"
Resume complex workflows: Switch between chat sessions without losing any context

Perfect For

  • Developers working on long-term projects with multiple AI sessions
  • Product Managers tracking features across different conversations
  • Teams that need consistent AI assistance across various contexts
  • Anyone tired of re-explaining project context to AI assistants

Quick Start

Get your AI assistants remembering everything in 2 minutes:

1. Install

# Try it instantly
npx mcp-agent-planning

# Or install globally  
npm install -g mcp-agent-planning

2. Configure Claude Desktop

Add this to your Claude Desktop config:

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "agent-planning": {
      "command": "npx",
      "args": ["-y", "mcp-agent-planning"]
    }
  }
}

3. Start Using

Restart Claude Desktop and you'll see "🔗 agent-planning" in the status bar.

Ask your AI assistant:

  • "Initialize context for my React project in /home/user/my-app"
  • "Create a task to implement user authentication"
  • "What decisions have we made about the database?"

Usage Examples

Project Context Management

"Initialize context for this project. The goal is to build a customer dashboard with React and Node.js. We're focusing on the authentication system first."

"Get current context for this project"

"What tasks are still pending?"

Task Tracking

"Create a task: Set up user authentication with JWT tokens"

"Update task AUTH-001 to in-progress status"

"Show me all blocked tasks and their dependencies"

Decision Logging

"Record decision: We chose PostgreSQL over MongoDB because we need ACID compliance for financial data"

"What architectural decisions have we made about the API structure?"

File Mapping

"Map this authentication file - it contains the JWT middleware and user validation functions"

"Show me all mapped files and their importance scores"

Configuration

Environment Variables

  • No environment variables required - works out of the box
  • Database stored in project's .planning/ directory
  • Automatic git branch detection

Advanced Configuration

{
  "mcpServers": {
    "agent-planning": {
      "command": "mcp-agent-planning",
      "args": [],
      "env": {
        "DEBUG": "1"
      }
    }
  }
}

How It Works

  1. Project Context: Initialize once per project/branch with goals and scope
  2. Persistent Storage: SQLite database in your project's .planning/ folder
  3. Branch Awareness: Separate contexts for different git branches
  4. Task Management: Create, update, and track tasks with dependencies
  5. Decision Logging: Record architectural and technical decisions
  6. File Mapping: Track important files and their relationships

Tools Available

| Tool | Description | |------|-------------| | get_current_context | Load existing project context | | initialize_context | Set up new project with goals and scope | | update_task_status | Create, update, complete, or delete tasks | | record_decision | Log decisions to prevent regression | | query_context | Search tasks, decisions, files, or blockers | | manage_task_dependencies | Handle task relationships and blocking | | manage_blockers | Track and resolve project impediments | | map_relevant_code | Analyze and track important files |

AI Assistant Compatibility

Works with any MCP-compatible AI assistant:

  • Claude Desktop (recommended)
  • Cursor AI
  • Continue.dev
  • Custom MCP clients

Troubleshooting

"No tools available"

  • Restart your AI client after adding the configuration
  • Check that the config file path is correct for your OS
  • Verify JSON syntax in your config file

"Command not found"

# If npx fails, install globally first
npm install -g mcp-agent-planning

"Permission denied"

# On macOS/Linux, you may need to allow execution
chmod +x /path/to/mcp-agent-planning

"Database issues"

  • Check that your project directory is writable
  • The .planning/ directory will be created automatically
  • Use the debug_database_location tool to verify paths

Examples in Action

Starting a New Project

User: "I'm starting a new e-commerce site with Next.js. Help me set up the project structure."

AI: "I'll initialize context for your e-commerce project and help you plan the structure."

→ Uses initialize_context to create persistent project memory
→ Creates initial tasks for project setup
→ Records architectural decisions as they're made

Resuming Work Later

User: "What were we working on with the payment system?"

AI: "Let me check our project context..."

→ Uses get_current_context to load previous session
→ Uses query_context to find payment-related tasks and decisions  
→ Continues exactly where you left off

Development

# Clone and develop
git clone https://github.com/Narmdo/mcp-agent-planning.git
cd mcp-agent-planning
npm install

# Test locally
npm run dev

# Build for distribution
npm run build

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

Support


Made with ❤️ for developers who want AI assistants that actually remember things.