Skip to content

MCP server hangs on invalid arguments #311

@conniey

Description

@conniey

Repro Steps

Start the service but with invalid arguments. In this case, "--transport sse" is not supported.

dotnet .\azmcp.dll server start --transport sse --mode all --read-only

Expected

It exits with some error.

Actual

Hangs. Looks like an exception is also being thrown:

Exception thrown: 'System.IO.IOException' in System.Net.Sockets.dll
Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingserver-Azure.McpAzure.Mcp.Servertools-CoreAZMCP Core functionality that all other tools build on top of

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions