cherry-studio/src/main/services
MyPrototypeWhat a45460eae9 feat: mcp auto server (#3996)
* feat: add configuration file management to MCPService

- Introduced methods to ensure the existence of a configuration file, load configurations from it, and save server configurations.
- Updated the MCPService class to handle server configurations more effectively, improving initialization and error handling.
- Added dependency on chokidar for file system watching.

* feat: enhance MCPService configuration handling

- Improved configuration management by adding compatibility for both old and new server formats.
- Updated methods to ensure configuration file existence, load configurations, and save server data more effectively.
- Refined server initialization logic to handle updates and notifications to Redux more efficiently.
- Removed unnecessary waiting for server data from Redux during initialization.

* feat: enhance MCPService default configuration handling

- Added logic to create a default configuration if none exists, improving the initialization process.
- Implemented migration of server configurations from Redux to file, ensuring data consistency.
- Updated methods to handle nested server structures and improved error handling during server updates.

* refactor: clean up MCPService by removing redundant console logs and unused updateServerInRedux method

- Eliminated unnecessary console log statements to improve code readability.
- Removed the unused updateServerInRedux method, streamlining the MCPService class.
- Maintained existing functionality while enhancing code clarity.
2025-03-27 17:15:16 +08:00
..
AppUpdater.ts Enhance update error logging and fix duplicate type import 2025-03-08 11:16:00 +08:00
BackupManager.ts ci: fix eslint slow 2025-03-25 18:34:20 +08:00
CacheService.ts feat: add gemini files support 2025-01-07 16:49:11 +08:00
ClipboardMonitor.ts refactor: replace console.debug with console.log for improved logging consistency 2025-03-17 13:10:11 +08:00
ConfigManager.ts feat: Launch on boot, Minimize to tray on launch & on close / fix: Mac: don't show dock when close to tray (#2871) 2025-03-21 16:48:19 +08:00
CopilotService.ts feat: support Github Copilot (#2432) 2025-03-19 13:24:50 +08:00
ExportService.ts feat: support table and hyperlink when export to word (#2837) 2025-03-05 11:16:45 +08:00
FileService.ts feat: add file reading functionality and integrate system agents 2025-01-22 14:35:38 +08:00
FileStorage.ts Fix/fs-rmdir-deprecation (#3296) 2025-03-13 20:45:45 +08:00
GeminiService.ts revert(Proxy): remove proxyManager usage from multiple services (#3720) 2025-03-21 16:04:45 +08:00
KnowledgeService.ts build: replace @llm-tools/embedjs with @cherrystudio/embedjs 2025-03-26 18:14:04 +08:00
MCPService.ts feat: mcp auto server (#3996) 2025-03-27 17:15:16 +08:00
NutstoreService.ts feat: nutstore integration (#3461) 2025-03-25 11:40:11 +08:00
ObsidianVaultService.ts feat: 优化导出obsidian,自动选择库路径,不再需要手动配置 (#3854) 2025-03-25 21:31:22 +08:00
ProtocolClient.ts feat: nutstore integration (#3461) 2025-03-25 11:40:11 +08:00
ProxyManager.ts chore(ProxyManager): remove unnecessary console log 2025-03-22 00:28:07 +08:00
ReduxService.ts refactor(MessageOperations): Improve stream message pause and selector handling 2025-03-12 11:09:52 +08:00
ShortcutService.ts fix: some shortcuts not enabled 2025-03-25 00:48:35 +08:00
TrayService.ts feat: add a startup switch for quick assistant 2025-01-19 19:22:25 +08:00
WebDav.ts feat: nutstore integration (#3461) 2025-03-25 11:40:11 +08:00
WindowService.ts Revert "feat: support acrylic effect for Windows" 2025-03-25 20:13:54 +08:00