|
cxxmcp 1.1.6
C++ MCP SDK
|
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. | |
Line-oriented JSON-RPC source/sink adapter options.