list_providers
Retrieve all available providers in the LumbreTravel MCP Server to manage travel programs and activities effectively.
Instructions
Obtiene todos los proveedores disponibles
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Schema definition for the 'list_providers' tool, specifying name, description, and empty input schema (no parameters required).{ name: 'list_providers', description: 'Obtiene todos los proveedores disponibles', inputSchema: { type: 'object', properties: {} } },
- src/handlers/tools.handler.ts:1297-1305 (handler)Execution handler for 'list_providers' tool in ToolsHandler.callTool method. Fetches providers via ApiService and returns them as formatted JSON text.case 'list_providers': { const providers = await this.apiService.getProviders() return { content: [{ type: 'text', text: JSON.stringify(providers, null, 2) }] } }
- src/services/api.service.ts:419-426 (helper)ApiService.getProviders() helper method that performs authenticated GET request to backend API endpoint to retrieve all providers.async getProviders () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/providers`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) }
- src/index.ts:38-47 (registration)MCP server registration of tool handlers: listTools for tool list including 'list_providers' schema, and callTool for executing 'list_providers'.this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )