|
cxxmcp 1.1.6
C++ MCP SDK
|
Logging level and notification payloads. More...
#include <optional>#include <string>#include <utility>#include "cxxmcp/core/result.hpp"#include "cxxmcp/protocol/types.hpp"Go to the source code of this file.
Classes | |
| struct | mcp::protocol::LoggingSetLevelParams |
Parameters for logging/setLevel. More... | |
| struct | mcp::protocol::LoggingMessageNotificationParams |
Parameters for notifications/message. More... | |
Enumerations | |
| enum class | mcp::protocol::LoggingLevel { Debug , Info , Notice , Warning , Error , Critical , Alert , Emergency } |
| MCP logging severity levels. More... | |
Functions | |
| core::Error | mcp::protocol::logging_json_error (std::string message) |
| Builds an InvalidRequest error for logging JSON validation failures. | |
| std::string | mcp::protocol::logging_level_to_string (LoggingLevel level) |
| Converts a logging level to its MCP string value. | |
| std::optional< LoggingLevel > | mcp::protocol::logging_level_from_string (const std::string &value) |
| Parses a logging level string. | |
| Json | mcp::protocol::logging_set_level_params_to_json (const LoggingSetLevelParams ¶ms) |
Serializes logging/setLevel params. | |
| core::Result< LoggingSetLevelParams > | mcp::protocol::logging_set_level_params_from_json (const Json &json) |
Parses logging/setLevel params. | |
| Json | mcp::protocol::logging_message_notification_params_to_json (const LoggingMessageNotificationParams ¶ms) |
| Serializes logging message notification params. | |
| core::Result< LoggingMessageNotificationParams > | mcp::protocol::logging_message_notification_params_from_json (const Json &json) |
| Parses logging message notification params. | |
Logging level and notification payloads.
MCP logging lets a client configure the minimum server log level with logging/setLevel, and lets a server emit structured log data through notifications/message.
|
strong |
|
inline |
Parses a logging level string.
|
inline |
Parses logging message notification params.
|
inline |
Parses logging/setLevel params.