Skip to content

Support custom HTTP headers for MCP SSE 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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions