LibreChat/packages/api
Dustin Healy b664cce8ca fix(mcp): close follow-up Codex findings on the app-bridge fixes
Preserves resolved auth headers for non-DB servers that declare customUserVars.
getAppConnection re-ran processMCPEnv without customUserVars and overwrote the
headers the original tool call resolved, so iframe-initiated calls sent bare
placeholders. Header refresh now also skips when the config has customUserVars,
leaving the connection's resolved headers intact.

Forwards the tool result to embedded ui:// resources. When a tool returns an
inline ui:// resource item rather than declaring it via resourceUri, the
synthetic path already attached structuredContent and content but the embedded
path did not, so the app bridge initialized without result data. Both paths now
carry it.

Stops reusing UI metadata across request-scoped servers. The resourceUri and
visibility caches keyed on serverName:userId could serve a later request the
first request's metadata when the upstream varies by body context, so
request-scoped servers now build their tool metadata fresh per call.
2026-06-23 21:57:21 -07:00
..
src fix(mcp): close follow-up Codex findings on the app-bridge fixes 2026-06-23 21:57:21 -07:00
types
.gitignore
babel.config.cjs
jest.config.mjs fix(ci): add @modelcontextprotocol/ext-apps to jest transformIgnorePatterns and fix import sort 2026-06-23 15:46:38 -07:00
jest.setup.cjs
package.json fix(mcp): address second round of Codex review findings 2026-06-23 18:18:51 -07:00
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json
tsconfig.spec.json
tsdown.config.mjs 🪟 fix: Cross-Platform Absolute-Path Check in tsdown neverBundle Predicates (#13700) 2026-06-13 11:04:46 -04:00