@neurynae/toolcairn-mcp 0.8.4 → 0.8.6
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/toolpilot-mcp.js +22 -3
- package/dist/index.js +572 -81
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/bin/toolpilot-mcp.js
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Entry point for `npx @toolcairn
|
|
3
|
-
//
|
|
2
|
+
// Entry point for `npx @neurynae/toolcairn-mcp` or `toolcairn-mcp` CLI.
|
|
3
|
+
//
|
|
4
|
+
// Subcommands:
|
|
5
|
+
// (none) — start the MCP server (default)
|
|
6
|
+
// scan [dir] — scan project dependencies and check ToolCairn health status
|
|
7
|
+
// scan --json — same but output raw JSON
|
|
8
|
+
//
|
|
4
9
|
process.env.TOOLPILOT_MODE = process.env.TOOLPILOT_MODE ?? 'production';
|
|
5
|
-
|
|
10
|
+
|
|
11
|
+
const args = process.argv.slice(2);
|
|
12
|
+
|
|
13
|
+
if (args[0] === 'scan') {
|
|
14
|
+
// Stack scanner CLI — does NOT start the MCP server
|
|
15
|
+
import('../dist/cli/scan.js').then(({ runScan }) => {
|
|
16
|
+
return runScan(args.slice(1));
|
|
17
|
+
}).catch((err) => {
|
|
18
|
+
console.error('scan failed:', err.message);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
});
|
|
21
|
+
} else {
|
|
22
|
+
// Default: start the MCP server
|
|
23
|
+
import('../dist/index.js');
|
|
24
|
+
}
|