---
title: McpOutput
description: "The output of any `mcp` Effect: a call's, a read's or a prompt's."
---

# `McpOutput`

Type, in `@jr2/orchestrator/src/effector-wire.ts`. It is an export of `@jr2/orchestrator`, in the [Effects](group-effects.md) group of the [Authoring surface](../authoring-surface.md) page.

```ts
type McpOutput = McpCallOutput | McpReadOutput;
```

The output of any `mcp` Effect: a call's, a read's or a prompt's.

**Forms**: it is one of these objects.

- Form 1: `outcome`, `isError`, `text`, `structured`, `truncated`

  - `outcome`: `"returned"`
  - `isError`: `boolean`
  - `text`: `string`
  - `structured` (optional): `unknown`
  - `truncated` (optional): `boolean`
- Form 2: `outcome`, `reason`

  - `outcome`: `"refused"`
  - `reason`: `string`
- Form 3: `outcome`, `reason`

  - `outcome`: `"unreachable"`
  - `reason`: `string`
- Form 4: `outcome`, `reason`

  - `outcome`: `"input-required"`
  - `reason`: `string`
- Form 5: `outcome`, `reason`

  - `outcome`: `"unknown"`
  - `reason`: `string`
- Form 6: `outcome`, `text`, `structured`, `truncated`

  - `outcome`: `"returned"`
  - `text`: `string`
  - `structured` (optional): `unknown`
  - `truncated` (optional): `boolean`
- Form 7: `outcome`, `reason`

  - `outcome`: `"(a later outcome)"`
  - `reason` (optional): `string`
