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

Function respond

packages/hosts/mcp-apps-shell/src/shell/shell-app.tsx:534–546  ·  view source on GitHub ↗
(requestId: number, ok: boolean, value?: unknown, error?: string)

Source from the content-addressed store, hash-verified

532 const source = event.source;
533 if (!source || typeof source.postMessage !== "function") return;
534 const respond = (requestId: number, ok: boolean, value?: unknown, error?: string) => {
535 source.postMessage(
536 {
537 type: "executor.response",
538 requestId,
539 token: current.token,
540 ok,
541 value,
542 error,
543 },
544 "*",
545 );
546 };
547
548 if (data.type === "executor.renderer.ready") {
549 // The bootstrap runs before generated code. A later ready message is

Callers 1

handleRendererMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected