Skip to content

AspNetCoreSseServer sample does not work on App Service with Windows only Linux #205

@oxkr

Description

@oxkr

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:

  1. deploy AspNetCoreSseServer to azure web app using windows sku
  2. 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions