LibreChat/client/src/Providers
Danny Avila c0511b9a5f
🔧 fix: MCP Selection Persist and UI Flicker Issues (#9324)
* refactor: useMCPSelect

    - Add useGetMCPTools to use in useMCPSelect and elsewhere hooks for fetching MCP tools
    - remove memoized key
    - remove use of `useChatContext` and require conversationId as prop

* feat: Add MCPPanelContext and integrate conversationId as prop for useMCPSelect across components

- Introduced MCPPanelContext to manage conversationId state.
- Updated MCPSelect, MCPSubMenu, and MCPConfigDialog to accept conversationId as a prop.
- Modified ToolsDropdown and BadgeRow to pass conversationId to relevant components.
- Refactored MCPPanel to utilize MCPPanelProvider for context management.

* fix: remove nested ternary in ServerInitializationSection

- Replaced conditional operator with if-else statements for better readability in determining button text based on server initialization state and reinitialization status.

* refactor: wrap setValueWrap in useCallback for performance optimization

* refactor: streamline useMCPSelect by consolidating storageKey definition

* fix: prevent clearing selections on page refresh by tracking initial load completion

* refactor: simplify concern of useMCPSelect hook

* refactor: move ConfigFieldDetail interface to common types for better reusability, isolate usage of `useGetMCPTools`

* refactor: integrate mcpServerNames into BadgeRowContext and update ToolsDropdown and MCPSelect components
2025-08-28 00:44:49 -04:00
..
ActivePanelContext.tsx 🔒 fix: Agents Config/Permission Checks after Streamline Change (#8089) 2025-06-26 18:53:05 -04:00
AddedChatContext.tsx 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
AgentPanelContext.tsx 🔁 refactor: Capabilities for Tools/File handling for Direct Endpoints (#8253) 2025-07-04 14:51:26 -04:00
AgentsContext.tsx feat: Agent Panel UI Enhancements (#7800) 2025-06-13 15:47:41 -04:00
AgentsMapContext.tsx 🚧 chore: merge latest dev build to main repo (#3844) 2024-08-31 16:33:51 -04:00
AnnouncerContext.tsx v0.7.5-rc2 (#3976) 2024-09-10 19:00:27 -04:00
ArtifactContext.tsx 🚀 feat: Artifact Editing & Downloads (#5428) 2025-01-23 18:19:04 -05:00
ArtifactsContext.tsx 🧪 fix: Editor Styling, Incomplete Artifact Editing, Optimize Artifact Context (#8953) 2025-08-08 15:49:58 -04:00
AssistantsContext.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
AssistantsMapContext.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
BadgeRowContext.tsx 🔧 fix: MCP Selection Persist and UI Flicker Issues (#9324) 2025-08-28 00:44:49 -04:00
BookmarkContext.tsx 🔖 feat: Conversation Bookmarks (#3344) 2024-07-29 10:45:59 -04:00
ChatContext.tsx 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
ChatFormContext.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
CodeBlockContext.tsx 🚀 feat: Artifact Editing & Downloads (#5428) 2025-01-23 18:19:04 -05:00
CustomFormContext.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
DashboardContext.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
EditorContext.tsx 🚀 feat: Artifact Editing & Downloads (#5428) 2025-01-23 18:19:04 -05:00
FileMapContext.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
index.ts 🔧 fix: MCP Selection Persist and UI Flicker Issues (#9324) 2025-08-28 00:44:49 -04:00
MCPPanelContext.tsx 🔧 fix: MCP Selection Persist and UI Flicker Issues (#9324) 2025-08-28 00:44:49 -04:00
MessageContext.tsx 🏄‍♂️ refactor: Optimize Reasoning UI & Token Streaming (#5546) 2025-01-29 19:46:58 -05:00
PromptGroupsContext.tsx 🗨️ refactor: Optimize Prompt Queries 2025-08-13 16:24:25 -04:00
SearchContext.tsx 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
SetConvoContext.tsx ♻️ refactor: Logout UX, Improved State Teardown, & Remove Unused Code (#5292) 2025-01-12 12:57:10 -05:00
ShareContext.tsx 🚀 feat: Shared Links (#2772) 2024-05-17 18:13:32 -04:00
SidePanelContext.tsx ♻️ refactor: SidePanel Context to Optimize on ChatView Rerender (#8509) 2025-07-17 11:31:19 -04:00
ToolCallsMapContext.tsx 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00