@planu/cli 7.1.3 → 7.1.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [7.1.4] - 2026-09-18
2
+
3
+ - public install is `npx -y @planu/cli@latest` (same as Claude/Codex): `cli`, `planu`, and `sdd-engine` bins always start MCP stdio
4
+ - stop gating MCP startup on argv/realpath so npx shims cannot exit silently
5
+
1
6
  ## [7.1.3] - 2026-09-18
2
7
 
3
8
  - start the MCP stdio server when invoked through an `npx` `.bin` symlink (`npx -y @planu/cli@latest`)
package/README.md CHANGED
@@ -25,19 +25,21 @@ Authentication is **not required**. Do not call `mcp_auth`.
25
25
 
26
26
  ## Installation
27
27
 
28
- The published binary is `sdd-engine` (not a default `npx @planu/cli` no-arg process). Use:
28
+ Paste this into Claude Code, Cursor, Codex, or any MCP client:
29
29
 
30
30
  ```json
31
31
  {
32
32
  "mcpServers": {
33
33
  "planu": {
34
34
  "command": "npx",
35
- "args": ["-y", "-p", "@planu/cli@latest", "sdd-engine"]
35
+ "args": ["-y", "@planu/cli@latest"]
36
36
  }
37
37
  }
38
38
  }
39
39
  ```
40
40
 
41
+ That is the whole install. `npx @planu/cli` starts the MCP stdio server (`cli`, `planu`, and `sdd-engine` are the same binary). Each host restart resolves **latest** from npm.
42
+
41
43
  Local development in this repo:
42
44
 
43
45
  ```json
@@ -45,14 +47,14 @@ Local development in this repo:
45
47
  "mcpServers": {
46
48
  "planu": {
47
49
  "command": "node",
48
- "args": ["dist/sdd-engine/server.js"],
50
+ "args": ["dist/sdd-engine/cli.js"],
49
51
  "cwd": "/absolute/path/to/sdd-mcp-server"
50
52
  }
51
53
  }
52
54
  }
53
55
  ```
54
56
 
55
- Set `cwd` to the project that owns `.sdd/`, or set `PLANU_WORKSPACE` to that absolute path. The server also walks up from cwd until it finds `.sdd/`. A home-directory cwd with no ancestor `.sdd` will not see repo features. `pnpm start` / `dist/index.js` does **not** start the MCP server.
57
+ Set `cwd` to the project that owns `.sdd/`, or set `PLANU_WORKSPACE` to that absolute path. The server also walks up from cwd until it finds `.sdd/`. A home-directory cwd with no ancestor `.sdd` will not see repo features. `pnpm start` runs the MCP server.
56
58
 
57
59
  **Requirements:** Node.js >= 22.13.
58
60
 
@@ -109,7 +111,7 @@ pnpm test tests/sdd-engine
109
111
  MCP:
110
112
 
111
113
  ```bash
112
- node dist/sdd-engine/server.js
114
+ node dist/sdd-engine/cli.js
113
115
  ```
114
116
 
115
117
  ---
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { runServer } from './server.js';
3
+ runServer().catch((err) => {
4
+ process.stderr.write(`[SDD-Engine] Fatal error: ${String(err)}\n`);
5
+ process.exit(1);
6
+ });
7
+ //# sourceMappingURL=cli.js.map
@@ -1,6 +1,4 @@
1
- #!/usr/bin/env node
2
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
2
  export declare function createUltralightSddServer(workspaceRoot?: string): McpServer;
4
3
  export declare function runServer(): Promise<void>;
5
- export declare function isSameBinEntry(argv1: string | undefined, modulePath: string): boolean;
6
4
  //# sourceMappingURL=server.d.ts.map
@@ -1,7 +1,3 @@
1
- #!/usr/bin/env node
2
- import { realpathSync } from 'node:fs';
3
- import { resolve } from 'node:path';
4
- import { fileURLToPath } from 'node:url';
5
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
6
2
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
7
3
  import { registerUltralightSddTools } from './tools.js';
@@ -9,7 +5,7 @@ import { resolveSddWorkspaceRoot } from './workspace-root.js';
9
5
  export function createUltralightSddServer(workspaceRoot) {
10
6
  const server = new McpServer({
11
7
  name: 'sdd-engine',
12
- version: '7.1.3',
8
+ version: '7.1.4',
13
9
  }, {
14
10
  capabilities: {
15
11
  tools: {},
@@ -24,24 +20,4 @@ export async function runServer() {
24
20
  const transport = new StdioServerTransport();
25
21
  await server.connect(transport);
26
22
  }
27
- export function isSameBinEntry(argv1, modulePath) {
28
- if (!argv1) {
29
- return false;
30
- }
31
- try {
32
- return realpathSync(argv1) === realpathSync(modulePath);
33
- }
34
- catch {
35
- return resolve(argv1) === resolve(modulePath);
36
- }
37
- }
38
- function isDirectInvocation() {
39
- return isSameBinEntry(process.argv[1], fileURLToPath(import.meta.url));
40
- }
41
- if (isDirectInvocation()) {
42
- runServer().catch((err) => {
43
- process.stderr.write(`[SDD-Engine] Fatal error: ${String(err)}\n`);
44
- process.exit(1);
45
- });
46
- }
47
23
  //# sourceMappingURL=server.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planu/cli",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "description": "Planu — MCP Server for Spec Driven Development. Cross-platform (Linux/macOS/Windows, x64/arm64).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,9 @@
9
9
  "./package.json": "./package.json"
10
10
  },
11
11
  "bin": {
12
- "sdd-engine": "dist/sdd-engine/server.js"
12
+ "cli": "dist/sdd-engine/cli.js",
13
+ "planu": "dist/sdd-engine/cli.js",
14
+ "sdd-engine": "dist/sdd-engine/cli.js"
13
15
  },
14
16
  "files": [
15
17
  "dist/",
@@ -105,7 +107,7 @@
105
107
  "build": "pnpm build:ts",
106
108
  "build:ts": "pnpm clean && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node scripts/copy-runtime-assets.mjs",
107
109
  "dev": "tsc --watch",
108
- "start": "node dist/sdd-engine/server.js",
110
+ "start": "node dist/sdd-engine/cli.js",
109
111
  "clean": "rm -rf dist",
110
112
  "lint": "eslint src/ tests/ --max-warnings 0 --cache --cache-strategy content --cache-location node_modules/.cache/eslint/",
111
113
  "lint:gate": "eslint src/ tests/ --max-warnings 0",
@@ -33,6 +33,6 @@ Any change to the MCP core (`src/sdd-engine/**`, `src/types/sdd-engine.ts`, `src
33
33
 
34
34
  - Do not add a core tool without adding it to the 9-or-updated canonical list everywhere.
35
35
  - Do not change `sdd_init_workspace` copy paths without updating `templates/`.
36
- - Do not ship `dist/index.js` as the MCP process; the bin is `dist/sdd-engine/server.js`.
36
+ - Do not ship `dist/index.js` as the MCP process; the bin is `dist/sdd-engine/cli.js` (`cli`, `planu`, and `sdd-engine`).
37
37
  - Never delete `website/`. Core surface changes MUST update `website/src/main.ts` and `website/scripts/facts.mjs` so planu.dev matches the live nine `sdd_*` tools.
38
38
  - Never delete `website/public/donations/*-qr.svg`. BTC, ETH and SOL QR assets and visible addresses are the funding surface; keep them on the page, fail the build if they drift.