agent-planner-mcp 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,363 +1,205 @@
1
- # Planning System MCP Server
1
+ # AgentPlanner MCP Server
2
2
 
3
- A Model Context Protocol (MCP) server interface for the Planning System API, enabling AI agents to interact with planning data through powerful, efficient tools.
3
+ [![npm](https://img.shields.io/npm/v/agent-planner-mcp)](https://www.npmjs.com/package/agent-planner-mcp)
4
+ [![MCP](https://img.shields.io/badge/MCP-compatible-blue)](https://modelcontextprotocol.io)
5
+ [![MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
4
6
 
5
- ## Overview
7
+ MCP server for [AgentPlanner](https://agentplanner.io) — AI agent orchestration with planning, dependencies, knowledge graphs, and human oversight. Works with Claude Desktop, Claude Code, ChatGPT, Cursor, Windsurf, Cline, and any MCP-compatible client.
6
8
 
7
- This MCP server connects to the Planning System API, providing AI agents with comprehensive planning capabilities through a clean, structured interface. All interactions use JSON responses for easy parsing and processing.
9
+ ## Prerequisites
8
10
 
9
- ## Key Features
11
+ - An AgentPlanner account at [agentplanner.io](https://agentplanner.io)
12
+ - An API token (Settings > API Tokens in the AgentPlanner UI)
10
13
 
11
- ### Core Capabilities
12
- - **Full CRUD Operations**: Create, read, update, and delete plans, nodes, and artifacts
13
- - **Unified Search**: Single powerful search tool for all contexts (global, plans, nodes)
14
- - **Batch Operations**: Update multiple nodes or retrieve multiple artifacts efficiently
15
- - **Rich Context**: Get comprehensive node context including ancestry, children, logs, and artifacts
16
- - **Structured Responses**: Clean JSON data for easy agent processing
14
+ ## Setup
17
15
 
18
- ### Available Tools
16
+ ### Claude Desktop
19
17
 
20
- #### Planning & Search
21
- - `search` - Universal search across all scopes with filters
22
- - `create_plan` - Create new plans
23
- - `update_plan` - Update plan properties
24
- - `delete_plan` - Delete entire plans
25
- - `get_plan_structure` - Get hierarchical plan structure
26
- - `get_plan_summary` - Get comprehensive statistics and summary
27
-
28
- #### Node Management
29
- - `create_node` - Create phases, tasks, or milestones
30
- - `update_node` - Update any node properties
31
- - `delete_node` - Delete nodes and their children
32
- - `move_node` - Reorder or reparent nodes
33
- - `get_node_context` - Get rich contextual information
34
- - `get_node_ancestry` - Get path from root to node
35
- - `batch_update_nodes` - Update multiple nodes at once
36
-
37
- #### Collaboration & Tracking
38
- - `add_log` - Add log entries (including comments, progress, reasoning, etc.)
39
- - `get_logs` - Retrieve filtered log entries
40
- - `manage_artifact` - Add, get, search, or list artifacts
41
- - `batch_get_artifacts` - Retrieve multiple artifacts efficiently
42
-
43
- ## Getting Started
44
-
45
- ### Prerequisites
46
-
47
- - Node.js 16+
48
- - npm or yarn
49
- - Access to a running Planning System API
50
- - API token for authentication
51
-
52
- ### Quick Setup (Recommended)
53
-
54
- 1. Install dependencies
55
- ```bash
56
- npm install
57
- ```
58
-
59
- 2. Run the automated setup wizard
60
- ```bash
61
- npm run setup
62
- ```
63
-
64
- The wizard will:
65
- - Check API server connectivity
66
- - Guide you through creating an API token in the UI
67
- - Create your `.env` file
68
- - Detect and update your Claude Desktop config
69
- - Test the connection
70
-
71
- That's it! Restart Claude Desktop and you're ready to go.
72
-
73
- ### Manual Installation (Advanced)
74
-
75
- If you prefer manual setup or the wizard doesn't work for your setup:
76
-
77
- 1. Clone the repository
78
- ```bash
79
- git clone https://github.com/talkingagents/agent-planner-mcp.git
80
- cd agent-planner-mcp
81
- ```
82
-
83
- 2. Install dependencies
84
- ```bash
85
- npm install
86
- ```
87
-
88
- 3. Create an API token:
89
- - Open http://localhost:3001/app/settings in your browser
90
- - Navigate to "API Tokens" section
91
- - Click "Create MCP Token"
92
- - Copy the generated token
93
-
94
- 4. Create `.env` file:
95
- ```bash
96
- cp .env.example .env
97
- ```
18
+ Add to your `claude_desktop_config.json`:
98
19
 
99
- Edit the `.env` file:
100
- ```
101
- API_URL=http://localhost:3000
102
- USER_API_TOKEN=your_api_token_here
103
- MCP_SERVER_NAME=planning-system
104
- MCP_SERVER_VERSION=0.2.0
105
- NODE_ENV=production
20
+ ```json
21
+ {
22
+ "mcpServers": {
23
+ "agent-planner": {
24
+ "command": "npx",
25
+ "args": ["-y", "agent-planner-mcp"],
26
+ "env": {
27
+ "USER_API_TOKEN": "your-token",
28
+ "API_URL": "https://agentplanner.io/api"
29
+ }
30
+ }
31
+ }
32
+ }
106
33
  ```
107
34
 
108
- 5. Configure Claude Desktop manually (see "Using with Claude Desktop" section below)
109
-
110
- 6. Start the server
111
- ```bash
112
- npm start
113
- ```
35
+ Config location: `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) | `%APPDATA%\Claude\claude_desktop_config.json` (Windows)
114
36
 
115
- ## Transport Modes
37
+ ### Claude Code
116
38
 
117
- The Planning System MCP Server supports two transport modes:
118
-
119
- ### 🖥️ stdio Mode (Default)
120
- For **local use** with Claude Desktop, Claude Code, and other local MCP clients:
121
- - Default transport when running `npm start`
122
- - Communication via stdin/stdout
123
- - Best for development and personal use
124
- - See sections below for Claude Desktop configuration
125
-
126
- ### 🌐 HTTP/SSE Mode
127
- For **remote access** via Anthropic's MCP Connector and cloud deployments:
128
- - Implements MCP Streamable HTTP specification (2025-06-18)
129
- - RESTful JSON-RPC API over HTTP
130
- - Production-ready for Cloud Run deployment
131
- - Supports session management and concurrent connections
132
- - **Documentation**: See [HTTP_MODE.md](./HTTP_MODE.md)
133
- - **Deployment**: See [MCP_REGISTRY.md](./MCP_REGISTRY.md)
134
-
135
- **Quick Start (HTTP Mode):**
136
39
  ```bash
137
- # Local development
138
- npm run start:http
139
- # Server runs on http://127.0.0.1:3100
140
-
141
- # Production deployment
142
- ./deploy.sh
143
- # Deploys to Google Cloud Run (europe-north1)
40
+ claude mcp add agent-planner -- npx -y agent-planner-mcp
144
41
  ```
145
42
 
146
- **Use Cases:**
147
- - ✅ **Anthropic Messages API**: Use with Claude via MCP Connector
148
- - ✅ **Multi-Agent Systems**: agent-runtime integration
149
- - ✅ **Cloud Deployment**: Scalable, always-available service
150
- - ✅ **MCP Registry**: Discoverable via registry lookup
43
+ Then set the env vars `USER_API_TOKEN` and `API_URL=https://agentplanner.io/api`.
151
44
 
152
- For detailed HTTP mode documentation, see [HTTP_MODE.md](./HTTP_MODE.md).
45
+ ### ChatGPT
153
46
 
154
- ## Using with Claude Desktop
47
+ 1. Settings > Apps > Advanced > Developer mode
48
+ 2. Add MCP Server > URL: `https://agentplanner.io/mcp`
49
+ 3. Auth type: API Key > enter your token from agentplanner.io Settings
155
50
 
156
- ### Option 1: Using npx (Recommended - Simplest Setup)
51
+ ### Cursor
157
52
 
158
- Add to your `claude_desktop_config.json`:
53
+ Add to `.cursor/mcp.json` in your project root:
159
54
 
160
55
  ```json
161
56
  {
162
57
  "mcpServers": {
163
- "planning-system": {
58
+ "agent-planner": {
164
59
  "command": "npx",
165
- "args": [
166
- "-y",
167
- "agent-planner-mcp"
168
- ],
60
+ "args": ["-y", "agent-planner-mcp"],
169
61
  "env": {
170
- "API_URL": "https://api.agentplanner.io",
171
- "USER_API_TOKEN": "your_api_token_here"
62
+ "USER_API_TOKEN": "your-token",
63
+ "API_URL": "https://agentplanner.io/api"
172
64
  }
173
65
  }
174
66
  }
175
67
  }
176
68
  ```
177
69
 
178
- **Benefits:**
179
- - No need to clone the repository
180
- - Always uses the latest published version
181
- - Simplest configuration
70
+ ### Windsurf
182
71
 
183
- **For local development**, use `http://localhost:3000` instead:
184
- ```json
185
- "API_URL": "http://localhost:3000"
186
- ```
187
-
188
- ### Option 2: Using Local Installation
189
-
190
- If you prefer to run from a local clone:
72
+ Add to `~/.codeium/windsurf/mcp_config.json`:
191
73
 
192
74
  ```json
193
75
  {
194
76
  "mcpServers": {
195
- "planning-system": {
196
- "command": "node",
197
- "args": [
198
- "/path/to/agent-planner-mcp/src/index.js"
199
- ],
77
+ "agent-planner": {
78
+ "command": "npx",
79
+ "args": ["-y", "agent-planner-mcp"],
200
80
  "env": {
201
- "API_URL": "https://api.agentplanner.io",
202
- "USER_API_TOKEN": "your_api_token_here"
81
+ "USER_API_TOKEN": "your-token",
82
+ "API_URL": "https://agentplanner.io/api"
203
83
  }
204
84
  }
205
85
  }
206
86
  }
207
87
  ```
208
88
 
209
- Then restart Claude Desktop to load the planning tools.
89
+ ### Cline (VS Code)
210
90
 
211
- ## Example Usage
91
+ Add the same JSON config to your Cline MCP settings in VS Code.
212
92
 
213
- ### Search Examples
93
+ ### Any HTTP MCP Client
214
94
 
215
- ```javascript
216
- // Global search
217
- search({
218
- scope: "global",
219
- query: "API integration",
220
- filters: { type: "task", status: "in_progress" }
221
- })
95
+ - Endpoint: `https://agentplanner.io/mcp`
96
+ - Discovery: `https://agentplanner.io/.well-known/mcp.json`
97
+ - Auth header: `Authorization: ApiKey <your-token>`
98
+ - Transport: Streamable HTTP (MCP 2025-03-26)
222
99
 
223
- // Search within a specific plan
224
- search({
225
- scope: "plan",
226
- scope_id: "plan-123",
227
- query: "testing"
228
- })
229
- ```
100
+ ## Key Features
230
101
 
231
- ### Plan Management
232
-
233
- ```javascript
234
- // Create a plan with initial structure
235
- create_plan({
236
- title: "Product Launch Q1 2025",
237
- description: "Complete product launch plan",
238
- status: "active"
239
- })
240
-
241
- // Add nodes to the plan
242
- create_node({
243
- plan_id: "plan-123",
244
- node_type: "phase",
245
- title: "Market Research",
246
- description: "Initial market analysis and competitor research"
247
- })
248
- ```
102
+ - **60+ tools** for planning, task management, dependencies, and knowledge
103
+ - **Dependency graph** with cycle detection, impact analysis, and critical path
104
+ - **Progressive context** — 4-layer context assembly with token budgeting
105
+ - **Knowledge graph** temporal knowledge via Graphiti (entities, facts, contradictions)
106
+ - **RPI chains** — Research > Plan > Implement task decomposition
107
+ - **Goal tracking** health dashboard, briefings, bottleneck detection
108
+ - **Task claims** TTL-based locking for multi-agent coordination
109
+ - **Organizations** — multi-tenant isolation
249
110
 
250
- ### Batch Operations
251
-
252
- ```javascript
253
- // Update multiple nodes efficiently
254
- batch_update_nodes({
255
- plan_id: "plan-123",
256
- updates: [
257
- { node_id: "node-1", status: "completed" },
258
- { node_id: "node-2", status: "in_progress" },
259
- { node_id: "node-3", description: "Updated requirements" }
260
- ]
261
- })
262
-
263
- // Get multiple artifacts at once
264
- batch_get_artifacts({
265
- plan_id: "plan-123",
266
- artifact_requests: [
267
- { node_id: "node-1", artifact_id: "art-1" },
268
- { node_id: "node-2", artifact_id: "art-2" }
269
- ]
270
- })
271
- ```
111
+ ## Available Tools
272
112
 
273
- ### Rich Context
274
-
275
- ```javascript
276
- // Get comprehensive node information
277
- get_node_context({
278
- plan_id: "plan-123",
279
- node_id: "node-456"
280
- })
281
- // Returns: node details, children, logs, artifacts, plan info
282
-
283
- // Track node ancestry
284
- get_node_ancestry({
285
- plan_id: "plan-123",
286
- node_id: "node-456"
287
- })
288
- // Returns: path from root to node
289
- ```
113
+ ### Planning & Search
114
+ - `search` - Universal search across all scopes with filters
115
+ - `create_plan` / `update_plan` / `delete_plan` - Plan CRUD
116
+ - `get_plan_structure` - Hierarchical plan tree
117
+ - `get_plan_summary` - Statistics and summary
290
118
 
291
- ## Project Structure
119
+ ### Node Management
120
+ - `create_node` / `update_node` / `delete_node` - Node CRUD
121
+ - `move_node` - Reorder or reparent nodes
122
+ - `batch_update_nodes` - Update multiple nodes at once
123
+ - `get_node_context` / `get_node_ancestry` - Rich context
292
124
 
293
- ```
294
- src/
295
- ├── index.js # Main entry point
296
- ├── tools.js # Tool implementations
297
- ├── api-client.js # API client with axios
298
- └── tools/
299
- └── search-wrapper.js # Search functionality wrapper
300
- ```
125
+ ### Dependencies & Analysis
126
+ - `create_dependency` / `delete_dependency` - Manage edges
127
+ - `list_dependencies` / `get_node_dependencies` - Query graph
128
+ - `analyze_impact` - Delay/block/remove scenario analysis
129
+ - `get_critical_path` - Longest blocking chain
130
+ - `create_rpi_chain` - Research > Plan > Implement chain
301
131
 
302
- ## Development
132
+ ### Progressive Context
133
+ - `get_task_context` - Primary context tool (depth 1-4, token budget)
134
+ - `suggest_next_tasks` - Dependency-aware suggestions
135
+ - `get_agent_context` / `get_plan_context` - Focused views
303
136
 
304
- ### Running in Development Mode
137
+ ### Knowledge Graph
138
+ - `add_learning` / `recall_knowledge` - Learn and retrieve
139
+ - `find_entities` / `check_contradictions` - Graph queries
140
+ - `get_recent_episodes` - Temporal episodes
305
141
 
306
- ```bash
307
- npm run dev # Auto-restart on changes
308
- ```
142
+ ### Goals & Organizations
143
+ - `create_goal` / `update_goal` / `list_goals` / `get_goal` - Goal management
144
+ - `check_goals_health` - Health dashboard
145
+ - `create_organization` / `get_organization` / `list_organizations` / `update_organization`
309
146
 
310
- ### Environment Variables
147
+ ### Collaboration
148
+ - `add_log` / `get_logs` - Log entries (comments, progress, reasoning)
149
+ - `claim_task` / `release_task` - Task locking
150
+ - `share_plan` - Collaboration management
311
151
 
312
- - `API_URL` - Planning System API URL
313
- - `USER_API_TOKEN` - Authentication token
314
- - `MCP_SERVER_NAME` - Server name (default: planning-system-mcp)
315
- - `MCP_SERVER_VERSION` - Server version (default: 0.2.0)
316
- - `NODE_ENV` - Environment (development/production)
152
+ ## LLM Skill Reference
317
153
 
318
- ### Testing Tools
154
+ See **[SKILL.md](./SKILL.md)** for a complete reference designed to be consumed by LLMs. Include it in system prompts or agent configurations to give any LLM full knowledge of how to use AgentPlanner tools effectively.
319
155
 
320
- ```javascript
321
- // Test search functionality
322
- search({ scope: "global", query: "test" })
156
+ See **[AGENT_GUIDE.md](./AGENT_GUIDE.md)** for a quick reference card.
323
157
 
324
- // Test node operations
325
- create_node({ plan_id: "...", node_type: "task", title: "Test" })
326
- update_node({ plan_id: "...", node_id: "...", status: "completed" })
327
- delete_node({ plan_id: "...", node_id: "..." })
158
+ ## Transport Modes
328
159
 
329
- // Test batch operations
330
- batch_update_nodes({ plan_id: "...", updates: [...] })
160
+ ### stdio (default)
161
+ For local use with Claude Desktop, Claude Code, Cursor, Windsurf, Cline:
162
+ ```bash
163
+ npx agent-planner-mcp
331
164
  ```
332
165
 
333
- ## Troubleshooting
166
+ ### HTTP/SSE
167
+ For remote access (ChatGPT, cloud deployments, multi-agent systems):
168
+ ```bash
169
+ MCP_TRANSPORT=http npx agent-planner-mcp
170
+ # Listens on http://127.0.0.1:3100
171
+ ```
334
172
 
335
- ### Common Issues
173
+ Production endpoint: `https://agentplanner.io/mcp`
336
174
 
337
- - **Connection errors**: Ensure the Planning System API is running
338
- - **Authentication errors**: Verify your USER_API_TOKEN is valid
339
- - **Tool errors**: Check error messages in console output
175
+ See [HTTP_MODE.md](./HTTP_MODE.md) for details.
340
176
 
341
- ### Debug Mode
177
+ ## Local Development
342
178
 
343
- Enable verbose logging:
344
179
  ```bash
345
- NODE_ENV=development npm start
180
+ git clone https://github.com/TAgents/agent-planner-mcp.git
181
+ cd agent-planner-mcp
182
+ npm install
183
+ npm run setup # Interactive setup wizard
184
+ npm run dev # Dev server with hot reload
346
185
  ```
347
186
 
348
- ## Performance Tips
187
+ ### Environment Variables
349
188
 
350
- 1. Use batch operations when updating multiple items
351
- 2. Use appropriate search scopes to minimize API calls
352
- 3. Cache plan structures when making multiple operations
353
- 4. Apply filters to limit result sets
189
+ | Variable | Description | Default |
190
+ |----------|-------------|---------|
191
+ | `API_URL` | AgentPlanner API URL | `http://localhost:3000` |
192
+ | `USER_API_TOKEN` | API token (required) | — |
193
+ | `MCP_TRANSPORT` | `stdio` or `http` | `stdio` |
194
+ | `PORT` | HTTP mode port | `3100` |
195
+ | `NODE_ENV` | Environment | `production` |
354
196
 
355
197
  ## License
356
198
 
357
- MIT License - see LICENSE file for details.
199
+ MIT License - see [LICENSE](./LICENSE) for details.
358
200
 
359
201
  ## Support
360
202
 
361
- - Report bugs via GitHub Issues
362
- - See [PDR.md](./PDR.md) for technical design details
363
- - Check [CHANGELOG.md](./CHANGELOG.md) for version history
203
+ - [GitHub Issues](https://github.com/TAgents/agent-planner-mcp/issues)
204
+ - [CHANGELOG.md](./CHANGELOG.md) for version history
205
+ - [PDR.md](./PDR.md) for technical design