Skip to content

How to add authorization HTTP header? #9

@yegor256

Description

@yegor256

Your MCP proxy is awesome, thanks for sharing it! Now, I'm trying to do something like this:

  "mcpServers": {
    "example": {
      "command": "npx",
      "args": [
        "mcp-server-and-gw", 
        "https://example.com/",
        "AUTH_TOKEN=foo"
      ]
    }
  }

Here, AUTH_TOKEN is the HTTP header to be sent to the example.com server with every HTTP request. Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions