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

Method saveSpecCatalog

src/core/SpecService.ts:265–271  ·  view source on GitHub ↗
(catalog: SpecCatalogEntry[])

Source from the content-addressed store, hash-verified

263 }
264
265 async saveSpecCatalog(catalog: SpecCatalogEntry[]): Promise<void> {
266 if (!this.catalogPath) {
267 throw new Error("FileSystemSpecService not initialized");
268 }
269 const catalogPath = path.join(this.catalogPath, "catalog.json");
270 await fs.writeFile(catalogPath, JSON.stringify(catalog, null, 2));
271 }
272
273 async loadSpecCatalog(): Promise<SpecCatalogEntry[]> {
274 try {

Callers 1

scanAndSaveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected