chore: fix opencode tag and MCP command structure (#7451)

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
This commit is contained in:
Luís Rudge
2026-01-19 22:40:42 -08:00
committed by Alex Yang
co-authored by Bereket Engida
parent 01bd8c1b76
commit d3e6468bb0
+10 -3
View File
@@ -37,7 +37,13 @@ async function mcpAction(options: MCPOptions) {
}
async function _installMcpServers(
client: "cursor" | "claude-code" | "open-code" | "manual" | string,
client:
| "cursor"
| "claude-code"
| "open-code"
| "opencode"
| "manual"
| string,
installLocal: boolean = true,
installRemote: boolean = true,
) {
@@ -49,6 +55,7 @@ async function _installMcpServers(
handleClaudeCodeAction(installLocal, installRemote);
break;
case "open-code":
case "opencode":
handleOpenCodeAction(installLocal, installRemote);
break;
case "manual":
@@ -207,8 +214,8 @@ function handleOpenCodeAction(installLocal: boolean, installRemote: boolean) {
if (installLocal) {
mcpConfig["better-auth"] = {
type: "stdio",
command: LOCAL_MCP_COMMAND,
type: "local",
command: [LOCAL_MCP_COMMAND],
enabled: true,
};
}