{"record":{"id":"51e29ae394ee5738","repo":"tinyhumansai/openhuman","slug":"missing-value-for-transport","errorCode":null,"errorMessage":"missing value for --transport","messagePattern":"missing value for --transport","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/mcp/server/stdio.rs","lineNumber":38,"sourceCode":"\npub fn run_stdio_from_cli(args: &[String]) -> Result<()> {\n    let mut verbose = false;\n    let mut transport = McpTransport::Stdio;\n    let mut bind_host = \"127.0.0.1\".to_string();\n    let mut port: u16 = 9300;\n    let mut auth_token: Option<String> = None;\n\n    let mut index = 0usize;\n    while index < args.len() {\n        match args[index].as_str() {\n            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                index += 1;\n            }\n            \"--transport\" => {\n                let value = args\n                    .get(index + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --transport\"))?;\n                transport = match value.as_str() {\n                    \"stdio\" => McpTransport::Stdio,\n                    \"http\" => McpTransport::Http,\n                    other => bail!(\"unknown --transport value `{other}` (expected stdio or http)\"),\n                };\n                index += 2;\n            }\n            \"--host\" => {\n                bind_host = args\n                    .get(index + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --host\"))?\n                    .clone();\n                index += 2;\n            }\n            \"--port\" => {\n                let raw = args\n                    .get(index + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --port\"))?;","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/mcp/server/stdio.rs#L20-L56","documentation":"CLI argument parsing in run_stdio_from_cli (the `openhuman mcp` / `mcp-server` entry, compiled even when the mcp feature is off): `--transport` was given as the last argument with no following value. It is a usage error, not a runtime failure — the value must be `stdio` or `http`; re-run with e.g. `--transport http`.","triggerScenarios":"Thrown at src/openhuman/mcp/server/stdio.rs:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the value: --transport stdio or --transport http","Check for a missing space or split flag/value in the command line"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}