Skip to content

Connection close Issue on Claude Desktop #39

Description

@nicodeg87

Hi guys,

I tried to configure the proxy to use a MCP remote Server which is provided with stdio transport on Claude desktop. I managed to get it working, the tools are properly displayed on Claude and the first tool execution works well, but after the first execution it looks that for some reason Claude is disconnected from the MCP server.

  • The logs I see on the proxy for the stdio mcp server is:
    DEBUG:sse_starlette.sse:Got event: http.disconnect. Stop streaming.

  • The logs I see on the on Claude logs (~/Library/Logs/Claude/mcp.log)
    2025-03-24T00:26:10.587Z [info] [test-proxy] Server transport closed
    2025-03-24T00:26:10.587Z [info] [test-proxy] Client transport closed
    2025-03-24T00:26:10.588Z [info] [test-proxy] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...')in JavaScript,print('...', file=sys.stderr) in python) and it will appear in this log.
    2025-03-24T00:26:10.588Z [error] [test-proxy] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging)
    2025-03-24T00:26:10.589Z [info] [test-proxy] Client transport closed

  • This is the claude config im using (note that im running the "stdio to sse" proxy on docker):
    { "mcpServers": { "test-proxy": { "command": "docker", "args": [ "run", "--rm", "-i", "ghcr.io/sparfenyuk/mcp-proxy:latest", "http://host.docker.internal:8080/sse" ], "env": {} } } }

Note: Im doing this PoC because im planning to run the sse mcp server remotely, for now im testing it locally.

Any idea what can be causing the issue?
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions