MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / ISpecExplorer

Interface ISpecExplorer

src/core/interfaces/ISpecService.ts:140–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 * Interface for exploring and querying OpenAPI specifications
139 */
140export interface ISpecExplorer {
141 /**
142 * Initialize the spec explorer
143 */
144 initialize(): Promise<void>;
145
146 /**
147 * Refresh the spec explorer
148 */
149 refresh(): Promise<void>;
150
151 /**
152 * List all specifications in the catalog
153 */
154 getApiCatalog(): Promise<SpecCatalogEntry[]>;
155
156 /**
157 * Find a schema by name within a specification
158 */
159 findSchemaByName(
160 specId: string,
161 schemaName: string
162 ): Promise<LoadSchemaResult | null>;
163
164 /**
165 * Find an operation by its ID within a specification
166 */
167 findOperationById(
168 specId: string,
169 operationId: string
170 ): Promise<LoadOperationResult | null>;
171
172 /**
173 * Find an operation by path and method when operationId is not known
174 */
175 findOperationByPathAndMethod(
176 specId: string,
177 path: string,
178 method: string
179 ): Promise<LoadOperationResult | null>;
180
181 /**
182 * Search for operations across specifications
183 */
184 searchOperations(
185 query: string,
186 specId?: string
187 ): Promise<LoadOperationResult[]>;
188
189 /**
190 * Search for schemas across specifications
191 */
192 searchSchemas(query: string, specId?: string): Promise<SpecSchemaEntry[]>;
193}
194
195/**
196 * Interface for serializing operation and schema results

Callers 18

initializeExplorerMethod · 0.65
setUpToolsMethod · 0.65
setUpToolsMethod · 0.65
setUpToolsMethod · 0.65
setUpToolsMethod · 0.65
setUpPromptsMethod · 0.65
setUpToolsMethod · 0.65
setUpPromptsMethod · 0.65

Implementers 1

FileSystemSpecServicesrc/core/SpecService.ts

Calls

no outgoing calls

Tested by

no test coverage detected