refresh-api-catalog
Update the API catalog in the MCP OpenAPI Server to ensure AI-powered IDE integrations have current OpenAPI specifications for accurate API understanding and interaction.
Instructions
Refresh the API catalog
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/McpService.ts:48-60 (handler)Inline handler function for the 'refresh-api-catalog' tool that calls specExplorer.refresh() to refresh the API catalog and returns a success message.server.tool("refresh-api-catalog", "Refresh the API catalog", async () => { try { this.logger.info('Refreshing API catalog'); await this.specExplorer.refresh(); this.logger.info('API catalog refreshed successfully'); return { content: [{ type: "text", text: "API catalog refreshed" }], }; } catch (error) { this.logger.error('Failed to refresh API catalog', { error }); throw error; } });
- src/McpService.ts:48-60 (registration)The 'refresh-api-catalog' tool is registered here in the setUpTools method using server.tool, with no input schema and the inline handler.server.tool("refresh-api-catalog", "Refresh the API catalog", async () => { try { this.logger.info('Refreshing API catalog'); await this.specExplorer.refresh(); this.logger.info('API catalog refreshed successfully'); return { content: [{ type: "text", text: "API catalog refreshed" }], }; } catch (error) { this.logger.error('Failed to refresh API catalog', { error }); throw error; } });