Skip to content

Commit e08017c

Browse files
authored
fix(mcp): log actionable connection statuses (anomalyco#31544)
1 parent fe567cc commit e08017c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/opencode/src/mcp/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ export const layer = Layer.effect(
458458
: yield* connectLocal(key, mcp as ConfigMCPV1.Info & { type: "local" })
459459

460460
if (!mcpClient) {
461+
if (status.status !== "connected" && status.status !== "disabled") {
462+
yield* Effect.logWarning("server unavailable", { key, type: mcp.type, status: status.status })
463+
}
461464
return { status } satisfies CreateResult
462465
}
463466

0 commit comments

Comments
 (0)