> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Content • Rust AI Agent SDK

> MCPContent: MCP content types.

# MCPContent

> Defined in the [**MCP**](../modules/mcp) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

MCP content types.

## Fields

| Name      | Type      | Description  |
| --------- | --------- | ------------ |
| `Text`    | `variant` | -            |
| `content` | `variant` | -            |
| `Text`    | `variant` | Text content |
| `text`    | `variant` | Text content |
| `String`  | `variant` | Text content |

## Methods

### `text`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn text(text: impl Into<String>) -> Self
```

Create text content

**Parameters:**

| Name   | Type                      |
| ------ | ------------------------- |
| `text` | `impl Into&lt;String&gt;` |

### `image`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn image(data: impl Into<String>, mime_type: impl Into<String>) -> Self
```

Create image content

**Parameters:**

| Name        | Type                      |
| ----------- | ------------------------- |
| `data`      | `impl Into&lt;String&gt;` |
| `mime_type` | `impl Into&lt;String&gt;` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/mcp/mod.rs">
  `praisonai/src/mcp/mod.rs` at line 0
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust MCP" icon="plug" href="/docs/rust/mcp" />

  <Card title="Rust Resources" icon="folder" href="/docs/rust/resources" />
</CardGroup>
