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

Function formatBoundaryError

apps/local/src/mcp.ts:76–80  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

74 jsonRpcErrorBody(status, code, message, { cors: false });
75
76const formatBoundaryError = (error: unknown): unknown => {
77 // oxlint-disable-next-line executor/no-instanceof-error, executor/no-unknown-error-message -- boundary: MCP request handler catches unknown SDK/runtime failures for process logging
78 if (error instanceof Error) return error.stack ?? error.message;
79 return error;
80};
81
82const ignoreClose = (close: (() => Promise<void>) | undefined): Promise<void> =>
83 close

Callers 1

createMcpRequestHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected