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

Function forwardMessage

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

Source from the content-addressed store, hash-verified

1456
1457 const forwardMessage =
1458 (send: (message: JSONRPCMessage) => Promise<void>, context: string) =>
1459 (message: JSONRPCMessage) => {
1460 void send(message).then(undefined, (cause: unknown) => {
1461 reportError(context, cause);
1462 shutdown();
1463 });
1464 };
1465
1466 process.once("SIGINT", shutdown);
1467 process.once("SIGTERM", shutdown);

Callers 1

runMcpHttpBridgeFunction · 0.85

Calls 3

reportErrorFunction · 0.85
shutdownFunction · 0.70
sendFunction · 0.50

Tested by

no test coverage detected