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

Function abort

packages/plugins/mcp/src/sdk/invoke.ts:124–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 Effect.callback<never, Error>((resume) => {
123 // oxlint-disable-next-line executor/no-error-constructor -- boundary: an aborted MCP handler must reject its JSON-RPC response
124 const abort = () => resume(Effect.fail(new Error("MCP elicitation was cancelled")));
125 if (signals.some((signal) => signal.aborted)) {
126 abort();
127 return;

Callers 1

abortOnSignalsFunction · 0.70

Calls 1

resumeFunction · 0.85

Tested by

no test coverage detected