MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / sendError

Function sendError

__tests__/mcp-opencode-tool-names.test.ts:96–96  ·  view source on GitHub ↗
(id, code, message)

Source from the content-addressed store, hash-verified

94 async request() { return {}; },
95 sendResult(id, result) { replies.set(id, result); },
96 sendError(id, code, message) { replies.set(id, { error: { code, message } }); },
97 };
98 new MCPSession(transport, engine).start();
99 let nextId = 1;

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected