ReadonlygatewayReadonlygatewayReadonlyserverReadonlygetCurrent MCP session ID (may be updated by helpers via setMcpSessionId)
ReadonlynextIncrement the JSON-RPC request counter and return the next ID
ReadonlysetPersist a new session ID (or clear it on 401)
ReadonlysetMark the underlying connection as (dis)connected
Adapter passed by MCPConnection to gateway helpers. Lets the helpers read & mutate the few connection-level fields they care about without pulling in the whole connection class.