@vailent/pulse-mcp 1.12.0 → 1.13.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/dist/bin/setup.js +41 -0
- package/package.json +4 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// bin/setup.ts
|
|
4
|
+
import { readFileSync, writeFileSync, existsSync } from "fs";
|
|
5
|
+
import { homedir } from "os";
|
|
6
|
+
import { join } from "path";
|
|
7
|
+
var CLAUDE_JSON = join(homedir(), ".claude.json");
|
|
8
|
+
var SERVER_NAME = "pulse-dev";
|
|
9
|
+
var MCP_CONFIG = {
|
|
10
|
+
type: "stdio",
|
|
11
|
+
command: "npx",
|
|
12
|
+
args: ["-y", "@vailent/pulse-mcp"],
|
|
13
|
+
env: {
|
|
14
|
+
PULSE_SUPABASE_URL: "https://eppugcfjlqovlauykzfe.supabase.co",
|
|
15
|
+
PULSE_SUPABASE_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVwcHVnY2ZqbHFvdmxhdXlremZlIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc3NDA1ODY1NiwiZXhwIjoyMDg5NjM0NjU2fQ.aoFu_uYEy9Rz3tc_I-RjjzVmCRMmjeVMhcOzkqEr0EE"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
function setup() {
|
|
19
|
+
console.log("\n \x1B[1mPulse MCP Setup\x1B[0m\n");
|
|
20
|
+
let config = {};
|
|
21
|
+
if (existsSync(CLAUDE_JSON)) {
|
|
22
|
+
try {
|
|
23
|
+
config = JSON.parse(readFileSync(CLAUDE_JSON, "utf-8"));
|
|
24
|
+
} catch {
|
|
25
|
+
console.log(" \x1B[31m\u2717\x1B[0m Could not parse ~/.claude.json");
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (!config.mcpServers || typeof config.mcpServers !== "object") {
|
|
30
|
+
config.mcpServers = {};
|
|
31
|
+
}
|
|
32
|
+
config.mcpServers[SERVER_NAME] = MCP_CONFIG;
|
|
33
|
+
writeFileSync(CLAUDE_JSON, JSON.stringify(config, null, 2) + "\n");
|
|
34
|
+
console.log(" \x1B[32m\u2713\x1B[0m Added \x1B[1mpulse-dev\x1B[0m to ~/.claude.json");
|
|
35
|
+
console.log(" \x1B[32m\u2713\x1B[0m Configured with dev Supabase credentials");
|
|
36
|
+
console.log();
|
|
37
|
+
console.log(" Restart Claude Code to connect. Then try:");
|
|
38
|
+
console.log(' \x1B[2m"what features are in progress this week?"\x1B[0m');
|
|
39
|
+
console.log();
|
|
40
|
+
}
|
|
41
|
+
setup();
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vailent/pulse-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Pulse MCP server — manage pods, features, workstreams, bugs, and more from Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"pulse-mcp": "./dist/server.js"
|
|
7
|
+
"pulse-mcp": "./dist/server.js",
|
|
8
|
+
"pulse-setup": "./dist/bin/setup.js"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
10
|
-
"build": "tsup server.ts --format esm --outDir dist --clean",
|
|
11
|
+
"build": "tsup server.ts bin/setup.ts --format esm --outDir dist --clean",
|
|
11
12
|
"prepublishOnly": "npm run build"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|