MCPcopy Index your code
hub / github.com/PaystackOSS/paystack-mcp-server / parse

Method parse

src/openapi-parser.ts:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 async parse() {
18 try {
19 const api = (await SwaggerParser.default.parse(this.specURL)) as OpenAPIV3.Document;
20 this.buildOperationsMap(api);
21 } catch (error) {
22 console.error('Error parsing OpenAPI spec:', error);
23 }
24 }
25
26 private parseModel(name: string, models: OpenAPIV3.ComponentsObject): Oas.Body {
27 const { schemas } = models!;

Callers 4

createServerFunction · 0.95
makeRequestMethod · 0.80

Calls 2

buildOperationsMapMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected