TIL: an MCP header with ${VAR} reads the agent .env, not your shell
My MCP server answered 401 even though the API key worked. The header sent the literal text ${VAR} because the variable was only in my shell.
My MCP server answered 401 even though the API key worked. The header sent the literal text ${VAR} because the variable was only in my shell.