mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-01 19:32:40 +02:00
make exa mcp available by default
This commit is contained in:
parent
26c3e495d1
commit
948c6e7176
1 changed files with 8 additions and 1 deletions
|
|
@ -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<void>;
|
||||
getConfig(): Promise<z.infer<typeof McpServerConfig>>;
|
||||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue