mcp-swagger-parser
Version:
Enterprise-grade OpenAPI/Swagger specification parser for Model Context Protocol (MCP) projects
17 lines • 540 B
TypeScript
/**
* File parser for OpenAPI specifications
*/
import type { OpenAPISpec } from '../types/index';
import { BaseParser } from './base-parser';
export interface FileParseOptions {
encoding?: BufferEncoding;
allowedExtensions?: string[];
}
export declare class FileParser extends BaseParser {
private static readonly DEFAULT_ALLOWED_EXTENSIONS;
/**
* Parse OpenAPI specification from file
*/
parse(filePath: string, options?: FileParseOptions): Promise<OpenAPISpec>;
}
//# sourceMappingURL=file-parser.d.ts.map