import { ServerStatus } from '../types.js'; /** * 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. */ export declare class FluentMcpServer { private mcpServer; private toolsManager; private resourceManager; private promptManager; private samplingManager; private config; private status; private roots; private autoAuthTriggered; private authNotificationHandler; private initializationPromise; private delayedInitTimeoutId; /** * Create a new MCP server instance */ constructor(); /** * Format the result of a command execution * @param result The command result * @returns Formatted string with the result */ private formatResult; /** * Schedule a delayed initialization to ensure roots and auth are set up * This provides a fallback if the client doesn't send proper notifications */ private scheduleDelayedInitialization; /** * Request the list of roots from the client * This is called after the client sends the notifications/initialized notification * or when a roots/list_changed notification is received * @returns Promise that resolves when roots are updated */ private requestRootsFromClient; /** * Set up MCP protocol handlers for tools, resources, prompts, and logging */ private setupHandlers; /** * Update the list of roots and notify clients if changed * @param roots The new list of roots */ updateRoots(roots: { uri: string; name?: string; }[]): Promise; /** * Add a new root to the list of roots * @param uri The URI of the root * @param name Optional name for the root */ addRoot(uri: string, name?: string): Promise; /** * Remove a root from the list of roots * @param uri The URI of the root to remove */ removeRoot(uri: string): Promise; /** * Get the current list of roots * @returns The list of roots */ getRoots(): { uri: string; name?: string; }[]; /** * Start the MCP server */ start(): Promise; /** * Stop the MCP server */ stop(): Promise; /** * Get the current status of the server */ getStatus(): ServerStatus; } //# sourceMappingURL=fluentMCPServer.d.ts.map