LibreChat/packages/data-provider/specs
Danny Avila 8e1012c5aa
🛡️ fix: Deep Clone MCPOptions for User MCP Connections (#7247)
* Fix: Prevent side effects in `processMCPEnv` by deep cloning MCPOptions

The `processMCPEnv` function was modifying the original `MCPOptions` object, leading to unintended side effects where `LIBRECHAT_USER_ID` could be incorrectly shared across different users. This commit addresses this issue by performing a deep clone of the `MCPOptions` object before processing, ensuring that modifications are isolated and do not affect other users.

* ci: Add tests for processMCPEnv to ensure deep cloning, user ID isolation and environment variable processing

---------

Co-authored-by: Alex C <viennadd@users.noreply.github.com>
2025-05-06 10:29:05 -04:00
..
actions.spec.ts 🗺️ feat: Add Parameter Location Mapping for OpenAPI actions (#6858) 2025-04-16 18:11:03 -04:00
azure.spec.ts 🔑 fix: Azure Serverless Support for API Key Header & Version (#4791) 2024-11-25 13:33:06 -05:00
filetypes.spec.ts 🔧 refactor: Improve Agent Context & Minor Fixes (#5349) 2025-01-17 12:55:48 -05:00
generate.spec.ts feat: Stop Sequences for Conversations & Presets (#2536) 2024-04-25 11:40:17 -04:00
mcp.spec.ts 🛡️ fix: Deep Clone MCPOptions for User MCP Connections (#7247) 2025-05-06 10:29:05 -04:00
openapiSpecs.ts 🚧 chore: merge latest dev build to main repo (#3844) 2024-08-31 16:33:51 -04:00
parsers.spec.ts 🗓️ feat: Add Special Variables for Prompts & Agents, Prompt UI Improvements (#7123) 2025-04-29 03:49:02 -04:00
utils.spec.ts 🖼️ refactor: Enhance Env Extraction & Agent Image Handling (#6131) 2025-03-01 07:51:12 -05:00