From 948c6e717619913b8b0f50aa2c49f1f87c23dbd9 Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Tue, 3 Feb 2026 23:29:21 +0530 Subject: [PATCH] make exa mcp available by default --- apps/x/packages/core/src/mcp/repo.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/x/packages/core/src/mcp/repo.ts b/apps/x/packages/core/src/mcp/repo.ts index 841f162b..66162895 100644 --- a/apps/x/packages/core/src/mcp/repo.ts +++ b/apps/x/packages/core/src/mcp/repo.ts @@ -4,6 +4,13 @@ import fs from "fs/promises"; import path from "path"; import z from "zod"; +const DEFAULT_MCP_SERVERS = { + exa: { + type: "http" as const, + url: "https://mcp.exa.ai/mcp", + }, +}; + export interface IMcpConfigRepo { ensureConfig(): Promise; getConfig(): Promise>; @@ -18,7 +25,7 @@ export class FSMcpConfigRepo implements IMcpConfigRepo { try { await fs.access(this.configPath); } catch { - await fs.writeFile(this.configPath, JSON.stringify({ mcpServers: {} }, null, 2)); + await fs.writeFile(this.configPath, JSON.stringify({ mcpServers: DEFAULT_MCP_SERVERS }, null, 2)); } }