-
Notifications
You must be signed in to change notification settings - Fork 423
refactor(ai-native): enable mcp server by default #4594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
/next |
Walkthrough本次更改将MCP服务器的启用状态管理方式由“启用列表”切换为“禁用列表”。涉及的逻辑包括配置迁移、服务器启停、状态存储与判断等,均已相应反转。常量定义也由 Changes
Sequence Diagram(s)sequenceDiagram
participant 用户
participant MCP配置服务
participant 存储
participant 服务器实例
用户->>MCP配置服务: 启动/停止服务器
MCP配置服务->>存储: 读取/更新 MCPServersDisabledKey
alt 启动服务器
MCP配置服务->>存储: 从禁用列表移除服务器名
MCP配置服务->>服务器实例: 启动
else 停止服务器
MCP配置服务->>存储: 添加服务器名到禁用列表
MCP配置服务->>服务器实例: 停止
end
MCP配置服务->>用户: 返回操作结果
Possibly related PRs
Suggested labels
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
yarn install v1.22.22 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (8)
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🎉 PR Next publish successful! 3.9.1-next-1750652720.0 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4594 +/- ##
=======================================
Coverage 52.61% 52.61%
=======================================
Files 1687 1687
Lines 104341 104341
Branches 22668 22659 -9
=======================================
+ Hits 54899 54903 +4
+ Misses 41081 41077 -4
Partials 8361 8361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Types
Background or solution
目前的设计将 enable mcp 配置存在 storage 下,在 OpenSumi 常用的 WebIDE 场景下,每一次新建空间都需要启用
Changelog
refactor(ai-native): enable mcp server by default
Summary by CodeRabbit