@pathmode/mcp-server 1.31.0 → 1.31.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/dist/index.js CHANGED
@@ -108158,7 +108158,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"http://json-schema.org/dra
108158
108158
  /***/ ((module) => {
108159
108159
 
108160
108160
  "use strict";
108161
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@pathmode/mcp-server","version":"1.31.0","publishConfig":{"access":"public"},"mcpName":"io.github.pathmodeio/mcp-server","description":"Deterministic intent preflight before your agent builds: six calibrated gates, keyless, no model call. Draft and sharpen specs in conversation, or connect a Pathmode workspace to sync intent and evidence across a team.","main":"dist/index.js","bin":{"pathmode-mcp":"dist/index.js"},"files":["dist/","manifest.json","icon.svg","README.md","skills/"],"scripts":{"build":"rm -rf dist && ncc build src/index.ts -o dist","typecheck":"tsc --noEmit","dev":"ts-node src/index.ts","prepublishOnly":"npm run build"},"keywords":["pathmode","mcp","model-context-protocol","claude-code","claude-code-skills","agent-skills","cursor","windsurf","intent-engineering","intent-compiler","ai-agents","product-development","dependency-graph","strategic-planning"],"author":"Pathmode","license":"MIT","type":"commonjs","engines":{"node":">=18.0.0"},"homepage":"https://pathmode.io","dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","gray-matter":"^4.0.3","zod":"^4.5.4"},"overrides":{"@hono/node-server":"^1.19.17","body-parser":"^2.3.0","fast-uri":"^3.1.6","hono":"^4.13.5","ip-address":"^10.7.0","js-yaml":"^3.15.2"},"devDependencies":{"@types/node":"^25.1.0","@vercel/ncc":"^0.38.4","ts-node":"^10.9.2","typescript":"^5.9.3"}}');
108161
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@pathmode/mcp-server","version":"1.31.1","publishConfig":{"access":"public"},"mcpName":"io.github.pathmodeio/mcp-server","description":"Deterministic intent preflight before your agent builds: six calibrated gates, keyless, no model call. Draft and sharpen specs in conversation, or connect a Pathmode workspace to sync intent and evidence across a team.","main":"dist/index.js","bin":{"pathmode-mcp":"dist/index.js"},"files":["dist/","manifest.json","icon.svg","README.md","skills/"],"scripts":{"build":"rm -rf dist && ncc build src/index.ts -o dist","typecheck":"tsc --noEmit","dev":"ts-node src/index.ts","prepublishOnly":"npm run build"},"keywords":["pathmode","mcp","model-context-protocol","claude-code","claude-code-skills","agent-skills","cursor","windsurf","intent-engineering","intent-compiler","ai-agents","product-development","dependency-graph","strategic-planning"],"author":"Pathmode","license":"MIT","type":"commonjs","engines":{"node":">=18.0.0"},"homepage":"https://pathmode.io","dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","gray-matter":"^4.0.3","zod":"^4.5.4"},"overrides":{"@hono/node-server":"^1.19.17","body-parser":"^2.3.0","fast-uri":"^3.1.6","hono":"^4.13.5","ip-address":"^10.7.0","js-yaml":"^3.15.2"},"devDependencies":{"@types/node":"^25.1.0","@vercel/ncc":"^0.38.4","ts-node":"^10.9.2","typescript":"^5.9.3"}}');
108162
108162
 
108163
108163
  /***/ })
108164
108164
 
@@ -108329,19 +108329,22 @@ function startMcpServer() {
108329
108329
  // ============================================================
108330
108330
  // Server Setup
108331
108331
  // ============================================================
108332
- // First-run guidance, injected into the client's system context via the MCP
108333
- // `instructions` field. Without it the agent discovers the tools but not the first
108334
- // move, which is how "server launches, no tool ever fires" happens. Mode-aware:
108335
- // keyless installs (the plugin default) get the preflight-first path; cloud installs
108336
- // get the same plus the 401 escape hatch, because a stale key otherwise fails every
108337
- // tool with no fix named anywhere.
108332
+ // First-run guidance delivered in the MCP initialize response, independently of skill
108333
+ // discovery. Keep the no-intent choice workflow here as well as in the skills. This is
108334
+ // guidance, not an enforcement hook: the unchanged-prompt journey measures whether
108335
+ // the agent follows it. Smoke tests verify delivery in both connection modes.
108338
108336
  const LOCAL_MODE_INSTRUCTIONS = 'Pathmode is running in keyless local mode: specs live in intent.md in this repo and nothing leaves the machine. ' +
108339
- 'First move: call check_intent_readiness. With no arguments it reads intent.md; pass a spec inline to preflight a draft. ' +
108340
- 'If no intent exists yet, draft one from the conversation, mark inferred fields as assumptions, preflight the draft, then offer intent_save. ' +
108337
+ 'When asked to build, implement, fix, or change product code, first call check_intent_readiness with no arguments for this repository. ' +
108338
+ 'If no intent.md exists, read the actual request and relevant code for discovery, then propose an intent for that request. Record consequential behavior the request leaves undecided as open productChoices: question, recommendation, reason, alternative, cost, reopenTrigger, and contingent claims. Keep recommendations distinct from supplied requirements; do not copy contingent claims into required outcomes or invent choices when the request already settles them. ' +
108339
+ 'Call intent_save with localDraft: true and the complete spec, including those productChoices. Save the draft, rerun check_intent_readiness, explain the open choices, and STOP before changing product code. A terminal question or a plan alone does not preserve the choice. Retain the original request alongside the local draft. If the repository cannot be identified, ask for its location before saving; never replace a different intent. ' +
108341
108340
  'A failing verdict names the exact blockers; repair them one targeted question at a time. Never block saving a failing spec, but do not silently start implementation from one: the user must explicitly accept the named risk. ' +
108342
- 'To sync with a shared Pathmode workspace later, run: npx @pathmode/mcp-server setup pm_live_xxx';
108341
+ 'In keyless mode, discuss the saved choices locally; do not claim team review or authorization. For team review, a workspace member must open Pathmode repository onboarding, choose a workspace and product, and supply the adopt pm_adopt_... command. Adoption carries the draft and its open choices into the workspace. An API key alone does not establish repository ownership.';
108343
108342
  const CLOUD_MODE_INSTRUCTIONS = 'Pathmode is connected to a workspace (cloud mode). ' +
108344
- 'First move: call check_intent_readiness before implementation starts. With no arguments it resolves this repo\'s intent.md from MCP workspace roots or the server launch directory. When the repository has no intent.md, or cannot be identified, it refuses and says so instead of grading a different intent; the workspace current intent is never substituted. A failing verdict names the exact blockers to repair. Do not silently implement from a failing spec: repair it or get the user\'s explicit acceptance of the named risk. ' +
108343
+ 'When asked to build, implement, fix, or change product code, first call check_intent_readiness with no arguments for this repository. It resolves intent.md from MCP workspace roots or the server launch directory; never substitute the workspace current intent. ' +
108344
+ 'If no intent.md exists, read the actual request and relevant code for discovery, then propose an intent for that request. Record consequential behavior the request leaves undecided as open productChoices: question, recommendation, reason, alternative, cost, reopenTrigger, and contingent claims. Keep recommendations distinct from supplied requirements; do not copy contingent claims into required outcomes or invent choices when the request already settles them. ' +
108345
+ 'Call intent_save with localDraft: true and the complete spec, including those productChoices. Save the draft, rerun check_intent_readiness, explain the open choices, and STOP before changing product code. A terminal question or a plan alone does not preserve the choice. If the repository cannot be identified, ask for its location before saving; never replace a different intent or detach an already connected file. ' +
108346
+ 'For team review of a new local draft, a workspace member must open Pathmode repository onboarding, choose a workspace and product, and supply the adopt pm_adopt_... command. After adoption succeeds, attach the verbatim original request with attach_original_request, provide the review link, and stop for review. An API key alone does not establish repository ownership. ' +
108347
+ 'For an existing repository intent, preflight still comes before product-code changes. A failing verdict names the exact blockers to repair; explicit acceptance of a named risk does not make the verdict pass. A reviewer answer requests a correction; the agent applies it, and the reviewer separately authorizes the exact resulting revision. Before implementation, refresh get_intent and require authorization to be authorized with authorizedRepoBodyRevision equal to repoBodyRevision. Stop for pending corrections or missing, rejected, or stale authorization. ' +
108345
108348
  'If tools fail with API error (401), the configured key is invalid: re-run npx @pathmode/mcp-server setup with a fresh key from your workspace settings at https://pathmode.io, ' +
108346
108349
  'or remove PATHMODE_API_KEY and restart to fall back to free keyless local mode (specs live in intent.md, no account needed).';
108347
108350
  const server = new mcp_js_1.McpServer({
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "pathmode",
4
4
  "display_name": "Pathmode",
5
- "version": "1.31.0",
5
+ "version": "1.31.1",
6
6
  "description": "Deterministic preflight for the intent you hand to a coding agent: six calibrated gates, the exact blockers named, no model call, no key needed.",
7
7
  "long_description": "Pathmode MCP Server runs a deterministic preflight before your coding agent builds: check_intent_readiness scores an intent spec against six calibrated gates (title, objective, outcomes, constraints, edge cases, verification) and names the exact blockers, with no model call and no account. Keyless local mode works out of the box; specs live in intent.md in your repo, plain markdown you own, and skills for drafting, pressure-testing, and handing off intent ride along. Connect a Pathmode workspace with an API key to sync intent and evidence across a team, analyze dependency graphs, and verify pull requests against the outcomes you agreed to.",
8
8
  "author": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathmode/mcp-server",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },