Skip to content

Security: make token preview in openapi_server_info fully disableable #30

Description

@francescobianco

Summary

openapi_server_info currently returns a masked preview of the active token. In shared demos, screenshots, support threads, or copied logs, even partial token disclosure may be undesirable.

Reproduction

  1. Call openapi_server_info with a configured token.
  2. Inspect the response payload.
  3. Notice that a masked token preview is included.

Expected

A safe-by-default mode should allow operators to disable token previews entirely.

Actual

The token preview is always part of the diagnostics payload when available.

Suggested direction

A small env flag such as MCP_REDACT_TOKENS=full would likely be enough.

Activity

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

    good first issueGood for newcomershelp wantedExtra attention is neededquestionFurther information is requested

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions