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

Function reply

packages/plugins/mcp/src/sdk/appserver-test-server.ts:94–96  ·  view source on GitHub ↗
(id: number | string, result: unknown)

Source from the content-addressed store, hash-verified

92};
93
94const reply = (id: number | string, result: unknown): void => {
95 write({ jsonrpc: "2.0", id, result });
96};
97
98const replyError = (id: number | string, code: number, message: string): void => {
99 write({ jsonrpc: "2.0", id, error: { code, message } });

Callers 3

handleToolCallFunction · 0.70
handleElicitationAnswerFunction · 0.70

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected