diff --git a/apps/mcp-proxy-server/src/main.rs b/apps/mcp-proxy-server/src/main.rs index cc949a24..2f83e7a6 100644 --- a/apps/mcp-proxy-server/src/main.rs +++ b/apps/mcp-proxy-server/src/main.rs @@ -2,7 +2,7 @@ use anyhow::Result; use clap::Parser; use rmcp::{ServiceExt, transport::stdio}; use server::mcp_proxy_client::get_mcp_client; -use tracing_subscriber::{self, EnvFilter}; +// use tracing_subscriber::{self, EnvFilter}; pub mod server; @@ -16,15 +16,21 @@ struct Args { #[tokio::main] async fn main() -> Result<()> { - tracing_subscriber::fmt() - .with_env_filter(EnvFilter::from_default_env().add_directive(tracing::Level::DEBUG.into())) - .with_target(false) - .with_thread_ids(true) - .with_file(true) - .with_line_number(true) - .with_writer(std::io::stderr) - .with_ansi(false) - .init(); + /* + In most cases we can use this tracing subscriber using the stderr as writer + BUT + there are some apps like IntelliJ products that flag an mcp server as errored + when found any error in the logs. + */ + // tracing_subscriber::fmt() + // .with_env_filter(EnvFilter::from_default_env().add_directive(tracing::Level::DEBUG.into())) + // .with_target(false) + // .with_thread_ids(true) + // .with_file(true) + // .with_line_number(true) + // .with_writer(std::io::stderr) + // .with_ansi(false) + // .init(); tracing::info!("Starting MCP Dockmaster Proxy Server");