Skip to content

Ability to update the authorization header of an MCP #5542

@utezduyar

Description

@utezduyar

Feature Type

I cannot use LiveKit Agent MCP functionality without it

Feature Description

We have an MCP that sits in front of our cloud APIs. The MCP requires bearer token which is passed on to the cloud APIs. These tokens are short lived, in the range of minutes.

The authorization header can be set with mcp.MCPServerHTTP constructor. However, there is no way to update the header later on. Our workaround is to add a new MCP which A) we are not sure if there is service interruption in between, B) We use lots of tokens re-initializing the MCP.

It should be pretty easy to offer the ability to update the Authorization header.

What do you think? Do you have other concerns regarding updating the header?

Workarounds / Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions