Interface DispatchContext
- All Superinterfaces:
ChannelContext,InteractionContext
- All Known Implementing Classes:
DefaultDispatchContext,NoopInteractionContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.tachyonmcp.api.runtime.InteractionContext
InteractionContext.Lifecycle -
Method Summary
Modifier and TypeMethodDescriptionengine()Returns the owningServerEngine.@Nullable LoggingLevelReturns the logging level for the current session, ornullwhen unset or session-less.@Nullable LoggingLevelReturns the log level this specific request permits, ornullif it set none.@Nullable OutboundSseStreamReturns the outbound SSE stream, ornullif not yet upgraded.Returns the protocol request mapper for the current protocol version.Returns the protocol response mapper for the current protocol version.voidsetLoggingLevel(LoggingLevel level) Sets the logging level for the current session; no-op when no session is bound.voidsetOutboundStream(@Nullable OutboundSseStream stream) Sets the outbound SSE stream for this dispatch.voidsetPermittedLogLevel(@Nullable LoggingLevel level) Sets the log level this specific request permits (from_meta.../logLevel, protocols without sessions).Methods inherited from interface dev.tachyonmcp.core.runtime.ChannelContext
enableExtension, protocol, protocolVersion, session, sessionId, setLifecycle, setSessionMethods inherited from interface dev.tachyonmcp.api.runtime.InteractionContext
client, get, isExtensionEnabled, lifecycle, notifications, sendRequest, set
-
Method Details
-
engine
ServerEngine engine()Returns the owningServerEngine. -
setLoggingLevel
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, ornullwhen unset or session-less. -
setPermittedLogLevel
Sets the log level this specific request permits (from_meta.../logLevel, protocols without sessions). UnlikesetLoggingLevel(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, ornullif 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, ornullif not yet upgraded. -
setOutboundStream
Sets the outbound SSE stream for this dispatch.
-