cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
custom_methods.hpp File Reference

Generic typed wrappers for MCP extension methods. More...

#include <cstdint>
#include <string>
#include <string_view>
#include "cxxmcp/core/result.hpp"
#include "cxxmcp/protocol/serialization.hpp"
#include "cxxmcp/protocol/types.hpp"

Go to the source code of this file.

Classes

struct  mcp::protocol::CustomRequest< Params, Result >
 Generic typed MCP request for extension methods. More...
 
struct  mcp::protocol::CustomNotification< Params >
 Generic typed MCP notification for extension methods. More...
 

Detailed Description

Generic typed wrappers for MCP extension methods.

CustomRequest and CustomNotification let library users define new MCP method families without modifying the core protocol headers. Each type carries a compile-time method name, typed params, and (for requests) a typed result.