Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/mcp-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ where
};
// Log incoming message here before serde conversion to
// track incomplete chunks which are not valid JSON
tracing::info!(json = %line, "incoming message");
tracing::debug!(json = %line, "incoming message");

// Parse JSON and validate message format
match serde_json::from_str::<serde_json::Value>(&line) {
Expand Down Expand Up @@ -158,7 +158,7 @@ where
let request_json = serde_json::to_string(&request)
.unwrap_or_else(|_| "Failed to serialize request".to_string());

tracing::info!(
tracing::debug!(
request_id = ?id,
method = ?request.method,
json = %request_json,
Expand Down Expand Up @@ -188,7 +188,7 @@ where
let response_json = serde_json::to_string(&response)
.unwrap_or_else(|_| "Failed to serialize response".to_string());

tracing::info!(
tracing::debug!(
response_id = ?response.id,
json = %response_json,
"Sending response"
Expand Down
2 changes: 1 addition & 1 deletion examples/servers/src/axum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async fn sse_handler(State(app): State<App>) -> Sse<impl Stream<Item = Result<Ev
// it's 4KB
const BUFFER_SIZE: usize = 1 << 12;
let session = session_id();
tracing::info!(%session, "sse connection");
tracing::debug!(%session, "sse connection");
let (c2s_read, c2s_write) = tokio::io::simplex(BUFFER_SIZE);
let (s2c_read, s2c_write) = tokio::io::simplex(BUFFER_SIZE);
app.txs
Expand Down