@planu/cli 7.1.2 → 7.1.3

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,7 @@
1
+ ## [7.1.3] - 2026-09-18
2
+
3
+ - start the MCP stdio server when invoked through an `npx` `.bin` symlink (`npx -y @planu/cli@latest`)
4
+
1
5
  ## [7.1.2] - 2026-09-18
2
6
 
3
7
  ### Bug Fixes
@@ -2,4 +2,5 @@
2
2
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
3
  export declare function createUltralightSddServer(workspaceRoot?: string): McpServer;
4
4
  export declare function runServer(): Promise<void>;
5
+ export declare function isSameBinEntry(argv1: string | undefined, modulePath: string): boolean;
5
6
  //# sourceMappingURL=server.d.ts.map
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { fileURLToPath } from 'node:url';
2
+ import { realpathSync } from 'node:fs';
3
3
  import { resolve } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
4
5
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
6
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
6
7
  import { registerUltralightSddTools } from './tools.js';
@@ -8,7 +9,7 @@ import { resolveSddWorkspaceRoot } from './workspace-root.js';
8
9
  export function createUltralightSddServer(workspaceRoot) {
9
10
  const server = new McpServer({
10
11
  name: 'sdd-engine',
11
- version: '7.1.2',
12
+ version: '7.1.3',
12
13
  }, {
13
14
  capabilities: {
14
15
  tools: {},
@@ -23,12 +24,19 @@ export async function runServer() {
23
24
  const transport = new StdioServerTransport();
24
25
  await server.connect(transport);
25
26
  }
26
- function isDirectInvocation() {
27
- const entry = process.argv[1];
28
- if (!entry) {
27
+ export function isSameBinEntry(argv1, modulePath) {
28
+ if (!argv1) {
29
29
  return false;
30
30
  }
31
- return resolve(entry) === fileURLToPath(import.meta.url);
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));
32
40
  }
33
41
  if (isDirectInvocation()) {
34
42
  runServer().catch((err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planu/cli",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
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",