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

Function missingExecutionResult

packages/hosts/mcp/src/tool-server.ts:498–515  ·  view source on GitHub ↗
(executionId: string)

Source from the content-addressed store, hash-verified

496// rebuilt (host restart, redeploy). Either way the recovery is the same and
497// the model should be told it, not just handed a miss.
498const missingExecutionResult = (executionId: string): McpToolResult => ({
499 content: [
500 {
501 type: "text" as const,
502 text: [
503 `No paused execution: ${executionId}.`,
504 "The paused execution expired or was lost when its session was restarted — paused executions only stay resumable for a few minutes.",
505 "To recover, run the execute tool again with the original code; if it pauses, a fresh executionId will be issued.",
506 ].join(" "),
507 },
508 ],
509 structuredContent: {
510 status: "execution_not_found",
511 executionId,
512 recovery: "re_execute",
513 },
514 isError: true,
515});
516
517// The `skills` tool serves named, static how-to docs (see the execution
518// package's skills registry). No name -> the index; a known name -> that

Callers 2

resumeExecutionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected