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

Function makePausedResult

packages/hosts/mcp/src/tool-server.test.ts:107–116  ·  view source on GitHub ↗
(
  id: string,
  request: FormElicitation | UrlElicitation,
)

Source from the content-addressed store, hash-verified

105
106/** Build a stub paused ExecutionResult with the given id and elicitation request. */
107const makePausedResult = (
108 id: string,
109 request: FormElicitation | UrlElicitation,
110): ExecutionResult => ({
111 status: "paused",
112 execution: {
113 id,
114 elicitationContext: { address: STUB_TOOL_ADDRESS, args: {}, request },
115 },
116});
117
118const toolFile = (input: {
119 readonly name?: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected