Skip to content

Commit 59e7d1d

Browse files
rekram1-nodePhuc Le
authored andcommitted
fix(mcp): log actionable connection statuses (anomalyco#31544)
(cherry picked from commit 0777cf1)
1 parent 863f755 commit 59e7d1d

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
@@ -469,6 +469,9 @@ export const layer = Layer.effect(
469469
: yield* connectLocal(key, mcp as ConfigMCP.Info & { type: "local" })
470470

471471
if (!mcpClient) {
472+
if (status.status !== "connected" && status.status !== "disabled") {
473+
yield* Effect.logWarning("server unavailable", { key, type: mcp.type, status: status.status })
474+
}
472475
return { status } satisfies CreateResult
473476
}
474477

0 commit comments

Comments
 (0)