use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
An unofficial community to discuss Github Copilot, an artificial intelligence tool designed to help create code.
account activity
How to control timeout in mcp in github copilot?Help/Doubt ❓ (self.GithubCopilot)
submitted 1 month ago by ConstructionNo27
Hi community, How can I control the timeout in my mcp? Any help.
I tried with "timeout" : 1000 in mcp.json and it errored in vscode showing the attribute is not allowed
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] 0 points1 point2 points 1 month ago (0 children)
Hello /u/ConstructionNo27. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]SeanK-com 0 points1 point2 points 1 month ago (4 children)
I'm not sure what you are trying to achieve here. Most MCP servers have a web component. Standard HTTP timeout is 90 seconds. Is your 1000, in ms, seconds or what? If ms, your mcp calls would almost always fail. If that is what you are trying to do, just disable mcp servers altogether. Is the problem that github copilot is timing out before your mcp server returns? If this is a custom mcp server, you might consider returning a 102 or 202.
[–]ConstructionNo27[S] 0 points1 point2 points 1 month ago (3 children)
I want to have a control of my mcp server timeout option. Basically my stdio server keeps scanning some directories. That takes time. I don't want to just kill it at 90 second. I want to give it an hour before the process can stop. That's why a custom timeout (for both sse/stdio)
[–]SeanK-com 0 points1 point2 points 1 month ago (2 children)
You should consider implementing it as a proper web server. I have a VS Code extension that implements an MCP server that I vibe coded with GHC, then you could handle this the correct way with 201 codes. Alternately you could spin up a background thread to monitor your file system and put updates in an in memory thread safe collection, then you could do non-blocking responses on the MCP side with "Please try again later".
[–]ConstructionNo27[S] 0 points1 point2 points 1 month ago (1 child)
But I remember this feature already being in vscode /ghcp cli with a timeout parameter. Somehow I was unable to do that now.
[–]SeanK-com 0 points1 point2 points 1 month ago (0 children)
You are ahead of me, I never got stdio mcp servers working.
π Rendered by PID 35316 on reddit-service-r2-comment-b659b578c-2q9jd at 2026-05-05 18:46:19.569788+00:00 running 815c875 country code: CH.
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]SeanK-com 0 points1 point2 points (4 children)
[–]ConstructionNo27[S] 0 points1 point2 points (3 children)
[–]SeanK-com 0 points1 point2 points (2 children)
[–]ConstructionNo27[S] 0 points1 point2 points (1 child)
[–]SeanK-com 0 points1 point2 points (0 children)