fix(mcp): reconnect after OAuth even when server is disabled
Closes #33915
This commit is contained in:
@@ -946,7 +946,7 @@ export const layer = Layer.effect(
|
|||||||
|
|
||||||
const mcpConfig = yield* requireMcpConfig(mcpName)
|
const mcpConfig = yield* requireMcpConfig(mcpName)
|
||||||
|
|
||||||
return yield* createAndStore(mcpName, mcpConfig)
|
return yield* createAndStore(mcpName, { ...mcpConfig, enabled: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
const removeAuth = Effect.fn("MCP.removeAuth")(function* (mcpName: string) {
|
const removeAuth = Effect.fn("MCP.removeAuth")(function* (mcpName: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user