@nexus-flow/mcp 0.14.0 → 0.15.0

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.
Files changed (2) hide show
  1. package/bin/cli.js +7 -0
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -12,6 +12,13 @@ const { ensureNxs } = require('../lib/index');
12
12
 
13
13
  async function main() {
14
14
  const passthrough = process.argv.slice(2); // e.g. ["--workspace", "/proj"]
15
+ // npx forwards the `--` option terminator into the child's argv, so the DOCUMENTED host form
16
+ // `npx -y @nexus-flow/mcp -- --workspace <p>` reaches this shim as ["--", "--workspace", <p>].
17
+ // Drop a single leading `--` so nxs receives `mcp serve --workspace <p>` (clap flags) — not
18
+ // `mcp serve -- --workspace <p>`, where clap treats everything after `--` as a positional and
19
+ // aborts with "unexpected argument '--workspace'". `nxs mcp serve` takes only flags, so a leading
20
+ // `--` is never meaningful to pass on.
21
+ if (passthrough[0] === '--') passthrough.shift();
15
22
 
16
23
  let nxs;
17
24
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-flow/mcp",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Runner shim: fetch, verify (sha256 + minisign), cache, and exec the signed nxs binary as an MCP server for hosts where nxs is not installed.",
5
5
  "keywords": [
6
6
  "mcp",