inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Missing or invalid access token error when using HOST and ALLOWED_ORIGINS

Open Kiblyn11 opened this issue 1 month ago • 0 comments

Inspector Version

Latest

Describe the bug

Auth issue when using specific hostname

To Reproduce

HOST=test.local ALLOWED_ORIGINS=http://test.local:1234 npx @modelcontextprotocol/inspector --server-url https://mcp.notion.com/mcp

It opens Inspector with token Click on "Connect" See error

Error from MCP server: Error: Error POSTing to endpoint (HTTP 401): {"error":"invalid_token","error_description":"Missing or invalid access token"}
    at StreamableHTTPClientTransport.send (file:[...]@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:299:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)

Expected behavior

No auth issue

  • Browser: Latest Chrome

Additional context

Using DANGEROUSLY_OMIT_AUTH=true does not fix it

Kiblyn11 avatar Nov 19 '25 11:11 Kiblyn11