|
cxxmcp 1.1.6
C++ MCP SDK
|
Generic typed MCP notification for extension methods. More...
#include <custom_methods.hpp>
Public Member Functions | |
| template<class Serializer > | |
| JsonRpcNotification | to_json_rpc (Serializer serializer) const |
| Creates a JsonRpcNotification envelope from this typed notification. | |
Public Attributes | |
| std::string | method |
| Method name on the wire. | |
| Params | params |
| Typed notification parameters. | |
Generic typed MCP notification for extension methods.
| Params | A struct with a to_json() free function. |
Example:
|
inline |
Creates a JsonRpcNotification envelope from this typed notification.
| serializer | Function that converts Params to JSON. |