Skip to content

Missing state in OAuth requests #442

@phuctm97

Description

@phuctm97

Describe the bug

The MCP inspector is not sending state query param with OAuth requests, which makes it incompatible with some OAuth servers that require state

To Reproduce
Steps to reproduce the behavior:

  1. Create an MCP server with OAuth implementation that requires state
  2. Connect to the MCP server in the inspector
  3. Go through the OAuth flow
  4. Got an error invalid_state because there is no state query parameter sent in the /authorize request

Expected behavior

state should always be sent to ensure maximum compatibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to authorizationbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions