Interface McpLoggableSession

All Superinterfaces:
McpSession
All Known Implementing Classes:
McpServerSession, McpStreamableServerSession, McpStreamableServerSession.McpStreamableServerSessionStream, MissingMcpTransportSession

public interface McpLoggableSession extends McpSession
An McpSession which is capable of processing logging notifications and keeping track of a min logging level.
Author:
Dariusz Jędrzejczyk
  • Method Details

    • setMinLoggingLevel

      void setMinLoggingLevel(McpSchema.LoggingLevel minLoggingLevel)
      Set the minimum logging level for the client. Messages below this level will be filtered out.
      Parameters:
      minLoggingLevel - The minimum logging level
    • isNotificationForLevelAllowed

      boolean isNotificationForLevelAllowed(McpSchema.LoggingLevel loggingLevel)
      Allows checking whether a particular logging level is allowed.
      Parameters:
      loggingLevel - the level to check
      Returns:
      whether the logging at the specified level is permitted.