/** * DirectMcpServerImpl - Implementation of DirectMcpServer * * Provides programmatic access to FrontMCP servers by bypassing the HTTP transport * layer and invoking flows directly on the Scope instance. */ import { type CallToolResult, type GetPromptResult, type ListPromptsResult, type ListResourcesResult, type ListResourceTemplatesResult, type ListToolsResult, type ReadResourceResult } from '@frontmcp/protocol'; import { type Scope } from '../scope/scope.instance'; import { type ConnectOptions, type DirectClient } from './client.types'; import { type DirectCallOptions, type DirectMcpServer } from './direct.types'; /** * Implementation of DirectMcpServer that bypasses HTTP transport * and invokes flows directly on a Scope instance. */ export declare class DirectMcpServerImpl implements DirectMcpServer { private readonly scope; readonly ready: Promise; private _isDisposed; private readonly defaultSessionId; constructor(scope: Scope); /** * Build the MCP handler context that flows expect. * This simulates what the transport layer creates from HTTP request. */ private buildHandlerContext; /** * Run a flow and handle FlowControl exceptions. */ private runFlow; listTools(options?: DirectCallOptions): Promise; callTool(name: string, args?: Record, options?: DirectCallOptions): Promise; listResources(options?: DirectCallOptions): Promise; listResourceTemplates(options?: DirectCallOptions): Promise; readResource(uri: string, options?: DirectCallOptions): Promise; listPrompts(options?: DirectCallOptions): Promise; getPrompt(name: string, args?: Record, options?: DirectCallOptions): Promise; listJobs(options?: DirectCallOptions): Promise; executeJob(name: string, input?: Record, options?: DirectCallOptions & { background?: boolean; }): Promise; getJobStatus(runId: string, options?: DirectCallOptions): Promise; listWorkflows(options?: DirectCallOptions): Promise; executeWorkflow(name: string, input?: Record, options?: DirectCallOptions & { background?: boolean; }): Promise; getWorkflowStatus(runId: string, options?: DirectCallOptions): Promise; connect(sessionIdOrOptions?: string | ConnectOptions): Promise; dispose(): Promise; } //# sourceMappingURL=direct-server.d.ts.map