chat-ui
071559e5 - feat(mcp): add direct Exa API integration to bypass slow mcp.exa.ai (#2021)

Commit
17 days ago
feat(mcp): add direct Exa API integration to bypass slow mcp.exa.ai (#2021) * feat(mcp): add direct Exa API integration to bypass slow mcp.exa.ai Intercepts calls to mcp.exa.ai and routes them directly to api.exa.ai, eliminating the slow hosted MCP server (~3-12s latency) while keeping the same user configuration. - Add exaDirect.ts module with direct API client - Intercept tool listing in tools.ts to return hardcoded definitions - Intercept tool calls in httpClient.ts to use direct API - Add EXA_API_KEY config for authentication No user config changes needed - existing MCP_SERVERS with mcp.exa.ai continue to work transparently. * Add scroll to metadata output in ToolUpdate Wrapped the metadata <pre> block with custom scrollbar, max height, and vertical overflow for better readability when displaying large metadata content. * fix(mcp): bypass mcp.exa.ai in health check, security/leak fixes - Add Exa bypass to /api/mcp/health endpoint for instant response - Support x-api-key header for API key (preferred over URL param) - Fix event listener leak by adding { once: true } - Remove query logging to avoid PII leakage
Author
Parents
Loading