fix: standardize MCP server copy (#36598)

This commit is contained in:
Kit Langton
2026-07-12 22:23:59 -04:00
committed by GitHub
parent 64ca9b8d77
commit 58201a32c1
5 changed files with 15 additions and 13 deletions
+4 -4
View File
@@ -65,8 +65,8 @@ export const dict = {
"command.message.next.description": "Go to the next user message", "command.message.next.description": "Go to the next user message",
"command.model.choose": "Choose model", "command.model.choose": "Choose model",
"command.model.choose.description": "Select a different model", "command.model.choose.description": "Select a different model",
"command.mcp.toggle": "Toggle MCPs", "command.mcp.toggle": "Manage MCP servers",
"command.mcp.toggle.description": "Toggle MCPs", "command.mcp.toggle.description": "Enable or disable MCP servers",
"command.agent.cycle": "Cycle agent", "command.agent.cycle": "Cycle agent",
"command.agent.cycle.description": "Switch to the next agent", "command.agent.cycle.description": "Switch to the next agent",
"command.agent.cycle.reverse": "Cycle agent backwards", "command.agent.cycle.reverse": "Cycle agent backwards",
@@ -307,9 +307,9 @@ export const dict = {
"prompt.toast.promptSendFailed.title": "Failed to send prompt", "prompt.toast.promptSendFailed.title": "Failed to send prompt",
"prompt.toast.promptSendFailed.description": "Unable to retrieve session", "prompt.toast.promptSendFailed.description": "Unable to retrieve session",
"dialog.mcp.title": "MCPs", "dialog.mcp.title": "MCP servers",
"dialog.mcp.description": "{{enabled}} of {{total}} enabled", "dialog.mcp.description": "{{enabled}} of {{total}} enabled",
"dialog.mcp.empty": "No MCPs configured", "dialog.mcp.empty": "No MCP servers configured",
"dialog.lsp.empty": "LSPs auto-detected from file types", "dialog.lsp.empty": "LSPs auto-detected from file types",
"dialog.plugins.empty": "Plugins configured in opencode.json", "dialog.plugins.empty": "Plugins configured in opencode.json",
+2 -2
View File
@@ -522,7 +522,7 @@ function App(props: {
toast.show({ toast.show({
variant: "error", variant: "error",
title: `MCP server failed: ${server.name}`, title: `MCP server failed: ${server.name}`,
message: "Open MCPs to view details.", message: "Open MCP servers to view details.",
}) })
} }
}) })
@@ -785,7 +785,7 @@ function App(props: {
}, },
{ {
name: "mcp.list", name: "mcp.list",
title: "MCP Servers", title: "MCP servers",
category: "Agent", category: "Agent",
slashName: "mcps", slashName: "mcps",
run: () => { run: () => {
+2 -2
View File
@@ -92,7 +92,7 @@ export function DialogMcp() {
when={detail()} when={detail()}
fallback={ fallback={
<DialogSelect <DialogSelect
title="MCPs" title="MCP servers"
options={options()} options={options()}
current={focused()} current={focused()}
preserveSelection preserveSelection
@@ -152,7 +152,7 @@ function DialogMcpError(props: { server: McpServer; onBack: () => void }) {
<box paddingLeft={4} paddingRight={4} paddingBottom={1} gap={1}> <box paddingLeft={4} paddingRight={4} paddingBottom={1} gap={1}>
<box flexDirection="row" justifyContent="space-between"> <box flexDirection="row" justifyContent="space-between">
<text attributes={TextAttributes.BOLD} fg={theme.text}> <text attributes={TextAttributes.BOLD} fg={theme.text}>
MCP / {props.server.name} MCP server: {props.server.name}
</text> </text>
<text fg={theme.textMuted} onMouseUp={props.onBack}> <text fg={theme.textMuted} onMouseUp={props.onBack}>
esc back esc back
+4 -2
View File
@@ -22,9 +22,11 @@ export function DialogStatus() {
esc esc
</text> </text>
</box> </box>
<Show when={mcp().length > 0} fallback={<text fg={theme.text}>No MCP Servers</text>}> <Show when={mcp().length > 0} fallback={<text fg={theme.text}>No MCP servers</text>}>
<box> <box>
<text fg={theme.text}>{mcp().length} MCP Servers</text> <text fg={theme.text}>
{mcp().length} MCP server{mcp().length === 1 ? "" : "s"}
</text>
<For each={mcp()}> <For each={mcp()}>
{(item) => ( {(item) => (
<box flexDirection="row" gap={1}> <box flexDirection="row" gap={1}>
@@ -292,7 +292,7 @@ The `mcp debug` command shows the current auth status, tests HTTP connectivity,
## Manage ## Manage
Your MCPs are available as tools in OpenCode, alongside built-in tools. So you can manage them through the OpenCode config like any other tool. Tools from your MCP servers are available in OpenCode alongside built-in tools. You can manage them through the OpenCode config like any other tool.
--- ---
@@ -319,7 +319,7 @@ This means that you can enable or disable them globally.
} }
``` ```
We can also use a glob pattern to disable all matching MCPs. We can also use a glob pattern to disable all matching MCP tools.
```json title="opencode.json" {14} ```json title="opencode.json" {14}
{ {
@@ -340,7 +340,7 @@ We can also use a glob pattern to disable all matching MCPs.
} }
``` ```
Here we are using the glob pattern `my-mcp*` to disable all MCPs. Here we are using the glob pattern `my-mcp*` to disable all matching MCP tools.
--- ---