LibreChat/packages
crossagent 290984c514
Some checks failed
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Has been cancelled
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Has been cancelled
🔑 fix: Type-Safe User Context Forwarding for Non-OAuth Tool Discovery (#12348)
* fix(mcp): pass missing customUserVars and user during unauthenticated tool discovery

* fix(mcp): type-safe user context forwarding for non-OAuth tool discovery

Extract UserConnectionContext from OAuthConnectionOptions to properly
model the non-OAuth case where user/customUserVars/requestBody need
placeholder resolution without requiring OAuth-specific fields.

- Remove prohibited `as unknown as` double-cast
- Forward requestBody and connectionTimeout (previously omitted)
- Add unit tests for argument forwarding at Manager and Factory layers
- Add integration test exercising real processMCPEnv substitution

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
2026-03-21 12:46:23 -04:00
..
api 🔑 fix: Type-Safe User Context Forwarding for Non-OAuth Tool Discovery (#12348) 2026-03-21 12:46:23 -04:00
client v0.8.4 (#12339) 2026-03-20 18:01:00 -04:00
data-provider v0.8.4 (#12339) 2026-03-20 18:01:00 -04:00
data-schemas v0.8.4 (#12339) 2026-03-20 18:01:00 -04:00