import { AuthProvider } from "./auth-provider.js"; import type { ExtraToolDefinition } from "./types/extra-tools"; import type { PromptDefinition } from "./prompt-types"; import type { ResourceDefinition } from "./resource-types"; export interface OpenAPIMCPServerConfig { name: string; version: string; apiBaseUrl: string; openApiSpec: string; /** Spec input method: 'url', 'file', 'stdin', 'inline' */ specInputMethod: "url" | "file" | "stdin" | "inline"; /** Inline spec content when using 'inline' method */ inlineSpecContent?: string; headers?: Record; /** AuthProvider for dynamic authentication (takes precedence over headers) */ authProvider?: AuthProvider; clientCertPath?: string; clientKeyPath?: string; caCertPath?: string; clientKeyPassphrase?: string; rejectUnauthorized?: boolean; transportType: "stdio" | "http"; httpPort?: number; httpHost?: string; endpointPath?: string; /** Filter only specific tool IDs or names */ includeTools?: string[]; /** Filter only specific tags */ includeTags?: string[]; /** Exclude tools tagged with any of these OpenAPI tags */ excludeTags?: string[]; /** Filter only specific resources (path prefixes) */ includeResources?: string[]; /** Filter only specific HTTP methods: get,post,put,... */ includeOperations?: string[]; /** Tools loading mode: 'all' or 'dynamic' */ toolsMode: "all" | "dynamic" | "explicit"; disableAbbreviation?: boolean; /** Prompt definitions to expose */ prompts?: PromptDefinition[]; /** Resource definitions to expose */ resources?: ResourceDefinition[]; /** Path or URL to prompts JSON/YAML file */ promptsPath?: string; /** Inline prompts JSON content */ promptsInline?: string; /** Path or URL to resources JSON/YAML file */ resourcesPath?: string; /** Inline resources JSON content */ resourcesInline?: string; verbose?: boolean; extraTools?: ExtraToolDefinition[]; } /** * Parse header string in format 'key1:value1,key2:value2' into a record */ export declare function parseHeaders(headerStr?: string): Record; /** * Load configuration from command line arguments and environment variables */ export declare function loadConfig(): OpenAPIMCPServerConfig;