Interface DispatchContext

All Superinterfaces:
ChannelContext, InteractionContext
All Known Implementing Classes:
DefaultDispatchContext, NoopInteractionContext

@InternalApi public interface DispatchContext extends ChannelContext
  • Method Details

    • engine

      ServerEngine engine()
      Returns the owning ServerEngine.
    • setLoggingLevel

      void setLoggingLevel(LoggingLevel level)
      Sets the logging level for the current session; no-op when no session is bound.
    • getLoggingLevel

      @Nullable LoggingLevel getLoggingLevel()
      Returns the logging level for the current session, or null when unset or session-less.
    • setPermittedLogLevel

      void setPermittedLogLevel(@Nullable LoggingLevel level)
      Sets the log level this specific request permits (from _meta.../logLevel, protocols without sessions). Unlike setLoggingLevel(dev.tachyonmcp.api.server.domain.LoggingLevel), this is request-scoped, not session-scoped.
    • getPermittedLogLevel

      @Nullable LoggingLevel getPermittedLogLevel()
      Returns the log level this specific request permits, or null if it set none.
    • responseMapper

      ProtocolResponseMapper responseMapper()
      Returns the protocol response mapper for the current protocol version.
    • requestMapper

      ProtocolRequestMapper requestMapper()
      Returns the protocol request mapper for the current protocol version.
    • outboundStream

      @Nullable OutboundSseStream outboundStream()
      Returns the outbound SSE stream, or null if not yet upgraded.
    • setOutboundStream

      void setOutboundStream(@Nullable OutboundSseStream stream)
      Sets the outbound SSE stream for this dispatch.