/** * Hub serve — exposes this app's org-scope MCP servers to other agent-native * apps in the same workspace. * * An app becomes a hub by setting `AGENT_NATIVE_MCP_HUB_TOKEN=` in * its environment. Consuming apps set the same token plus * `AGENT_NATIVE_MCP_HUB_URL` pointing at the hub; at startup they pull the * hub's org-scope server list (URL + headers + description) and merge it * into their own running MCP manager. * * Convention: dispatch is the hub. Any template can consume from it. * * User-scope servers are intentionally NOT shared — personal credentials * stay with the user who added them. Only `o::mcp-servers-remote` * entries are returned. * * Each response is bound to one organization. Browser callers use their * active org; service callers use the hub process's AGENT_ORG_ID. */ export interface HubServerRecord { id: string; orgId: string; name: string; url: string; headers?: Record; description?: string; } export interface HubServersResponse { servers: HubServerRecord[]; generatedAt: number; } export declare function isHubServeEnabled(): boolean; export declare function isHubConsumeEnabled(): boolean; export declare function listHubServers(orgId: string): Promise; export declare function mountMcpHubRoutes(nitroApp: any): void; export declare function getHubStatus(): { serving: boolean; consuming: boolean; hubUrl: string | null; };