Skip to content

Opt-in OAuth HTTP exception for trusted local development hosts #1911

Description

@sudarsunperu

Inspector v2 rejects OAuth token endpoints using http://host.docker.int, even when the endpoint is reachable only from a local Docker development environment.

Please consider an explicit opt-in mechanism, such as:

MCP_INSPECTOR_ALLOW_INSECURE_OAUTH_HOSTS=host.docker.internal

or a per-server configuration field. The override should:

  • be disabled by default;
  • require exact hostname matching;
  • never allow arbitrary hosts or CIDRs;
  • display a prominent warning;
  • apply only to development/local environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to authorizationdockerRelated to the docker imageenhancementNew feature requestv2Issues and PRs for v2

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions