Skip to content

Commit 411e053

Browse files
fix(mcp): reconnect after OAuth even when server is disabled
Closes anomalyco#33915
1 parent b862d17 commit 411e053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/mcp/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export const layer = Layer.effect(
946946

947947
const mcpConfig = yield* requireMcpConfig(mcpName)
948948

949-
return yield* createAndStore(mcpName, mcpConfig)
949+
return yield* createAndStore(mcpName, { ...mcpConfig, enabled: true })
950950
})
951951

952952
const removeAuth = Effect.fn("MCP.removeAuth")(function* (mcpName: string) {

0 commit comments

Comments
 (0)