Checklist
- Confirm bearer format for
Authorizationheaders. - Verify header casing and interpolation behavior in your client.
- Validate that environment variables are loaded in the process that issues MCP requests.
- Confirm API key/workspace pairing aligns with the target operation.
Typical 401 response
Header shape: correct vs broken
Patterns that often fail
- Mixing static and prompted secrets in the same config file.
- Copying examples with unresolved placeholders into production configs.
- Assuming WebSocket clients support custom headers during upgrade.
Client env-var checks
- Cursor: open MCP logs pane and confirm
UNDISK_API_KEYis interpolated. - Claude Desktop: verify generated stdio command resolves env vars in your shell profile.
- VS Code: confirm prompt-backed secret was saved for the active profile.