Description
Is your feature request related to a problem? Please describe.
I'm looking at how to integrate with .NET Aspire, where I have an MCP server on HTTP and then I want to consume that from an application using McpClient
.
Aspire allows me to pass through the endpoint using service discovery on the HttpClient
, so I can have an endpoint like https+http://mcp
, but this endpoint can't be set to SseClientTransport.Endpoint
due to this validation on the setter:
Describe the solution you'd like
I want to be able to provide a HttpClient
instance to the SseClientTransport
without also having to provide the endpoint, since the HttpClient
has the endpoint known (and it's resolved via service discovery).
Describe alternatives you've considered
My only solution is that I have to manually configure the endpoint, which defeats some of the value of using .NET Aspire here.