cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
protocol.hpp
Go to the documentation of this file.
1// Copyright (c) 2025 [caomengxuan666]
2
3#pragma once
4
MCP client and server capability declarations.
Completion request and result payloads.
Elicitation request, result, and schema payloads.
Typed initialize request and result payloads.
Logging level and notification payloads.
Prompt discovery and rendering payloads.
Shared JSON, JSON-RPC, error, cancellation, and progress model types.
Resource listing, template, subscription, and read payloads.
Client root discovery payloads.
Client-side model sampling request and response payloads.
Small JSON Schema builders for MCP tool and elicitation metadata.
JSON-RPC method names and message construction/parsing helpers.
Asynchronous task status and task-management payloads.
Tool definition, call, and result payloads.
Reflection specializations for DTOs defined in types.hpp.