feat(settings): 新增 MCP 服务器启用/禁用开关#2351
Open
LaiyanB wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
目前启用或禁用 MCP 服务器需要手动编辑配置文件或使用斜杠命令,且需要重启应用才能生效。Desktop 设置界面中没有可视化的开关来管理 MCP 服务器状态。
变更内容
在设置 → MCP 页面中,为每个 MCP 服务器卡片添加了图形化 Toggle 开关,用户可以单击切换启用/禁用状态,变更立即生效,无需重启应用。
实现方式
修改文件
测试