Skip to content

Feature request: Support configuration of Authentication Header in CLI Mode #420

Description

@topjgc

Is your feature request related to a problem? Please describe.
For inspector UI Mode, configuration of Authorization Header for Remote SSE URL has been already supported currently. However mcp config file do not support defining Authorization Header in CLI Mode.

Describe the solution you'd like
Example mcp config support defining http headers:

{
  "mcpServers": {
    "xxxx_mcp_server": {
      "url": "https://mcp.example.com/sse",
      "headers": [
        "Authentication": <my-token-here>
      ]
    }
  }
}

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. philfreo commented on Aug 14, 2025

    @philfreo
    Contributor

    +1 - It'd be great to pass custom headers in CLI mode, or at least pass one header for auth like the UI let's you do. Specifically for remote http MCP servers.

    Image
  2. philfreo commented on Aug 14, 2025

    @philfreo
    Contributor

    I made a PR for this in #716

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

    cliIssues and PRs specific to cli modeenhancementNew feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions