-
Notifications
You must be signed in to change notification settings - Fork 429
On second reconnection Inspector errors out #273
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 confirm, was able to replicate. |
@pulkitsharma07 shall I work on this? |
Don't have to ask me for permission 😄 , go for it.. |
Hey @kavinkumar807 I usually test the inspector with the
![]() |
@cliffhall started working on this, When the server dies, this is the message. Not good. yeah will improve this message as part of the PR |
@kavinkumar807 I didn't mean the message was bad or needed amending. Its that we are attempting to set headers after sending to the client. Some weeks ago I remember a discussion in a PR or issue (haven't been able to find since) that indicated that we were not allowing WWW-Authenticate headers to come back to the client and talk of sticking them in somewhere. This is what I think may be not good. Also @janswist upgrade inspector to 0.8.2 and try it, please. |
@cliffhall understood! |
Also, follow the above steps to repro. With the 0.8.2 inspector. I tried with two different servers, ![]() ![]() They only stopped with I believe this is because the call was coming on with an unconnected (previous) sessionId. When the server gets a new I just fixed it. @kavinkumar807 Didn't mean to swoop this, I was already looking at it trying to rule out the server side. Ruling out the server led directly to the solution ![]() |
@cliffhall No problem, Glad you’ve fixed it. |
Unfortunately, the issue persists 😕 |
@janswist Subsequent to that suggestion, I fixed the issue. It will be available in a 0.8.3 release shortly after it has been merged. (see above) |
I tried new 0.10.2 version of Inspector, but now I can't connect at all and there are no errors from the server as well Here's the code of my MCP server: https://github.com/janswist/mcp-dexscreener/blob/main/index-sse.js and I run it with |
Hi @janswist! I often am running the inspector from the project where I've built it locally. To test this, I ran it from another project folder, invoking the 0.10.2 from npm. I ran my own
|
Hi @cliffhall thanks for sharing - it didn't worked for me unfortunately. Are you able to run my MCP server tho? It's like one file (the |
@janswist I would suggest testing it against our reference implementation: If it works against server-everything, then you can assume it's your server, and possibly the code in the reference implementation will give you a clue about what's going on. |
Describe the bug
I have an MCP server that is working locally with Claude Desktop. Now I attempted to make it remote - at first connection Inspector immediately connects and lists all the tools. When I click
Reconnect
I getConnection Error, is your MCP server running?
(v. 0.8.1)Despite error Express server didn't shut or anything. After I restart Express it's working again.
To Reproduce
Steps to reproduce the behavior:
Reconnect
(or disconnect and connect again)Expected behavior
To work as on the first time.
Logs
Console logs (v.0.8.0):
Console.logs (v.0.8.1) - they changed slightly after updating Inspector:
Express.js log:
Additional context
Maybe related to #250
The text was updated successfully, but these errors were encountered: