import { Transport } from '@modelcontextprotocol/server'; /** * Implementation of the Model Context Protocol server for Fluent (ServiceNow SDK) * * This server provides Fluent (ServiceNow SDK) functionality to AI assistants and developers * through the standardized Model Context Protocol interface. * * Speaks **both** protocol eras from one handler set. `serveStdio` owns the era * decision: it inspects the opening message and pins one instance from * `buildServer()` for the connection's lifetime — a 2025-era `initialize` is * served exactly as before, a modern opening as 2026-07-28. */ export declare class FluentMcpServer { private toolsManager; private resourceManager; private promptManager; private config; private resourceCatalog; /** The running stdio entry. Present exactly while the server is running. */ private handle?; /** * Create a new MCP server instance */ constructor(); /** * Build a fully-registered MCP server instance. * * MUST return a fresh instance on every call. `serveStdio` may invoke its * factory twice for one connection: a `server/discover` opening builds an * optimistic "probe" instance, and if the next message is instead a 2025-era * `initialize`, the entry closes that probe and asks the factory again. * Returning a shared instance would hand back an already-closed server. * * All content loading happens in the constructor, so this method is * synchronous and cheap enough to repeat. */ private buildServer; /** * Start the MCP server * @param transport Optional transport to serve over instead of the process's * stdio. `ServeStdioOptions.transport` exists for exactly this ("bring your * own transport"); tests use an `InMemoryTransport` pair so both protocol * eras can be exercised over the real entry point rather than through mocks. */ start(transport?: Transport): Promise; /** * Stop the MCP server */ stop(): Promise; } //# sourceMappingURL=fluentMCPServer.d.ts.map