Skip to main content

ResourceMetadata

Metadata interface for defining MCP resources.
name
string
required
Unique identifier for the resource
title
string
Human-readable title for the resource
description
string
Detailed description of the resource
mimeType
string
MIME type of the resource content (e.g., “text/plain”, “application/json”)
size
number
Size of the resource in bytes
_meta
object
Metadata for the resource. Supports nested OpenAI metadata and other vendor extensions.
_meta.openai
OpenAIMetadata
OpenAI-specific metadata for resource configuration
_meta[key]
unknown
Additional vendor-specific metadata extensions
[key]
any
Additional custom properties

Build docs developers (and LLMs) love