Skip to content

Feature request: Support OIDC end_session_endpoint #1046

Closed as not planned
Closed as not planned

Description

@akriaueno

Summary

In MCP Inspector, the "Clear OAuth State" action removes locally stored OAuth state (tokens / discovered metadata), but it does not end the user’s OpenID Connect SSO session at the Identity Provider (i.e., it does not invoke the OIDC end_session_endpoint).

This is not necessarily a bug — but the current behavior makes it hard to reliably test "sign out / switch user" flows when an IdP session remains active.

Why this matters

When testing MCP servers protected by an OIDC-capable IdP (e.g., Keycloak, Auth0, etc.), clearing local tokens is not equivalent to logging out of the IdP session:

  • Re-authentication may silently reuse the active IdP SSO session (no login prompt).
  • User-switching tests can be unreliable (you can end up as the same user again).

Context

MCP Authorization defines OAuth-based authorization for MCP servers, but it does not define a protocol-level logout/sign-out operation. Logout is typically handled at the client UX level and/or by the IdP.

Since Inspector performs interactive login flows in the browser, it would be helpful to clarify what Inspector intends to support (or explicitly not support) regarding IdP session logout.

Current behavior

  1. Complete an OAuth/OIDC login via Inspector (user is authenticated).
  2. Click "Clear OAuth State".
  3. Connect again.
  4. The IdP session is still active, so the browser returns to the app without a fresh login prompt.

Desired behavior

(A) Add an optional "OIDC Logout" action (only when end_session_endpoint is available via OIDC discovery), OR
(B) Keep "Clear OAuth State" as local-only but document clearly that it does not log out of the IdP SSO session. (plus any recommended workarounds?)

Proposed UX (if A is acceptable)

  • Keep existing "Clear OAuth State" semantics as local-only.
  • Add a separate, explicit button such as "Logout from IdP (OIDC)" when end_session_endpoint is present.
  • Clicking it would navigate (top-level) to end_session_endpoint (best-effort).
    • If an id_token is available, include id_token_hint.
    • Optionally support post_logout_redirect_uri (may require IdP configuration).

Environment

  • Inspector version: v0.19.0
  • Browser: Google Chrome 144
  • IdP: Keycloak 26.4.2
  • Auth flow: Authorization Code + PKCE

References

Activity

  1. added
    closed-v1-deprecated
    on Aug 1, 2026
  2. cliffhall commented on Aug 1, 2026

    @cliffhall
    Member

    Closing: v1 is deprecated.

    Thank you for reporting this, and apologies for the long wait for a response.

    v1 will receive security fixes only — this issue describes a functionality, compatibility, or usability problem rather than a vulnerability, so it is being closed against v1. This is not a judgment on whether the problem is real — it's a consequence of the v1 line being frozen. This is happening as part of #1872.

    If this still happens in v2, we'd genuinely like to know. v2 is a complete rewrite — three clients over a shared core — so many v1 behaviours no longer exist in the same form. Please open a fresh issue against v2 with steps to reproduce, and we'll look at it. Note that we accept external contributions as issues rather than pull requests; maintainers handle design and implementation through a prompt-driven workflow. See CONTRIBUTING.md.

    Thanks for taking the time to report it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-v1-deprecatedv1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions