agent-planner-mcp 1.5.12 → 1.5.13

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
@@ -83,6 +83,7 @@ A Workspace is a folder under an Organization that owns goals + plans — a grou
83
83
  - `list_blueprints` — list blueprints visible to user (owned + public/unlisted), filterable by scope
84
84
  - `fork_blueprint` — instantiate a plan-scope blueprint as a new plan in a target workspace
85
85
  - `save_as_blueprint` — snapshot a live plan as a reusable blueprint. Captures structure, agent_instructions, and dependencies; excludes statuses, claims, knowledge episodes, logs, decisions, and agent assignments
86
+ - `delete_blueprint` — delete a blueprint you own (hard delete; already-forked plans are unaffected)
86
87
 
87
88
  ### Utility
88
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-planner-mcp",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
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": {
@@ -8,7 +8,7 @@
8
8
  * agent-planner/docs/WORKSPACE_BLUEPRINT_SKETCH.md for the design.
9
9
  */
10
10
 
11
- const { asOf, formatResponse, errorResponse, safeArray } = require('./_shared');
11
+ const { asOf, formatResponse, errorResponse, safeArray, apiErrorMessage } = require('./_shared');
12
12
 
13
13
  // ─── Workspaces ──────────────────────────────────────────────────
14
14
 
@@ -197,6 +197,37 @@ async function saveAsBlueprintHandler(args, apiClient) {
197
197
  }
198
198
  }
199
199
 
200
+ const deleteBlueprintDefinition = {
201
+ name: 'delete_blueprint',
202
+ description:
203
+ "Delete a blueprint you own. Hard delete (the snapshot is removed); plans " +
204
+ "already forked from it are unaffected. Owner-only. Completes the blueprint " +
205
+ "lifecycle alongside save_as_blueprint and fork_blueprint.",
206
+ inputSchema: {
207
+ type: 'object',
208
+ properties: {
209
+ blueprint_id: { type: 'string' },
210
+ },
211
+ required: ['blueprint_id'],
212
+ },
213
+ };
214
+
215
+ async function deleteBlueprintHandler(args, apiClient) {
216
+ const { blueprint_id } = args;
217
+ if (!blueprint_id) {
218
+ return errorResponse('invalid_arg', 'delete_blueprint requires blueprint_id');
219
+ }
220
+ try {
221
+ await apiClient.blueprints.delete(blueprint_id);
222
+ return formatResponse({ as_of: asOf(), blueprint_id, deleted: true });
223
+ } catch (err) {
224
+ const status = err.response?.status;
225
+ if (status === 404) return errorResponse('not_found', `Blueprint ${blueprint_id} not found`);
226
+ if (status === 403) return errorResponse('forbidden', 'Only the owner can delete this blueprint');
227
+ return errorResponse('upstream_unavailable', `delete_blueprint failed: ${apiErrorMessage(err)}`);
228
+ }
229
+ }
230
+
200
231
  module.exports = {
201
232
  definitions: [
202
233
  listWorkspacesDefinition,
@@ -204,6 +235,7 @@ module.exports = {
204
235
  listBlueprintsDefinition,
205
236
  forkBlueprintDefinition,
206
237
  saveAsBlueprintDefinition,
238
+ deleteBlueprintDefinition,
207
239
  ],
208
240
  handlers: {
209
241
  list_workspaces: listWorkspacesHandler,
@@ -211,5 +243,6 @@ module.exports = {
211
243
  list_blueprints: listBlueprintsHandler,
212
244
  fork_blueprint: forkBlueprintHandler,
213
245
  save_as_blueprint: saveAsBlueprintHandler,
246
+ delete_blueprint: deleteBlueprintHandler,
214
247
  },
215
248
  };