Open
Description
Describe the bug
When using Windsurf MCP, it gets an error.
Failed to start mcp sse client: Endpoint origin does not match connection origin localhost:5000
This doesn't happen in preview8, but happens in 9 and 10.
If you run the sample server on the latest main there is no error, but if you run the latest tag preview 10 it has the error.
To Reproduce
Steps to reproduce the behavior:
- Clone the csharp-sdk repo
- Checkout v0.1.0-preview tag
- Run the AspNetCoreSseServer
- Add this to the Windsurf mcp_config.json
"test-server": { "serverUrl": "http://localhost:5000/sse" }
- Refresh the MCP servers in Windsurf
- Get the error
- Checkout main and restart the ASP server
- Refresh the MCP servers in Windsurf the error goes away and shows the tools