MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isMcpSessionMetaUnavailable

Function isMcpSessionMetaUnavailable

apps/cloud/src/mcp/session-meta.ts:76–78  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

74 * the organization directory"? Matches on the message because that is what
75 * survives the Durable Object RPC boundary. */
76export const isMcpSessionMetaUnavailable = (error: unknown): boolean =>
77 // oxlint-disable-next-line executor/no-unknown-error-message -- adapter boundary: a Durable Object rejection reaches the worker as a plain Error whose message IS the signal (same mechanism as the "destroyed" abort)
78 Predicate.isError(error) && error.message.includes(MCP_SESSION_META_UNAVAILABLE);
79
80/**
81 * Retries for the database path. Deliberately small: the point is to ride out a

Callers 2

makeCloudMcpAgentHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected