Skip to content

[Feature: Ability to passthrough custom headers via /mcp endpoint #14141

@berri-teddy

Description

@berri-teddy

What happened?

Summary

Currently, when calling the /mcp endpoint through LiteLLM, custom headers passed in from the client (e.g., LangGraph agent) are not propagated to the underlying MCP server. Only the Authorization header seems to be handled.
Summary

Currently, when calling the /mcp endpoint through LiteLLM, custom headers passed in from the client (e.g., LangGraph agent) are not propagated to the underlying MCP server. Only the Authorization header seems to be handled.
Summary

Currently, when calling the /mcp endpoint through LiteLLM, custom headers passed in from the client (e.g., LangGraph agent) are not propagated to the underlying MCP server. Only the Authorization header seems to be handled.

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.75

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions