import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { AuthManager, OrganizationState } from "./auth/client.js"; export interface BuildServerOptions { baseUrl: string; authManager?: AuthManager; organizationId?: string | null; organizationsPath?: string; /** If set, the token is read from this callback on every request instead of from the AuthManager. */ perRequestToken?: () => string | null; } export interface BuiltServer { server: McpServer; organizationState: OrganizationState; } export declare function buildServer(opts: BuildServerOptions): BuiltServer;