/** * MCP Server for Hypequery Semantic Layer * * Exposes datasets and metrics via Model Context Protocol (MCP) * for use with Claude Desktop, Cursor, and other MCP-compatible tools. */ import type { DatasetClient } from '@hypequery/datasets'; import type { DatasetRegistry } from './types.js'; export interface MCPServerConfig { /** * Dataset registry - map of dataset names to instances */ datasets: DatasetRegistry; /** * Semantic analytics for running metric and dataset queries */ analytics: DatasetClient; /** * Server name (shown in MCP client) */ name?: string; /** * Server version */ version?: string; /** * Trusted tenant id used to scope tenant-keyed datasets. */ tenantId?: string; /** * Include generated SQL in query tool responses. * * Defaults to false so agent-facing responses do not expose SQL text unless * explicitly enabled for trusted debugging. */ includeSql?: boolean; } export declare class HypequeryMCPServer { private server; private config; constructor(config: MCPServerConfig); private setupHandlers; /** * Start the MCP server with stdio transport */ start(): Promise; /** * Stop the MCP server */ stop(): Promise; } /** * Create and start an MCP server */ export declare function createMCPServer(config: MCPServerConfig): Promise; //# sourceMappingURL=server.d.ts.map