spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

mcp: support auth by request params

Open lambochen opened this issue 6 months ago • 5 comments
trafficstars

Support a way to auth client-server connection by request params.

I think it's necessary, such as, When using Claude Desktop to connect to a remote MCP Server, only one URL can be filled in. If identity authentication and authorization are implemented, passing information from the request parameters is a good choice.

Claude mcp config example:

{
  "mcpServers": {
    "mcp-remote-server-example": {
      "url": "http://127.0.0.1:8080/sse" 
    }
  }
}

support request params such as:

{
  "mcpServers": {
    "mcp-remote-server-example": {
      "url": "http://127.0.0.1:8080/sse?key=value" 
    }
  }
}

lambochen avatar Apr 25 '25 15:04 lambochen