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

Function forwardMessage

apps/cli/src/main.ts:1441–1447  ·  view source on GitHub ↗
(send: (message: JSONRPCMessage) => Promise<void>, context: string)

Source from the content-addressed store, hash-verified

1439
1440 const forwardMessage =
1441 (send: (message: JSONRPCMessage) => Promise<void>, context: string) =>
1442 (message: JSONRPCMessage) => {
1443 void send(message).then(undefined, (cause: unknown) => {
1444 reportError(context, cause);
1445 shutdown();
1446 });
1447 };
1448
1449 process.once("SIGINT", shutdown);
1450 process.once("SIGTERM", shutdown);

Callers 1

runMcpHttpBridgeFunction · 0.85

Calls 3

sendFunction · 0.85
reportErrorFunction · 0.85
shutdownFunction · 0.70

Tested by

no test coverage detected