cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::protocol::Annotations Struct Reference

Typed representation of MCP annotations. More...

#include <annotations.hpp>

Public Attributes

std::optional< std::vector< std::string > > audience
 Target audience roles. Valid wire values are "user" and "assistant".
 
std::optional< float > priority
 Presentation priority in the closed interval [0.0, 1.0].
 
std::optional< std::string > last_modified
 ISO 8601 timestamp indicating when the annotated object was last modified.
 
Json raw = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Detailed Description

Typed representation of MCP annotations.

Maps to the Annotations struct in the MCP reference model (rmcp::Annotations). All fields are optional; absent members are omitted from the serialized JSON.


The documentation for this struct was generated from the following file: