@agent-plan/mcp 0.2.21 → 0.2.22

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
@@ -2,7 +2,9 @@
2
2
 
3
3
  MCP server for Agent Plan.
4
4
 
5
- Exposes `planner-*` tools over stdio for hosts such as Claude Code.
5
+ Exposes `planner-*` tools over stdio for hosts such as Claude Code and Codex.
6
+
7
+ Use `planner-version` (or `/planner version` in the Claude plugin) to report the `@agent-plan/mcp` and `@agent-plan/core` versions actually loaded by the server process. The tool works without an initialized `.planner/` workspace.
6
8
 
7
9
  See the repository root README for full documentation:
8
10
  https://github.com/ovidius72/agent-planner#readme
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAm9CA,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAItD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAo+CA,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAItD"}
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
4
4
  import * as z from "zod/v4";
5
5
  import { join } from "node:path";
6
6
  import { pathToFileURL } from "node:url";
7
- import { PlanStore, ExportService, withFeatureLock, needsMotivation, findPhaseByRef, findTaskByRef, buildRecap, addChecklistItem, removeChecklistItem, toggleChecklistItem, buildPhaseContextBlock, checkExplicitTaskStart, recommendNextTask } from "@agent-plan/core";
7
+ import { PlanStore, ExportService, withFeatureLock, needsMotivation, findPhaseByRef, findTaskByRef, buildRecap, addChecklistItem, removeChecklistItem, toggleChecklistItem, buildPhaseContextBlock, checkExplicitTaskStart, recommendNextTask, packageVersionFromModule, resolvedPackageVersion } from "@agent-plan/core";
8
8
  import { serve } from "@agent-plan/server";
9
9
  import { createChecklistItemId, createFeatureId, createPhaseId, createTaskId, clampSlug, normalizeSlug, formatPhaseRef, formatFeatureRef, validateResolvedTarget } from "@agent-plan/core/naming";
10
10
  const STATUS_VALUES = ["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"];
@@ -12,6 +12,8 @@ const PHASE_STATUS_VALUES = ["draft", "discovery", ...STATUS_VALUES];
12
12
  function text(textValue, structuredContent) {
13
13
  return structuredContent ? { content: [{ type: "text", text: textValue }], structuredContent } : { content: [{ type: "text", text: textValue }] };
14
14
  }
15
+ const MCP_PACKAGE = packageVersionFromModule(import.meta.url, "@agent-plan/mcp");
16
+ const CORE_PACKAGE = resolvedPackageVersion("@agent-plan/core", import.meta.url);
15
17
  function nowISO() {
16
18
  return new Date().toISOString();
17
19
  }
@@ -123,7 +125,7 @@ async function writeAndSummarize(st, message, structuredContent) {
123
125
  }
124
126
  const server = new McpServer({
125
127
  name: "agent-plan-planner",
126
- version: "0.1.0",
128
+ version: MCP_PACKAGE.version,
127
129
  });
128
130
  async function resolvePhaseForHandoff(st, ref) {
129
131
  const phases = await st.loadAllPhases();
@@ -143,6 +145,19 @@ async function resolvePhaseForHandoff(st, ref) {
143
145
  const feat = phase.featureId ? features.find((f) => f.id === phase.featureId) : undefined;
144
146
  return { ok: true, phase, compositeRef: formatPhaseRef(phase.number, feat?.number) };
145
147
  }
148
+ server.registerTool("planner-version", {
149
+ description: "Report the versions of the Agent Plan MCP server and core package actually loaded by this process. Available without an initialized .planner/ workspace.",
150
+ }, async () => {
151
+ const versions = {
152
+ [MCP_PACKAGE.name]: MCP_PACKAGE.version,
153
+ [CORE_PACKAGE.name]: CORE_PACKAGE.version,
154
+ };
155
+ return text([
156
+ "Agent Plan runtime versions",
157
+ `${MCP_PACKAGE.name}: ${MCP_PACKAGE.version}`,
158
+ `${CORE_PACKAGE.name}: ${CORE_PACKAGE.version}`,
159
+ ].join("\n"), { versions });
160
+ });
146
161
  server.registerTool("planner-export", {
147
162
  description: "Export the project plan as a Markdown report. Supports a concise summary or full hierarchical detail.",
148
163
  inputSchema: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-plan/mcp",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "private": false,
5
5
  "description": "MCP server for Agent Plan, exposing planner-* tools over stdio.",
6
6
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  "dependencies": {
44
44
  "@modelcontextprotocol/sdk": "^1.17.0",
45
45
  "zod": "^3.24.0",
46
- "@agent-plan/core": "0.2.21",
47
- "@agent-plan/server": "0.2.21"
46
+ "@agent-plan/core": "0.2.22",
47
+ "@agent-plan/server": "0.2.22"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsc -p tsconfig.json",