Skip to content

← All questions

sdods mcp --http exits immediately with HTTP mode needs a bearer token

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Trying to reach the server from a container on the same box, so stdio is out.

bash
sdods mcp --http --port 4001
text
AUTH_FAILED  HTTP mode needs a bearer token.
  → Pass --token <secret> (dev) or set SDODS_MCP_TOKEN. Production deployments use scoped tokens
    from `sdods tokens create` via the web server.

Exit code 2. I did not expect auth on localhost. Is there a way to turn it off for a dev box?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related