|
cxxmcp 1.1.6
C++ MCP SDK
|
Completion request context passed to typed completion handlers. More...
#include <context.hpp>
Public Member Functions | |
| bool | cancelled () const noexcept |
| Convenience check for cancellation-aware completion handlers. | |
Public Member Functions inherited from mcp::server::SessionContext | |
| SessionClient | client () const noexcept |
| Return a non-owning handle for the client on this session. | |
Public Attributes | |
| protocol::CompleteParams | params |
Parsed completion/complete request parameters. | |
| CancellationToken | cancellation |
| Cooperative cancellation token for this request. | |
Public Attributes inherited from mcp::server::SessionContext | |
| std::string | session_id |
| Logical MCP session id when the transport has one. | |
| std::string | remote_address |
| Best-effort remote endpoint description such as "stdio" or an address. | |
| std::unordered_map< std::string, std::string > | headers |
| Transport-supplied request headers or metadata for this message. | |
| std::optional< std::string > | http_method |
| HTTP request method for HTTP-based transports. | |
| std::optional< std::string > | http_url |
| Absolute HTTP request URL for HTTP-based transports. | |
| std::optional< AuthIdentity > | auth_identity |
| Authenticated principal produced by the configured AuthProvider. | |
| Transport * | transport = nullptr |
| Borrowed transport used to create a ClientPeer for outbound messages. | |
| std::weak_ptr< void > | transport_lifetime |
| Weak lifetime token supplied by the transport. | |
Completion request context passed to typed completion handlers.