![]() |
boost::taar::mcp::server_info — Static information the server reports in initialize, plus session options.
// In header: <boost/taar/mcp/endpoint.hpp> struct server_info { // public data members std::string name; std::string version; std::string instructions; std::chrono::steady_clock::duration session_idle_timeout; std::size_t page_size; // Items per page for*‍/listmethods; 0 returns everything in one page. std::size_t stream_history; // Events kept per session forLast-Event-IDstream resumption; also bounds how many undelivered events a session queues for a stream that has not been opened yet (oldest dropped first). log_level default_log_level; // Least severelog()message delivered before the client sets a level. std::chrono::steady_clock::duration stream_keepalive; // Interval between: keepalivecomments on an idle event stream, so a dropped connection is noticed and freed for a reconnect; zero disables. std::chrono::steady_clock::duration request_timeout; // How longrequest()(andelicit,create_message,list_roots) waits for the client when no timeout is passed; zero waits forever. };