Skip to content

Commit 3174446

Browse files
MaxAnderson95panyw5
authored andcommitted
fix(mcp): reconnect after OAuth even when server is disabled
Closes anomalyco#33915
1 parent 29accd3 commit 3174446

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
@@ -907,7 +907,7 @@ export const layer = Layer.effect(
907907

908908
const mcpConfig = yield* requireMcpConfig(mcpName)
909909

910-
return yield* createAndStore(mcpName, mcpConfig)
910+
return yield* createAndStore(mcpName, { ...mcpConfig, enabled: true })
911911
})
912912

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

0 commit comments

Comments
 (0)