agent-planner-mcp 0.3.0 → 0.3.1
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/package.json +3 -3
- package/src/cli.js +64 -0
- package/src/setup-claude-code.js +9 -8
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-planner-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MCP server interface for the Planning System API",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"agent-planner-mcp": "src/
|
|
7
|
+
"agent-planner-mcp": "src/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node src/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "https://github.com/talkingagents/agent-planner-mcp.git"
|
|
30
|
+
"url": "git+https://github.com/talkingagents/agent-planner-mcp.git"
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://agentplanner.io",
|
|
33
33
|
"bugs": {
|
package/src/cli.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* CLI Entry Point for agent-planner-mcp
|
|
5
|
+
* Routes to different commands or starts the MCP server
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const path = require('path');
|
|
9
|
+
|
|
10
|
+
const args = process.argv.slice(2);
|
|
11
|
+
const command = args[0];
|
|
12
|
+
|
|
13
|
+
// Route to different commands
|
|
14
|
+
switch (command) {
|
|
15
|
+
case 'setup-claude-code':
|
|
16
|
+
// Run the setup-claude-code script
|
|
17
|
+
const setupClaudeCode = require('./setup-claude-code.js');
|
|
18
|
+
setupClaudeCode.main();
|
|
19
|
+
break;
|
|
20
|
+
|
|
21
|
+
case 'setup':
|
|
22
|
+
// Run the interactive setup wizard
|
|
23
|
+
require('./setup.js');
|
|
24
|
+
break;
|
|
25
|
+
|
|
26
|
+
case '--help':
|
|
27
|
+
case '-h':
|
|
28
|
+
case 'help':
|
|
29
|
+
console.log(`
|
|
30
|
+
Agent Planner MCP - Model Context Protocol Server
|
|
31
|
+
|
|
32
|
+
Usage:
|
|
33
|
+
npx agent-planner-mcp Start MCP server (requires USER_API_TOKEN)
|
|
34
|
+
npx agent-planner-mcp setup-claude-code Install orchestration commands to .claude/
|
|
35
|
+
npx agent-planner-mcp setup Interactive setup wizard
|
|
36
|
+
npx agent-planner-mcp --help Show this help message
|
|
37
|
+
|
|
38
|
+
Environment Variables:
|
|
39
|
+
API_URL - Agent Planner API URL (default: http://localhost:3000)
|
|
40
|
+
USER_API_TOKEN - API token from Agent Planner UI (required for server)
|
|
41
|
+
MCP_SERVER_NAME - Server name (default: planning-system-mcp)
|
|
42
|
+
NODE_ENV - Environment (development/production)
|
|
43
|
+
|
|
44
|
+
Documentation:
|
|
45
|
+
https://github.com/talkingagents/agent-planner-mcp
|
|
46
|
+
`);
|
|
47
|
+
break;
|
|
48
|
+
|
|
49
|
+
case '--version':
|
|
50
|
+
case '-v':
|
|
51
|
+
const pkg = require('../package.json');
|
|
52
|
+
console.log(`agent-planner-mcp v${pkg.version}`);
|
|
53
|
+
break;
|
|
54
|
+
|
|
55
|
+
default:
|
|
56
|
+
// No command or unknown command - start MCP server
|
|
57
|
+
if (command && !command.startsWith('-')) {
|
|
58
|
+
console.error(`Unknown command: ${command}`);
|
|
59
|
+
console.error('Run "npx agent-planner-mcp --help" for usage information.');
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
|
+
// Start the MCP server
|
|
63
|
+
require('./index.js');
|
|
64
|
+
}
|
package/src/setup-claude-code.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import readline from 'readline';
|
|
7
|
-
|
|
8
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
-
const __dirname = path.dirname(__filename);
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const readline = require('readline');
|
|
10
6
|
|
|
11
7
|
const rl = readline.createInterface({
|
|
12
8
|
input: process.stdin,
|
|
@@ -134,4 +130,9 @@ async function main() {
|
|
|
134
130
|
rl.close();
|
|
135
131
|
}
|
|
136
132
|
|
|
137
|
-
|
|
133
|
+
// Run if executed directly
|
|
134
|
+
if (require.main === module) {
|
|
135
|
+
main();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
module.exports = { main };
|