cherry-studio/src/main
LiuVaayne dbf943a9bf Feat/mcp support MCP prompt (#4675)
* Add MCP prompt listing and retrieval functionality

* Add generic caching mechanism for MCP service methods

Refactor caching strategy by implementing a higher-order withCache function
to centralize cache logic and reduce code duplication. Separate implementation
details from caching concerns in listTools, listPrompts and getPrompt methods.

# Conflicts:
#	src/main/services/MCPService.ts

* Add MCP prompts listing feature

- Add IPC handlers for listing and getting prompts
- Create UI component to display available prompts in settings tab
- Improve error handling in MCP service methods

* fix(McpService): add error handling for tool and prompt listing methods

* feat(MCPSettings): enhance prompts and tools sections with improved UI and reset functionality

* feat(i18n): add tabs and prompts sections to localization files

* feat(MCPToolsButton): add MCP prompt list functionality to Inputbar

* feat(McpSettings, NpxSearch): improve user feedback with success messages on server addition

* feat(MCPService, MCPToolsButton): enhance prompt handling with caching and improved selection logic

* feat(MCPToolsButton): enhance prompt handling with argument support and error management

---------

Co-authored-by: Teo <cheesen.xu@gmail.com>
2025-04-12 10:27:48 +08:00
..
embeddings build: replace @llm-tools/embedjs with @cherrystudio/embedjs 2025-03-26 18:14:04 +08:00
integration/nutstore/sso/lib feat(mcp): add in-memory MCP server support and configuration management (#4359) 2025-04-05 14:17:56 +08:00
loader build: replace @llm-tools/embedjs with @cherrystudio/embedjs 2025-03-26 18:14:04 +08:00
mcpServers 重构了memory.ts,增加了文件写入锁,解决了并行写入导致记忆文件错误的问题; (#4671) 2025-04-11 22:03:57 +08:00
reranker refactor(reranker): 重构重排序功能以提高可维护性 (#4539) 2025-04-08 16:53:31 +08:00
services Feat/mcp support MCP prompt (#4675) 2025-04-12 10:27:48 +08:00
utils feat(mcp): add in-memory MCP server support and configuration management (#4359) 2025-04-05 14:17:56 +08:00
config.ts feat: Windows Control Overlay button hover effect 2025-03-06 19:29:10 +08:00
constant.ts feat: update package.json dependencies and enhance webview handling 2025-03-17 12:55:34 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts Clean up MCPService connections on app quit (#4647) 2025-04-10 17:19:02 +08:00
ipc.ts Feat/mcp support MCP prompt (#4675) 2025-04-12 10:27:48 +08:00