agent-planner-mcp 1.5.5 → 1.5.6

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/SKILL.md CHANGED
@@ -123,7 +123,7 @@ The `update_task` call is atomic — status change, log entry, claim release, an
123
123
 
124
124
  ```
125
125
  1. claim_next_task(scope={ plan_id }, ttl_minutes=30) → exclusive ownership
126
- 2. task_context(task_id, depth=4) periodically to refresh as work progresses
126
+ 2. task_context(node_id, depth=4) periodically to refresh as work progresses
127
127
  3. update_task(...) for state transitions
128
128
  4. release_task(task_id, message='handoff to teammate') for explicit handoff
129
129
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-planner-mcp",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "MCP server for AgentPlanner — AI agent orchestration with planning, dependencies, knowledge graphs, and human oversight",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -197,18 +197,26 @@ const taskContextDefinition = {
197
197
  inputSchema: {
198
198
  type: 'object',
199
199
  properties: {
200
- task_id: { type: 'string' },
200
+ // `node_id` is the canonical name (matches every other tool + the skill
201
+ // docs). `task_id` is kept as an accepted alias for back-compat.
202
+ node_id: { type: 'string', description: 'The task/node id to load context for.' },
203
+ task_id: { type: 'string', description: 'Alias for node_id (back-compat).' },
201
204
  depth: { type: 'integer', enum: [1, 2, 3, 4], default: 2 },
202
205
  token_budget: { type: 'integer', default: 0 },
203
206
  },
204
- required: ['task_id'],
207
+ // Neither is strictly required at the schema level because either name is
208
+ // accepted; the handler validates that one was supplied with a clear error.
205
209
  },
206
210
  };
207
211
 
208
212
  async function taskContextHandler(args, apiClient) {
209
- const { task_id, depth = 2, token_budget = 0 } = args;
213
+ const { node_id, task_id, depth = 2, token_budget = 0 } = args;
214
+ const nodeId = node_id || task_id;
215
+ if (!nodeId) {
216
+ return errorResponse('invalid_arg', 'task_context requires node_id (the task/node id).');
217
+ }
210
218
  const params = new URLSearchParams({
211
- node_id: task_id,
219
+ node_id: nodeId,
212
220
  depth: String(depth),
213
221
  token_budget: String(token_budget),
214
222
  log_limit: '10',