LibreChat/packages/api/src/mcp
Danny Avila 344e7c44b5
🔐 fix: Respect Server's Token Endpoint Auth Methods for MCP OAuth Refresh (#9717)
* fix: respect server's token endpoint auth methods for MCP OAuth refresh

Previously, LibreChat always used Basic Auth when refreshing OAuth tokens if a
client_secret was present. This caused issues with servers (like FastMCP) that
only support client_secret_post. Now properly checks and respects the server's
advertised token_endpoint_auth_methods_supported.

Fixes token refresh failures with error: "refresh_token.client_id: Field required"

* chore: remove MCP OAuth URL Logging
2025-09-19 06:50:02 -04:00
..
__tests__ 🔐 fix: Respect Server's Token Endpoint Auth Methods for MCP OAuth Refresh (#9717) 2025-09-19 06:50:02 -04:00
oauth 🔐 fix: Respect Server's Token Endpoint Auth Methods for MCP OAuth Refresh (#9717) 2025-09-19 06:50:02 -04:00
types 🔃 fix: Token Refresh in Browser Only, Redirect on Refresh Failure (#9583) 2025-09-11 16:51:40 -04:00
auth.ts 🚦 feat: Auto-reinitialize MCP Servers on Request (#9226) 2025-08-23 03:27:05 -04:00
connection.ts 🔗 refactor: URL sanitization for MCP logging (#9632) 2025-09-14 18:55:32 -04:00
ConnectionsRepository.ts 🏷️ feat: Request Placeholders for Custom Endpoint & MCP Headers (#9095) 2025-08-16 20:45:55 -04:00
enum.ts 🪐 feat: MCP OAuth 2.0 Discovery Support (#7924) 2025-06-17 13:50:33 -04:00
mcpConfig.ts ♻️ refactor: MCPManager for Scalability, Fix App-Level Detection, Add Lazy Connections (#8930) 2025-08-13 11:45:06 -04:00
MCPConnectionFactory.ts 🔗 refactor: URL sanitization for MCP logging (#9632) 2025-09-14 18:55:32 -04:00
MCPManager.ts 🌐 fix: Prevent MCP Body/Header Timeouts at 5-Minute mark (#9476) 2025-09-05 17:14:39 -04:00
MCPServersRegistry.ts 🎯 refactor: MCP Registry To Handle serverInstructions As String "true" (#9703) 2025-09-18 21:03:21 -04:00
parsers.ts ✂️ refactor: Artifacts and Tool Callbacks to Pass UI Resources (#9581) 2025-09-11 14:34:07 -04:00
UserConnectionManager.ts 🚦 feat: Auto-reinitialize MCP Servers on Request (#9226) 2025-08-23 03:27:05 -04:00
utils.ts 🔗 refactor: URL sanitization for MCP logging (#9632) 2025-09-14 18:55:32 -04:00
zod.ts 🔢 feat: Add Support for Integer and Float JSON Schema Types (#9469) 2025-09-05 11:12:44 -04:00