From a9a2b256bf770ee83fa978610ae3ff86bb03336a Mon Sep 17 00:00:00 2001 From: Artur Do Lago Date: Sat, 10 Jan 2026 22:54:15 +0100 Subject: [PATCH] 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 --- .agent-core/agent-core.jsonc | 12 ++++++------ src/mcp/servers/index.ts | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.agent-core/agent-core.jsonc b/.agent-core/agent-core.jsonc index 04479486f79..ba0ddde7de1 100644 --- a/.agent-core/agent-core.jsonc +++ b/.agent-core/agent-core.jsonc @@ -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": { diff --git a/src/mcp/servers/index.ts b/src/mcp/servers/index.ts index 5479ef7b9ce..af20fbec8f5 100644 --- a/src/mcp/servers/index.ts +++ b/src/mcp/servers/index.ts @@ -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;