ci: simplify conformance while running against both spec versions (#1060)

This commit is contained in:
Alex Hancock 2026-07-27 18:32:07 -04:00 • committed by GitHub
commit 1f63e43479
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 62 deletions

View file

@ -943,8 +943,7 @@ fn preferred_protocol_versions() -> Vec<ProtocolVersion> {
preferred_versions
}
/// Runs draft stateless scenarios through the public discover lifecycle and
/// Streamable HTTP transport.
/// Runs scenarios through the discover lifecycle and Streamable HTTP transport.
async fn run_discover_client(server_url: &str) -> anyhow::Result<()> {
let preferred_versions = preferred_protocol_versions();
let transport = StreamableHttpClientTransport::from_uri(server_url);

View file

@ -1740,10 +1740,7 @@ async fn main() -> anyhow::Result<()> {
tracing::info!("Starting conformance server on {}", bind_addr);
let server = ConformanceServer::new();
let stateless = std::env::var_os("STATELESS").is_some();
let config = StreamableHttpServerConfig::default()
.with_legacy_session_mode(!stateless)
.with_json_response(stateless);
let config = StreamableHttpServerConfig::default();
let service = StreamableHttpService::new(
move || Ok(server.clone()),
LocalSessionManager::default().into(),