Documentation
¶
Index ¶
Constants ¶
View Source
const MCPSessionContextKey = ContextKey("mcp_session")
MCPSessionContextKey is the context key for storing MCP ServerSession
Variables ¶
This section is empty.
Functions ¶
func HandleK8sError ¶
HandleK8sError sends appropriate MCP log messages based on Kubernetes API error types. operation should describe the operation (e.g., "pod access", "deployment deletion").
Types ¶
type Level ¶
type Level int
Level represents MCP log severity levels per RFC 5424 syslog specification. https://modelcontextprotocol.io/specification/2025-11-25/server/utilities/logging#log-levels
const ( // LevelDebug is for detailed debugging information. LevelDebug Level = iota // LevelInfo is for general informational messages. LevelInfo // LevelNotice is for normal but significant events. LevelNotice // LevelWarning is for warning conditions. LevelWarning // LevelError is for error conditions. LevelError // LevelCritical is for critical conditions. LevelCritical // LevelAlert is for conditions requiring immediate action. LevelAlert // LevelEmergency is for system unusable conditions. LevelEmergency )
Log levels from least to most severe, per MCP specification.
Click to show internal directories.
Click to hide internal directories.