From dfe282095ca4082f79d643c2aabc71585bfefd31 Mon Sep 17 00:00:00 2001 From: agent Date: Tue, 7 Apr 2026 09:03:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(dashboard):=20OpenCode=20MCP=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=94=B9=E7=94=A8=E5=8E=9F=E7=94=9F=20Streamable=20HT?= =?UTF-8?q?TP=EF=BC=8C=E7=A7=BB=E9=99=A4=20mcp-remote=20=E4=B8=AD=E8=BD=AC?= =?UTF-8?q?=EF=BC=9Bbump=200.5.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- crates/secrets-mcp/Cargo.toml | 2 +- crates/secrets-mcp/templates/dashboard.html | 20 ++++++++------------ 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 668b82e..cceeef4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2065,7 +2065,7 @@ dependencies = [ [[package]] name = "secrets-mcp" -version = "0.5.10" +version = "0.5.11" dependencies = [ "anyhow", "askama", diff --git a/crates/secrets-mcp/Cargo.toml b/crates/secrets-mcp/Cargo.toml index 2d3eca9..c7d1399 100644 --- a/crates/secrets-mcp/Cargo.toml +++ b/crates/secrets-mcp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "secrets-mcp" -version = "0.5.10" +version = "0.5.11" edition.workspace = true [[bin]] diff --git a/crates/secrets-mcp/templates/dashboard.html b/crates/secrets-mcp/templates/dashboard.html index 4b3b52d..dc72778 100644 --- a/crates/secrets-mcp/templates/dashboard.html +++ b/crates/secrets-mcp/templates/dashboard.html @@ -577,20 +577,16 @@ function buildSecretsConfigText(apiKey, encKey) { return lines.length < 3 ? wrapped : lines.slice(1, -1).join('\n'); } -/** OpenCode: local stdio bridge to Streamable HTTP MCP (mcp-remote --transport http-only). */ +/** OpenCode: native Streamable HTTP transport (no mcp-remote bridge needed). */ function buildOpencodeEntry(apiKey, encKey) { return { - type: 'local', - command: [ - 'npx', '-y', 'mcp-remote', - BASE_URL + '/mcp', - '--header', - 'Authorization: Bearer ' + apiKey, - '--header', - 'X-Encryption-Key: ' + encKey, - '--transport', - 'http-only' - ] + type: 'remote', + enabled: true, + url: BASE_URL + '/mcp', + headers: { + 'Authorization': 'Bearer ' + apiKey, + 'X-Encryption-Key': encKey + } }; }