mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 08:56:22 +02:00
set up npx app
This commit is contained in:
parent
3645f92774
commit
776be21fbd
6 changed files with 40 additions and 59 deletions
|
|
@ -2,12 +2,10 @@ import fs from "fs";
|
|||
import path from "path";
|
||||
import { z } from "zod";
|
||||
import { McpServerConfig } from "../../entities/mcp.js";
|
||||
import { ensureBaseDirs, getStoragePaths } from "../services/storage.js";
|
||||
import { WorkDir } from "../../config/config.js";
|
||||
|
||||
export function mcpConfigPath(): string {
|
||||
const base = getStoragePaths();
|
||||
ensureBaseDirs(base);
|
||||
return path.join(base.workDir, "mcp", "servers.json");
|
||||
return path.join(WorkDir, "mcp", "servers.json");
|
||||
}
|
||||
|
||||
export function readMcpConfig(): z.infer<typeof McpServerConfig> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue