import { type FastMCP } from 'fastmcp'; import type { FastMCPSessionAuth } from './types.js'; import { type PathSecurityConfig } from './securityHelpers.js'; export interface ServerConfig { /** When true, tools with readOnlyHint: false will be blocked at runtime */ readOnly: boolean; /** When true, tools that communicate with third parties are blocked */ noThirdParty: boolean; /** Path security configuration for file system operations */ pathSecurity: PathSecurityConfig; } /** * Wraps a FastMCP server to: * 1. Add global error handling with help links to all tools * 2. Enforce read-only mode based on tool annotations (if enabled) * 3. Block third-party communications (if enabled) * * @param server - The FastMCP server instance * @param config - Server configuration * @returns The same server instance with addTool wrapped */ export declare function createServerWithConfig(server: FastMCP, config: ServerConfig): FastMCP; /** * Parse server config from environment variables and optional config file */ export declare function getServerConfigFromEnv(): ServerConfig; export declare function setServerConfig(config: ServerConfig): void; export declare function getServerConfig(): ServerConfig; //# sourceMappingURL=serverWrapper.d.ts.map