cherry-studio/src/renderer/src
LiuVaayne a8451b7c3d
feat(MCP): add support for enabling/disabling MCPServers per message (#2989)
*  feat: add MCP servers in chat input

- Introduce MCPToolsButton component for managing MCP servers
- Add new icon for MCP server tools in iconfont.css
- Update Inputbar to include MCP tools functionality
- Add toggle functionality for enabling/disabling MCP servers
- Implement styled dropdown menu for server selection
- Add necessary type imports and useState for MCP server management

*  feat: add support for enabling/disabling MCPServers per message (main)

- Added `enabledMCPs` property to the `Message` type to track enabled MCPServers.
- Modified `MCPToolsButton` to enable all active MCPServers by default using a new `enableAll` state.
- Introduced `filterMCPTools` utility to filter tools based on enabled MCPServers.
- Updated `AnthropicProvider`, `GeminiProvider`, and `OpenAIProvider` to filter tools using `filterMCPTools`.
- Enhanced `Inputbar` to include `enabledMCPs` in the message payload when set.
2025-03-07 19:17:29 +08:00
..
assets feat(MCP): add support for enabling/disabling MCPServers per message (#2989) 2025-03-07 19:17:29 +08:00
components feat: Add code block wrapping functionality (#2411) 2025-03-04 12:30:22 +08:00
config feat: support exa engine (#2870) 2025-03-06 22:44:43 +08:00
context refactor: Extract StyleSheetManager into a separate context component 2025-03-02 19:51:20 +08:00
databases feat: Upgrade database schema and migrate web search metadata 2025-03-06 22:34:28 +08:00
handler feat: Enable conditional settings shortcut based on user preferences 2025-03-05 11:17:34 +08:00
hooks feat: refactor web search logic and support searxng (#2543) 2025-03-06 16:17:26 +08:00
i18n feat: a button to add a whole group of models (#2736) 2025-03-06 23:04:10 +08:00
pages feat(MCP): add support for enabling/disabling MCPServers per message (#2989) 2025-03-07 19:17:29 +08:00
providers feat(MCP): add support for enabling/disabling MCPServers per message (#2989) 2025-03-07 19:17:29 +08:00
queue feat: Improve file upload for the knowledge base (#2544) 2025-03-02 20:21:23 +08:00
services 🔧 feat: add mcp tool response visualization and handling 2025-03-07 13:37:15 +08:00
store fix bug 2025-03-07 13:34:25 +08:00
types feat(MCP): add support for enabling/disabling MCPServers per message (#2989) 2025-03-07 19:17:29 +08:00
utils feat: Refactor web search settings and remove enabled flag 2025-03-06 17:53:45 +08:00
webSearchProvider chore: Add TypeScript ignore comment for provider property in BaseWebSearchProvider 2025-03-07 13:48:19 +08:00
windows feat: Focus input on mouse click 2025-03-06 19:28:44 +08:00
App.tsx refactor: Extract StyleSheetManager into a separate context component 2025-03-02 19:51:20 +08:00
env.d.ts feat: update models inside 2024-12-24 13:27:40 +08:00
init.ts feat: add mini window 2025-01-19 13:59:32 +08:00
main.tsx feat: add mini window 2025-01-19 13:59:32 +08:00