/** * Transport factory functions for stdio and SSE modes. */ import { RvfMcpServer, type RvfMcpServerOptions } from './server.js'; /** * Create and start an RVF MCP server over stdio transport. * * Usage in .mcp.json: * ```json * { * "mcpServers": { * "rvf": { * "command": "node", * "args": ["dist/cli.js", "--transport", "stdio"] * } * } * } * ``` */ export declare function createStdioServer(options?: RvfMcpServerOptions): Promise; /** Options for the SSE transport. */ export interface SseServerOptions { /** * Interface to bind. Default: '127.0.0.1' (loopback only). The SSE * endpoint has no authentication, so binding a non-loopback address * exposes every tool to anyone who can reach the port. */ host?: string; } /** * Create and start an RVF MCP server over SSE transport. * * Starts an Express HTTP server with SSE endpoint at `/sse` * and message endpoint at `/messages`. One SSE session is served at a * time; POSTs are routed by the `sessionId` the server hands out. * * @param port HTTP port. Default: 3100. * @param options Server options. * @param sseOptions Transport options (bind host). */ export declare function createSseServer(port?: number, options?: RvfMcpServerOptions, sseOptions?: SseServerOptions): Promise; /** * Create a server with the specified transport type. */ export declare function createServer(transport?: 'stdio' | 'sse', port?: number, options?: RvfMcpServerOptions, sseOptions?: SseServerOptions): Promise;