mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
chore: fix opencode tag and MCP command structure (#7451)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
This commit is contained in:
committed by
Alex Yang
co-authored by
Bereket Engida
parent
01bd8c1b76
commit
d3e6468bb0
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user