mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-02 12:22:22 +00:00
Plumbs the request-scoped config and user credentials into the app endpoints so config-sourced servers resolve and credentialed connections work even after the original tool-call connection is gone. The readResource and app-tool-call controllers now resolve configServers and the user's customUserVars and pass them through to getAppConnection, which forwards configServers to getServerConfig and customUserVars to both the connection factory and the header refresh. Header refresh now runs for customUserVar configs when the route supplied those vars, and is still skipped when they are absent so a live connection's resolved headers are never clobbered with bare placeholders. Prefers the resource item's own _meta.ui csp and permissions for embedded ui:// resources, falling back to tool-level metadata, so a resource that declares its own connect or resource domains is not served the default restrictive policy. Stops caching app-initiated resource reads. The five-minute cache now applies only to the immutable app HTML fetch; bridge onreadresource calls bypass it so dynamic resources are not served stale. Advertises MCP Apps support during MCP initialize. The client now sends the ext-apps capability (mimeTypes including text/html;profile=mcp-app) so servers using the getUiCapability graceful-degradation path expose app-enhanced tools rather than text-only fallbacks. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| agents | ||
| assistants | ||
| auth | ||
| AuthController.js | ||
| AuthController.spec.js | ||
| Balance.js | ||
| Balance.spec.js | ||
| ContextProjectionController.js | ||
| EndpointController.js | ||
| FavoritesController.js | ||
| FavoritesController.spec.js | ||
| mcp.js | ||
| mcpApps.js | ||
| ModelController.js | ||
| PermissionsController.js | ||
| PluginController.js | ||
| PluginController.spec.js | ||
| SkillStatesController.js | ||
| TokenConfigController.js | ||
| tools.js | ||
| TwoFactorController.js | ||
| UserController.js | ||
| UserController.spec.js | ||