mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 03:09:48 -04:00
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:
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user