Skip to content

Support dynamic headers/authorization for McpToolset #32

@a613

Description

@a613

** Please make sure you read the contribution guide and file the issues in the
right place. **
Contribution guide.

Is your feature request related to a problem? Please describe.

The McpToolset, specifically StreamableHTTPConnectionParams, needs to support dynamic headers and/or authorization params to be sent to the MCP server. A static hardcoded header param exists now on StreamableHTTPConnectionParams of type Record<string, unknown> | undefined but that isn't enough to be able to send generated and refreshed tokens and other dynamic information.

Describe the solution you'd like

The McpToolset should support a function arg to header or ideally more comprehensive authentication support in the way that the Python ADK does.

Describe alternatives you've considered

There is no alternative that I found; this must be added.

Additional context

N/A

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