tinyhumansai/openhuman · error

missing value for --auth-token

Error message

missing value for --auth-token

What it means

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.

Source

Thrown at src/openhuman/mcp/server/stdio.rs:65

                bind_host = args
                    .get(index + 1)
                    .ok_or_else(|| anyhow::anyhow!("missing value for --host"))?
                    .clone();
                index += 2;
            }
            "--port" => {
                let raw = args
                    .get(index + 1)
                    .ok_or_else(|| anyhow::anyhow!("missing value for --port"))?;
                port = raw
                    .parse()
                    .map_err(|_| anyhow::anyhow!("invalid --port value `{raw}`"))?;
                index += 2;
            }
            "--auth-token" => {
                let token = args
                    .get(index + 1)
                    .ok_or_else(|| anyhow::anyhow!("missing value for --auth-token"))?;
                if token.trim().is_empty() {
                    bail!("--auth-token must not be empty");
                }
                auth_token = Some(token.trim().to_string());
                index += 2;
            }
            "-h" | "--help" => {
                print_help();
                return Ok(());
            }
            other => bail!("unknown mcp arg: {other}"),
        }
    }

    init_mcp_logging(verbose);

    let rt = tokio::runtime::Builder::new_multi_thread()
        .enable_all()

View on GitHub (pinned to 7491200858)

Solutions

  1. Pass the token: --auth-token <value>
  2. Omit the flag if the deployment does not require bearer auth
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/mcp/server/stdio.rs:65 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/8187b3bbde6663d1. Report an issue: GitHub.