-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Unexpected end of JSON input #1014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you share MCP configuration file? |
|
Same error here, any resolution @daBee ? |
Nothing yet. |
I am receiving this while building a STDIO to SSE bridge. Judging by the response time I don't think the webserver can response fast enough before this error is sent by the Claude client. Can one receiving this error confirm that their MCP server is sending a response before receiving this within the log? |
I've just asked the |
So funny enough I just resolved my own bug. It turns out the bridge I was using was forwarding a blank response from the SSE server because the SSE server is required to send 202 Accepted (no body). The STDIO bridge would receive this and forward the blank message back to Claude Desktop as a response to the "initialize" method being invoked and Claude seems to be trying to parse that blank message as a JSON. I was at first thinking it was a timing issue initially. In my project I simply added And it resolved the issue. Now it appears I have a working Console STIDO -> SSE bridge in c#. Note: I hope my comments are on topic, I am not attempting to POST hijack. :) |
Hi @daBee I know its been ages since you opened this, but if you're still trying to resolve this I'm curious if you found what cause for your error was. I was having similar issues when my database wasn't running when I thought it was, so if you're still looking to fix this, then it could help to share more details on how your database is set up. In general I think this server could use more useful error or debug logs since the connection closed error is very generic. |
It's a LAN |
I am seeing the same error when trying to integrate with aws athena mcp server with cursor. |
Describe the bug
Cannot connect & Errors on Claude Desktop launched.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I thought it would have the ability to connect properly. Errors up front and no working connection.
Logs
see above
Additional context
Checked the
json
in theconfig
file and everything seems legit.The text was updated successfully, but these errors were encountered: