> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: McpResourceDefinition

> Generated from the public TypeScript API.

An SDK-hosted MCP resource with a stable URI and a caller-side read callback.

## Properties

### description?

```ts theme={null}
optional description?: string;
```

***

### mimeType?

```ts theme={null}
optional mimeType?: string;
```

***

### name

```ts theme={null}
name: string;
```

***

### uri

```ts theme={null}
uri: string;
```

## Methods

### read()

```ts theme={null}
read(context):
  | {
[key: string]: unknown;
}
  | Promise<{
[key: string]: unknown;
}>;
```

Read this resource for the requesting session.

#### Parameters

##### context

[`ToolContext`](ToolContext)

Session identity and cancellation signal.

#### Returns

\| \{
\[`key`: `string`]: `unknown`;
}
\| `Promise`\<\{
\[`key`: `string`]: `unknown`;
}>

MCP resource contents.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.