|
cxxmcp 1.1.6
C++ MCP SDK
|
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< Json > | meta |
| 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. | |
JSON-RPC request envelope carrying an MCP method invocation.