> ## 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 Resource • Rust AI Agent SDK

> MCPResource: An MCP resource.

# MCPResource

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

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

An MCP resource.

## Fields

| Name          | Type                   | Description          |
| ------------- | ---------------------- | -------------------- |
| `uri`         | `String`               | Resource URI         |
| `name`        | `String`               | Resource name        |
| `description` | `Option&lt;String&gt;` | Resource description |
| `mime_type`   | `Option&lt;String&gt;` | MIME type            |

## Methods

### `new`

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

Create a new resource

**Parameters:**

| Name   | Type                      |
| ------ | ------------------------- |
| `uri`  | `impl Into&lt;String&gt;` |
| `name` | `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#L359">
  `praisonai/src/mcp/mod.rs` at line 359
</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>
