LibreChat/client/src/hooks/MCP
Danny Avila a6bf2b6ce3
🔐 refactor: Improve MCP Auth UX for Agent Panel (#9762)
* chore: Improve logging format for initial flow state creation

* refactor: MCP Tool Management with Improved Auth Handling and State Management

- Updated `CustomUserVarsSection` to include optional localization for placeholder text.
- Refactored `MCPToolSelectDialog` to streamline tool addition and management, including improved handling of authentication data.
- Introduced a new `addToolsToForm` function to encapsulate logic for adding tools to the form state.
- Enhanced `useRemoveMCPTool` hook to simplify tool removal logic and ensure proper state updates.
- Added loading state management for custom variable saving to improve user experience.

* refactor: Enhance MCP Tool Removal Logic and Integrate Toast Notifications

- Updated `MCPToolSelectDialog` to utilize the new `removeTool` function from the `useRemoveMCPTool` hook for improved tool removal handling.
- Refactored `useRemoveMCPTool` to accept options for toast notifications, allowing for more flexible user feedback during tool removal.
- Removed the previous inline tool removal logic to streamline the component's code and improve maintainability.

* refactor: Enhance user plugins mutation to invalidate MCP auth values on uninstall

* refactor: Replace refetchQueries with invalidateQueries for improved cache management

* chore: remove unused i18n key
2025-09-22 08:53:19 -04:00
..
__tests__ 👻 fix: Phantom MCP Tool Calls (#9634) 2025-09-15 10:35:15 -04:00
index.ts 🧬 refactor: Optimize MCP Tool Queries with Server-Centric Architecture 2025-09-21 20:40:14 -04:00
useMCPConnectionStatus.ts ✂️ refactor: MCP UI Separation for Agents (#9237) 2025-08-29 22:57:01 -04:00
useMCPSelect.ts 👻 fix: Phantom MCP Tool Calls (#9634) 2025-09-15 10:35:15 -04:00
useMCPServerManager.ts 🔐 refactor: Improve MCP Auth UX for Agent Panel (#9762) 2025-09-22 08:53:19 -04:00
useRemoveMCPTool.ts 🔐 refactor: Improve MCP Auth UX for Agent Panel (#9762) 2025-09-22 08:53:19 -04:00
useVisibleTools.ts 🧰 refactor: Decouple MCP Tools from System Tools (#9748) 2025-09-21 07:56:40 -04:00