Skip to content

Support custom HTTP headers for MCP transport #3948

@quaff

Description

@quaff

It would be nice if we could configure custom headers, for example, we could pass OAuth access token like this:

spring.ai.mcp.client:
  sse:
    connections:
      server1:
        url: http://localhost:8080
        headers:
          Authorization: "Bearer ***"

I'd like to contribute if the proposal is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions