promptgraph-mcp 1.0.0 → 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/README.md +2 -2
- package/index.js +18 -2
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ When you ask Claude a question, it calls `pg_search("your task")` → finds the
|
|
|
34
34
|
### Via npx (recommended)
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npx promptgraph init
|
|
37
|
+
npx promptgraph-mcp init
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### From source
|
|
@@ -62,7 +62,7 @@ promptgraph init
|
|
|
62
62
|
"mcpServers": {
|
|
63
63
|
"promptgraph": {
|
|
64
64
|
"command": "npx",
|
|
65
|
-
"args": ["promptgraph"]
|
|
65
|
+
"args": ["promptgraph-mcp"]
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
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...');
|
|
@@ -17,8 +33,8 @@ if (args[0] === 'init') {
|
|
|
17
33
|
console.log(JSON.stringify({
|
|
18
34
|
mcpServers: {
|
|
19
35
|
promptgraph: {
|
|
20
|
-
command: '
|
|
21
|
-
args: [
|
|
36
|
+
command: 'npx',
|
|
37
|
+
args: ['promptgraph-mcp'],
|
|
22
38
|
}
|
|
23
39
|
}
|
|
24
40
|
}, null, 2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptgraph-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,14 @@
|
|
|
12
12
|
"init": "node index.js init",
|
|
13
13
|
"reindex": "node index.js reindex"
|
|
14
14
|
},
|
|
15
|
-
"keywords": [
|
|
15
|
+
"keywords": [
|
|
16
|
+
"claude",
|
|
17
|
+
"claude-code",
|
|
18
|
+
"mcp",
|
|
19
|
+
"ai",
|
|
20
|
+
"skills",
|
|
21
|
+
"embeddings"
|
|
22
|
+
],
|
|
16
23
|
"author": "NeiP4n",
|
|
17
24
|
"license": "MIT",
|
|
18
25
|
"description": "Semantic skill router for Claude Code — load only the skills you need, save 20k+ tokens per session",
|