cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::server::AuthRequest Struct Reference

Transport-neutral authentication input. More...

#include <auth.hpp>

Public Attributes

std::unordered_map< std::string, std::string > headers
 Request headers or metadata supplied by the transport.
 
std::string remote_address
 Best-effort remote address for audit and policy decisions.
 
std::optional< std::string > http_method
 HTTP request method when supplied by an HTTP-based transport.
 
std::optional< std::string > http_url
 Absolute HTTP request URL when supplied by an HTTP-based transport.
 

Detailed Description

Transport-neutral authentication input.

AuthRequest contains only data that can be obtained before dispatching an MCP request. Header names and remote address formats are transport-specific; implementations should normalize them before policy checks when needed.


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