Skip to main content

Module resource

Module resource 

Source
Expand description

Type-safe MCP resource definitions

This module provides a high-level API for defining MCP resources with compile-time type checking and automatic JSON generation for the resources/list and resources/read protocol messages.

Structs§

Resource
A resource definition for the resources/list response
ResourceBuilder
Builder for creating resources with a fluent API
ResourceContent
Content of a resource, either text or binary (base64-encoded).

Type Aliases§

ResourceContents
Collection of resource contents (e.g. multi-part resource)
ResourceHandler
Resource read handler function type