Skip to content

feat(mcp): add server toggles in marketplace#297

Open
musnows wants to merge 1 commit into
KunAgent:developfrom
musnows:codex/toggle-mcp-tools
Open

feat(mcp): add server toggles in marketplace#297
musnows wants to merge 1 commit into
KunAgent:developfrom
musnows:codex/toggle-mcp-tools

Conversation

@musnows

@musnows musnows commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

中文

变更

  • 在 MCP 管理面板的个人 MCP 服务卡片上增加启用/禁用按钮。
  • 切换时保留原有 server 配置,仅写回 enabled 字段,并兼容顶层 serverscapabilities.mcp.servers 两种 JSON 结构。
  • 为禁用状态补充中英文文案和配置 helper 单测。

验证

  • npm test -- --run src/renderer/src/components/PluginMarketplaceView.test.ts src/renderer/src/components/plugin-marketplace-runtime.test.ts
  • npm run typecheck
  • npm run build

English

Changes

  • Added enable/disable actions to personal MCP server cards in the MCP marketplace.
  • Preserved existing server config while toggling only the enabled field, with support for both top-level servers and nested capabilities.mcp.servers JSON shapes.
  • Added localized labels and focused tests for the MCP config helper.

Validation

  • npm test -- --run src/renderer/src/components/PluginMarketplaceView.test.ts src/renderer/src/components/plugin-marketplace-runtime.test.ts
  • npm run typecheck
  • npm run build

@musnows musnows marked this pull request as ready for review June 14, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant