@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.
- package/bin/cli.js +7 -0
- 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