{"record":{"id":"a93d0af07ab52bf2","repo":"Hmbown/CodeWhale","slug":"unsupported-mcp-transport-transport-supported-a93d0a","errorCode":null,"errorMessage":"Unsupported MCP transport '{transport}'. Supported values: sse","messagePattern":"Unsupported MCP transport '(.+?)'\\. Supported values: sse","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/mcp.rs","lineNumber":1539,"sourceCode":"    }\n}\n\nfn is_legacy_sse_transport(config: &McpServerConfig) -> bool {\n    config\n        .transport\n        .as_deref()\n        .map(|transport| transport.trim().eq_ignore_ascii_case(\"sse\"))\n        .unwrap_or(false)\n}\n\npub fn validate_mcp_transport(transport: Option<&str>) -> Result<()> {\n    let Some(transport) = transport else {\n        return Ok(());\n    };\n    if transport.trim().eq_ignore_ascii_case(\"sse\") {\n        return Ok(());\n    }\n    anyhow::bail!(\"Unsupported MCP transport '{transport}'. Supported values: sse\");\n}\n\nfn response_id_matches(id: Option<&serde_json::Value>, expected_id: &str) -> bool {\n    let Some(id) = id else {\n        return false;\n    };\n    if id.as_str() == Some(expected_id) {\n        return true;\n    }\n    id.as_u64()\n        .map(|id| id.to_string() == expected_id)\n        .unwrap_or(false)\n}\n\n// === McpConnection - Async Connection Management ===\n\n/// Manages a single async connection to an MCP server\npub struct McpConnection {","sourceCodeStart":1521,"sourceCodeEnd":1557,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/mcp.rs#L1521-L1557","documentation":"The legacy SSE detection path validates the optional 'transport' field of an MCP server config. Only the value 'sse' (case-insensitive) is accepted in this code path; any other value causes an immediate bail. This prevents silently misinterpreting a transport the code cannot speak.","triggerScenarios":"Setting transport to a value other than 'sse' (e.g. \"streamable-http\", \"websocket\", \"SSE \" with odd casing is fine, but \"http\" is not) in an MCP server config reaching this legacy-SSE validation.","commonSituations":"Copying an MCP config written for another client that supports 'streamable-http' or 'websocket' transports; typos like 'sse2' or 'stdio' leaking into a remote-server config.","solutions":["Set transport to \"sse\" (the only supported value here)","Remove the transport field entirely to use the default transport handling","Move the server to a stdio command-based config if it is a local server"],"exampleFix":"// before\n{ \"url\": \"https://example.com/mcp\", \"transport\": \"streamable-http\" }\n// after\n{ \"url\": \"https://example.com/mcp\", \"transport\": \"sse\" }","handlingStrategy":"validation","validationCode":"const SUPPORTED: [&str; 1] = [\"sse\"];\nif let Some(t) = cfg.transport {\n    assert!(SUPPORTED.iter().any(|s| s.eq_ignore_ascii_case(t.trim())), \"unsupported transport: {t}\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only set transport when the value is \"sse\"","Copy configs from this project's docs, not other clients","Validate configs at load time"],"tags":["mcp","config","unsupported-transport"],"backgroundTag":"invalid-enum-value","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}