Skip to content

Unable to initiate oauth for server. #255

@zelch

Description

@zelch

My company has an internal MCP server, which supports the OAuth authentication flow.

If I use the current version of @modelcontextprotocol/inspector everything works fine.

But with mcphub I'm getting some rather unhelpful errors, and I'm not sure how to debug things from here:

  [00:56:38]  'Internal Server' error: Unexpected token '<', "<!DOCTYPE "... is not valid JSON  
  [00:56:38]  'Internal Server' failed to start connection with http and sse transports: Unexpected token '<', "<!DOCTYPE "... is not valid JSON  
  [00:56:38]  'Internal Server' failed to start connection: Unexpected token '<', "<!DOCTYPE "... is not valid JSON  
  [00:56:38]  'Internal Server' transport closed  

(And since it's a strictly internal server, I can't do the helpful thing of putting the URL in the bug report so that you can try to reproduce, sorry about that.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions