/** * MCP configuration management for Franklin. * Loads MCP server configs from: * 1. Global: ~/.blockrun/mcp.json * 2. Project: .mcp.json in working directory */ import type { McpConfig, McpServerConfig } from './client.js'; /** * Catalog of blessed hosted (HTTP) MCP servers Franklin knows how to set up. * * Unlike BUILTIN_MCP_SERVERS (gated by `isCommandAvailable`, which is * meaningless for a URL), these are opt-in: `franklin mcp add ` writes the * entry to ~/.blockrun/mcp.json and runs the OAuth login. `/mcp` and `doctor` * advertise catalog entries that aren't configured yet so users can discover * them. Pure data — no network, unit-testable. */ export interface KnownHttpServer { name: string; url: string; label: string; description: string; docs: string; requiresOAuth: boolean; } export declare const KNOWN_HTTP_SERVERS: Record; export declare function loadMcpConfig(workDir: string): McpConfig; /** * Save a server config to the global MCP config. */ export declare function saveMcpServer(name: string, config: McpServerConfig): void; /** * Remove a server from the global MCP config. */ export declare function removeMcpServer(name: string): boolean; /** * Trust a project directory to load its .mcp.json. */ export declare function trustProjectDir(workDir: string): void;