fix(mcp): use bun instead of npx tsx for MCP servers

- bun run works more reliably for spawning child processes
- npx tsx has PATH issues when spawned as subprocess
- Enable all persona MCP servers by default

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Artur Do Lago
2026-01-10 22:54:15 +01:00
parent afb990b1db
commit a9a2b256bf
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -12,18 +12,18 @@
},
"personas-memory": {
"type": "local",
"command": ["npx", "tsx", "src/mcp/servers/memory.ts"],
"enabled": false
"command": ["bun", "run", "src/mcp/servers/memory.ts"],
"enabled": true
},
"personas-calendar": {
"type": "local",
"command": ["npx", "tsx", "src/mcp/servers/calendar.ts"],
"enabled": false
"command": ["bun", "run", "src/mcp/servers/calendar.ts"],
"enabled": true
},
"personas-portfolio": {
"type": "local",
"command": ["npx", "tsx", "src/mcp/servers/portfolio.ts"],
"enabled": false
"command": ["bun", "run", "src/mcp/servers/portfolio.ts"],
"enabled": true
}
},
"tools": {
+3 -3
View File
@@ -41,17 +41,17 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
export const PERSONA_MCP_SERVERS = {
"personas-memory": {
type: "local" as const,
command: ["npx", "tsx", join(__dirname, "memory.ts")],
command: ["bun", "run", join(__dirname, "memory.ts")],
description: "Semantic memory storage and search via Qdrant",
},
"personas-calendar": {
type: "local" as const,
command: ["npx", "tsx", join(__dirname, "calendar.ts")],
command: ["bun", "run", join(__dirname, "calendar.ts")],
description: "Google Calendar integration for scheduling",
},
"personas-portfolio": {
type: "local" as const,
command: ["npx", "tsx", join(__dirname, "portfolio.ts")],
command: ["bun", "run", join(__dirname, "portfolio.ts")],
description: "Financial tools: portfolio, market data, SEC filings",
},
} as const;