Describe the bug
I'm writing an MCP server that has a very long wait in its runtime, and this is intended. However, copilot cli always times out:
● <some stuff>
✗ codebase-analyzer
MCP error -32001: Request timed out
The mcp-config.json timeout field is not respected:
{
"mcpServers": {
"<thing>": {
"type": "local",
"command": "node",
"tools": [
"*"
],
"args": [
"C:/Users/juliecover/Code/<whatever>.js"
],
"timeout": 600000
}
}
}
I haven't quite timed it but it seems to timeout after about 2 minutes or so.
Affected version
0.0.332 Commit: ace227c
Steps to reproduce the behavior
- Setup an STDIO MCP server that takes a long time to return - upwards of 5 minutes.
- Configure it in copilot CLI
- Have the model call the MCP server
It will time out, even with an extended timeout in the mcp-config.json
Expected behavior
The extended timeout in the mcp-config.json should be respected.
Additional context
This is really messing me up - my 1p builds take way longer than the timeout time, so this is really limiting the usefulness of the CLI for me. Please fix soon! Thanks.
Describe the bug
I'm writing an MCP server that has a very long wait in its runtime, and this is intended. However, copilot cli always times out:
The mcp-config.json timeout field is not respected:
I haven't quite timed it but it seems to timeout after about 2 minutes or so.
Affected version
0.0.332 Commit: ace227c
Steps to reproduce the behavior
It will time out, even with an extended timeout in the
mcp-config.jsonExpected behavior
The extended timeout in the mcp-config.json should be respected.
Additional context
This is really messing me up - my 1p builds take way longer than the timeout time, so this is really limiting the usefulness of the CLI for me. Please fix soon! Thanks.