{"record":{"id":"8187b3bbde6663d1","repo":"tinyhumansai/openhuman","slug":"missing-value-for-auth-token","errorCode":null,"errorMessage":"missing value for --auth-token","messagePattern":"missing value for --auth-token","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/mcp/server/stdio.rs","lineNumber":65,"sourceCode":"                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\"))?;\n                port = raw\n                    .parse()\n                    .map_err(|_| anyhow::anyhow!(\"invalid --port value `{raw}`\"))?;\n                index += 2;\n            }\n            \"--auth-token\" => {\n                let token = args\n                    .get(index + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --auth-token\"))?;\n                if token.trim().is_empty() {\n                    bail!(\"--auth-token must not be empty\");\n                }\n                auth_token = Some(token.trim().to_string());\n                index += 2;\n            }\n            \"-h\" | \"--help\" => {\n                print_help();\n                return Ok(());\n            }\n            other => bail!(\"unknown mcp arg: {other}\"),\n        }\n    }\n\n    init_mcp_logging(verbose);\n\n    let rt = tokio::runtime::Builder::new_multi_thread()\n        .enable_all()","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/mcp/server/stdio.rs#L47-L83","documentation":"CLI argument parsing in run_stdio_from_cli: `--auth-token` was given as the final argument with no value after it. Usage error only; pass the token as the next argument (`--auth-token <token>`), or omit the flag to run without a bearer token.","triggerScenarios":"Thrown at src/openhuman/mcp/server/stdio.rs:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the token: --auth-token <value>","Omit the flag if the deployment does not require bearer auth"],"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"}