McpReadOutput
Type, in @jr2/orchestrator/src/effector-wire.ts. It is an export of @jr2/orchestrator, in the Effects group of the Authoring surface page.
type McpReadOutput =
| { outcome: "returned"; text: string; structured?: unknown; truncated?: boolean }
| McpNotReturned;The output of an mcp.read or an mcp.prompt Effect. Its outcomes are those of McpCallOutput, with no isError. For a read, text joins the text of the resource's contents, and structured is the contents list: a blob is given only as its mimeType and its size. For a prompt, text joins the text of the prompt's messages, and structured is the messages list. Past the bound, structured is dropped and truncated is set.
Forms: it is one of these objects.
Form 1:
outcome,reasonoutcome:"refused"reason:string
Form 2:
outcome,reasonoutcome:"unreachable"reason:string
Form 3:
outcome,reasonoutcome:"input-required"reason:string
Form 4:
outcome,reasonoutcome:"unknown"reason:string
Form 5:
outcome,text,structured,truncatedoutcome:"returned"text:stringstructured(optional):unknowntruncated(optional):boolean
Form 6:
outcome,reasonoutcome:"(a later outcome)"reason(optional):string
See also