feat: configure built-in MCP access

Built-in MCP servers were always granted to supported runtimes without per-server controls. They now have persistent enablement and runtime assignments for direct models, managed OpenCode, and Continue, while DeepSeek Harness remains visibly unsupported and cannot be assigned.

MCP settings are reorganized into Built-in MCP, Direct model, Custom MCP, and Computer control tabs. Direct-model web search now uses the same accessible collapsible inventory pattern as other tool groups.

Release note: 内置 MCP 现在可分别启停并分配给直连模型、OpenCode 和 Continue;MCP 设置分类与直连模型工具列表也更清晰,DeepSeek Harness 会明确显示为暂不支持。
This commit is contained in:
mesalogo
2026-08-17 00:25:46 +08:00
parent b751c70d75
commit 792d80e67c
21 changed files with 1012 additions and 218 deletions
+9
View File
@@ -6,6 +6,7 @@ import {
import type {
BrowserProfileCreateInput,
BrowserProfileRenameInput,
BuiltinMcpServerId,
CapabilityDiagnosticReport,
CapabilityAssignments,
CapabilitySnapshot,
@@ -1532,6 +1533,14 @@ export type DesktopApi = {
skillId: string,
assignments: CapabilityAssignments
) => Promise<CapabilitySnapshot>
setBuiltinMcpServerEnabled: (
serverId: BuiltinMcpServerId,
enabled: boolean
) => Promise<CapabilitySnapshot>
setBuiltinMcpServerAssignments: (
serverId: BuiltinMcpServerId,
assignments: CapabilityAssignments
) => Promise<CapabilitySnapshot>
saveMcpServer: (
serverId: string | undefined,
input: McpServerInput