You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AspNetCoreSseServer sample does not work on App Service with Windows only Linux #205
Describe the bug
AspNetCoreSseServer sample does not repond to sse when called from an mcp client like inspector
To Reproduce
Steps to reproduce the behavior:
deploy AspNetCoreSseServer to azure web app using windows sku
run mcp client or mcp inspector to domain.azurewebsites.net/sse
Expected behavior
able to list and call tools
Logs
info: McpClient.Program[0]
This is an information message.
info: ModelContextProtocol.Client.McpClientFactory[77006853]
Creating client for Client (AspNetCoreSse: AspNetCoreSse)
info: ModelContextProtocol.Protocol.Transport.SseClientTransport[1308141342]
Transport reading messages for Client (SSE) for (AspNetCoreSse: AspNetCoreSse)
info: ModelContextProtocol.Client.McpClient[1066850556]
Sending request payload for Client (AspNetCoreSse: AspNetCoreSse): {"jsonrpc":"2.0","id":"dc7e87737f59418da2cc19c20bc6553f-1","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"AspNetCoreSseClient","version":"1.0.0"}}}
info: ModelContextProtocol.Client.McpClient[521904914]
Sending request for Client (AspNetCoreSse: AspNetCoreSse) with method initialize
dbug: ModelContextProtocol.Protocol.Transport.SseClientTransport[7018]
SSE transport POST accepted for Client (SSE) for (AspNetCoreSse: AspNetCoreSse) with message ID "dc7e87737f59418da2cc19c20bc6553f-1"
dbug: ModelContextProtocol.Client.McpClient[7015]
Request sent for Client (AspNetCoreSse: AspNetCoreSse) with method initialize, ID "dc7e87737f59418da2cc19c20bc6553f-1". Waiting for response. fail: ModelContextProtocol.Client.McpClient[368000267]
Client Client (AspNetCoreSse: AspNetCoreSse) initialization timeout fail: ModelContextProtocol.Client.McpClient[403959396]
Client server Client (AspNetCoreSse: AspNetCoreSse) initialization error
ModelContextProtocol.Client.McpClientException: Initialization timed out
at ModelContextProtocol.Client.McpClient.ConnectAsync(CancellationToken cancellationToken)
info: ModelContextProtocol.Client.McpClient[471153486]
Activity
stephentoub commentedon Apr 3, 2025
cc: @halter73
stephentoub commentedon Apr 4, 2025
@halter73, is this addressed by #208 ?
halter73 commentedon Apr 4, 2025
It is!