Skip to content

McpResourceDefinition

Defined in: types.ts:20

App-authored read-only resource — reference content an agent loads as context rather than queries as a tool (schema docs, enum values, usage guides). read runs with the session’s params, so inner dispatch() calls hit the full hook pipeline.

optional description?: string

Defined in: types.ts:24


optional mimeType?: string

Defined in: types.ts:26

"text/plain"

name: string

Defined in: types.ts:23


read: (ctx) => Promise<string>

Defined in: types.ts:27

McpToolContext

Promise<string>


uri: string

Defined in: types.ts:22

Unique resource URI. The mantle://events/ namespace is reserved for event resources.