Skip to content

set-header in MCP server policy not available in API #211

@pferrot

Description

@pferrot
  • I have a REST API exposed as MCP server, following the documentation here
  • REST API has validate-jwt policy
  • MCP server also has validate-jwt policy
  • Problem: I cannot get the Authorizazion header to be forwarded from the MCP server to the API, even though I followed the instructions and added the necessary set-header policy as per the documentation here
    • I even tried to set hardcoded headers with various names (other than Authorization) in the MCP server policy: they are never available in the API

Can you please suggest how to set headers in the MCP server policy so they are available in API policy when using the "Expose REST API as an MCP server" feature?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions