-
Notifications
You must be signed in to change notification settings - Fork 90
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
Set longer request times for Inspector client #142
Comments
Not sure if this is a bug but the default request timeout is 10s (https://github.com/modelcontextprotocol/inspector/blob/master/client/src/lib/hooks/useConnection.ts#L23) which is why you're running into the error you've attached. You've got a few options here:
The former probably makes more sense for you 😄 |
hi @kwnath yeah I agree this is not a bug, the tag came automatically I don't know why |
Seems like a valid enhancement request, thanks! Will leave it open. |
I have the same problem, in my tool I may also make some llm calls, making the whole process take longer, which will make it difficult to debug if Inspector client limits the timeout to 10 seconds. |
I have the same problem too, in my tool I may also make some llm calls, |
我更改了超长时间后 本地调试 一直显示端口被占用了! node:events:495 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE: address already in use :::3000 �[90m at Server.setupListenHandle [as _listen2] (node:net:1817:16)�[39m �[90m at listenInCluster (node:net:1865:12)�[39m �[90m at Server.listen (node:net:1953:7)�[39m at Function.listen (/Users/bytedance/code/inspector/node_modules/�[4mexpress�[24m/lib/application.js:635:24) at �[90mfile:///Users/bytedance/code/inspector/server/�[39mbuild/index.js:149:24 Emitted 'error' event on Server instance at: �[90m at emitErrorNT (node:net:1844:8)�[39m �[90m at process.processTicksAndRejections (node:internal/process/task_queues:82:21)�[39m { code: �[32m'EADDRINUSE'�[39m, errno: �[33m-48�[39m, syscall: �[32m'listen'�[39m, address: �[32m'::'�[39m, port: �[33m3000�[39m } Node.js v18.20.3 |
10 seconds is definitely a bug. Please fix. it is literally 1 prompt away |
This PR from @TornjV restored a way to override the timeout using a query string parameter: #164 I'm going to keep this issue open since I think we should still have a UI option for usability's sake, but hopefully this option will be easier than having to change the app code to override the default. |
Describe the bug
I get
Error: Request timed out
whenever I send requests to tools that take a little bit longer to process.To Reproduce
Just use any MCP tool that takes a longer time to finish, e.g.
then run it with:
Expected behavior
I would expect the client to wait for the response up to a limit, but I don't know how to set that limit in the Inspector.
The text was updated successfully, but these errors were encountered: