fix: Small improvement to progress demo (#898)

Signed-off-by: Dawid Nowak <nowakd@gmail.com>
This commit is contained in:
Dawid Nowak 2026-06-11 00:28:33 +01:00 • committed by GitHub
commit 52e731bec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,7 @@ use rmcp::{
mod common;
use common::progress_demo::ProgressDemo;
use tracing_subscriber::EnvFilter;
const HTTP_BIND_ADDRESS: &str = "127.0.0.1:8001";
@ -20,6 +21,10 @@ async fn main() -> anyhow::Result<()> {
.nth(1)
.unwrap_or_else(|| env::var("TRANSPORT_MODE").unwrap_or_else(|_| "stdio".to_string()));
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.init();
match transport_mode.as_str() {
"stdio" => run_stdio().await,
"http" | "streamhttp" => run_streamable_http().await,