mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 09:26:23 +02:00
16 lines
533 B
TypeScript
16 lines
533 B
TypeScript
|
|
import path from "path";
|
||
|
|
import fs from "fs";
|
||
|
|
import { McpServerConfig } from "../entities/mcp.js";
|
||
|
|
import { z } from "zod";
|
||
|
|
|
||
|
|
export const WorkDir = "/Users/ramnique/work/rb/rowboat/apps/cli/.rowboat"
|
||
|
|
|
||
|
|
|
||
|
|
function loadMcpServerConfig(): z.infer<typeof McpServerConfig> {
|
||
|
|
const configPath = path.join(WorkDir, "config", "mcp.json");
|
||
|
|
const config = fs.readFileSync(configPath, "utf8");
|
||
|
|
return McpServerConfig.parse(JSON.parse(config));
|
||
|
|
}
|
||
|
|
|
||
|
|
const { mcpServers } = loadMcpServerConfig();
|
||
|
|
export const McpServers = mcpServers;
|