authoravatarclover caruso<git@paperclover.net>2026-10-24 18:30:23-07:00
committeravatarclover caruso<git@paperclover.net>2026-10-24 19:01:23-07:00
logc5e52191dea81c828071dc071f3599ef90e16cf1
treece86ec9292f46951db9ed2427c7ef9ef40cbb133
parent2f957cc719b6462fdeae120ffc10bbba049b8e91
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

Report MCP server errors instead of expiring the connection

Any failure while authenticating an MCP request, including a full disk failing the token-renewal write, answered 401 and told clients to discard a valid token. Only authentication failures answer 401 now. Assisted-by: claude-opus-5.5

1 files changed, 1 insertions(+), 0 deletions(-)

dashboard/src/mcp.rs+1
...@@ -574,6 +574,7 @@ pub fn router<H: rmcp::ServerHandler>(...@@ -574,6 +574,7 @@ pub fn router<H: rmcp::ServerHandler>(
574 }574 }
575 next.run(request).await575 next.run(request).await
576 }576 }
577 Err(error) if error.status != 401 => error.into_response(),
577 Err(_) => (578 Err(_) => (
578 StatusCode::UNAUTHORIZED,579 StatusCode::UNAUTHORIZED,
579 [(580 [(