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 + } }; }