/** * User MCP catalog + preferences from Supabase (same tables as the web app). * * Uses the Supabase **anon** key and the user's **access_token** from ~/.supen/auth.json * (CLI login) so Row Level Security applies. Requires `SUPABASE_URL` and * `SUPABASE_ANON_KEY` in the environment or config.yaml (`supabase.url` / `supabase.anon_key`). */ /** Row from public.mcp_servers — a user's own custom MCP server. */ export interface McpServer { id: string; name: string; type: 'stdio' | 'http'; command?: string | null; args?: string[] | null; env?: Array<{ key: string; value: string; }> | Record | null; url?: string | null; enabled: boolean; space_id?: string | null; } /** Row from public.mcp_server_catalog — a dev-team-published built-in. */ export interface McpCatalogServer { id: string; name: string; description?: string | null; command: string; args?: string[] | null; required_env_keys?: string[] | null; enabled_by_default?: boolean | null; } export interface GlobalMcpConfig { mcp_server_catalog: McpCatalogServer[]; mcp_servers: McpServer[]; disabled_mcp_server_ids: string[]; mcp_server_env: Record; } /** * Convert user-defined MCP rows into the SDK config map format. * Disabled rows and non-stdio rows are skipped. */ export declare function customServersToMcpMap(servers: McpServer[]): Record; }>; /** * Fetch the user's global MCP config from Supabase (CLI auth token), or return an empty * shape if unconfigured. Never throws. */ export declare function fetchGlobalMcpConfig(options?: { force?: boolean; }): Promise; /** Test hook: reset the in-memory cache. */ export declare function resetGlobalMcpConfigCache(): void; //# sourceMappingURL=gateway-client.d.ts.map