mcp-agent-planning
v0.2.2
Published
MCP server for persistent AI agent state management
Maintainers
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.
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-planning2. 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
- Project Context: Initialize once per project/branch with goals and scope
- Persistent Storage: SQLite database in your project's
.planning/folder - Branch Awareness: Separate contexts for different git branches
- Task Management: Create, update, and track tasks with dependencies
- Decision Logging: Record architectural and technical decisions
- 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_locationtool 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 madeResuming 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 offDevelopment
# 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 buildContributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
License
MIT License - see LICENSE for details.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with ❤️ for developers who want AI assistants that actually remember things.
