UNPKG

mcp-swagger-parser

Version:

Enterprise-grade OpenAPI/Swagger specification parser for Model Context Protocol (MCP) projects

42 lines 1.19 kB
/** * Endpoint extractor for OpenAPI specifications */ import type { OpenAPISpec, ApiEndpoint } from '../types/index'; export declare class EndpointExtractor { /** * Extract all endpoints from OpenAPI specification */ static extractEndpoints(spec: OpenAPISpec): ApiEndpoint[]; /** * Extract parameters from operation */ private static extractParameters; /** * Check if object is a reference */ private static isReferenceObject; /** * Filter endpoints by criteria */ static filterEndpoints(endpoints: ApiEndpoint[], criteria: { methods?: string[]; tags?: string[]; includeDeprecated?: boolean; operationIds?: string[]; }): ApiEndpoint[]; /** * Group endpoints by tag */ static groupEndpointsByTag(endpoints: ApiEndpoint[]): Record<string, ApiEndpoint[]>; /** * Get endpoint statistics */ static getEndpointStats(endpoints: ApiEndpoint[]): { tags: string[]; total: number; byMethod: Record<string, number>; deprecated: number; withAuth: number; }; } //# sourceMappingURL=endpoint-extractor.d.ts.map