cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::transport::JsonLineTransportOptions< Role > Struct Template Reference

Line-oriented JSON-RPC source/sink adapter options. More...

#include <adapters.hpp>

Public Types

using RxLine = core::Result< std::optional< std::string > >
 

Public Attributes

std::string name = "json-line"
 Human-readable transport name.
 
std::function< core::Result< core::Unit >(std::string)> write_line
 Writes one serialized JSON-RPC document without a trailing newline.
 
std::function< RxLine()> read_line
 Reads one serialized JSON-RPC document or end-of-stream.
 
std::function< core::Result< core::Unit >()> close
 Closes the underlying source/sink. Optional.
 
std::function< protocol::Json()> diagnostics
 Returns structured diagnostics. Optional.
 

Detailed Description

template<class Role>
struct mcp::transport::JsonLineTransportOptions< Role >

Line-oriented JSON-RPC source/sink adapter options.


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