search_apis
Find and retrieve API information from Eolink OpenAPI to integrate and manage APIs within the Windsurf IDE development environment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query |
Implementation Reference
- src/services/eolinkService.ts:97-108 (handler)Core handler function that executes the search by calling Eolink's /search/apis endpoint with the query parameter.async searchApis(query: string): Promise<Api[]> { try { const response = await axios.get(`${this.baseUrl}/search/apis`, { headers: this.getHeaders(), params: { q: query }, }); return response.data.data || []; } catch (error) { console.error(`Error searching APIs with query "${query}":`, error); return []; } }
- src/services/mcpServer.ts:107-119 (registration)MCP tool registration for 'search_apis', including input schema validation with Zod and thin wrapper handler that calls eolinkService.searchApis.this.server.tool( "search_apis", { query: z.string().describe("Search query") }, async ({ query }) => { const apis = await eolinkService.searchApis(query); return { content: [{ type: "text", text: JSON.stringify({ apis }, null, 2) }] }; } );
- src/services/mcpServer.ts:109-109 (schema)Zod schema defining the input parameter 'query' as a string for the search_apis tool.{ query: z.string().describe("Search query") },