promptgraph-mcp 1.0.1 → 1.0.2
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/index.js +16 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,6 +9,22 @@ import { promptConfig } from './config.js';
|
|
|
9
9
|
|
|
10
10
|
const args = process.argv.slice(2);
|
|
11
11
|
|
|
12
|
+
if (args[0] === 'help' || args[0] === '--help' || args[0] === '-h') {
|
|
13
|
+
console.log(`
|
|
14
|
+
PromptGraph — semantic skill router for Claude Code
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
promptgraph-mcp init First-time setup + index all skills
|
|
18
|
+
promptgraph-mcp reindex Re-index all skills
|
|
19
|
+
promptgraph-mcp Start MCP server (used by Claude)
|
|
20
|
+
promptgraph-mcp help Show this help
|
|
21
|
+
|
|
22
|
+
GitHub: https://github.com/NeiP4n/promptgraph
|
|
23
|
+
npm: https://npmjs.com/package/promptgraph-mcp
|
|
24
|
+
`);
|
|
25
|
+
process.exit(0);
|
|
26
|
+
}
|
|
27
|
+
|
|
12
28
|
if (args[0] === 'init') {
|
|
13
29
|
const config = await promptConfig();
|
|
14
30
|
console.log('\nIndexing skills...');
|