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

JSON-RPC request envelope carrying an MCP method invocation. More...

#include <types.hpp>

Public Attributes

std::string method
 JSON-RPC method name such as tools/call or initialize.
 
Json params = Json::object()
 Method-specific params object. Empty means the request has no fields.
 
RequestId id
 Request id that must be echoed by the response.
 
std::optional< Jsonmeta
 Optional protocol metadata, serialized outside the feature payload.
 
std::unordered_map< std::string, std::string > transport_headers
 Per-request HTTP headers merged into the transport layer.
 
std::optional< std::string > protocol_version_override
 Optional override for the MCP-Protocol-Version header.
 

Detailed Description

JSON-RPC request envelope carrying an MCP method invocation.


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