/**
 * Arch MCP Server
 *
 * Model Context Protocol server for Agent Platform build, eval, optimize,
 * debug, and analysis workflows.
 */
export interface MCPDebugServerOptions {
    /** Single server URL — derives both HTTP and WS URLs automatically */
    serverUrl?: string;
    /** @deprecated Use serverUrl instead */
    wsUrl?: string;
    /** @deprecated Use serverUrl instead */
    httpUrl?: string;
}
export declare class MCPDebugServer {
    private server;
    private wsClient;
    private httpClient;
    private sessionStore;
    private traceStore;
    private context;
    constructor(options?: MCPDebugServerOptions);
    /**
     * Authenticate using the cascade:
     *   explicit token → stored credentials → device auth
     */
    private authenticate;
    /**
     * Set up WebSocket event handlers to populate stores
     */
    private setupWebSocketHandlers;
    /**
     * Register MCP request handlers
     */
    private registerHandlers;
    /**
     * Start the MCP server with stdio transport
     */
    start(): Promise<void>;
    /**
     * Stop the server
     */
    stop(): Promise<void>;
}
export declare function formatUnknownToolError(name: string): Record<string, unknown>;
export declare function formatToolCallError(toolName: string, error: unknown): Record<string, unknown>;
//# sourceMappingURL=server.d.ts.map