- Added special handling for HumanAgent_Chat tool calls to prevent Node.js undici 5-minute timeout - Send HTTP headers immediately with Transfer-Encoding: chunked to stop headersTimeout - Implement 4-minute keepalive mechanism writing space character to reset bodyTimeout - Allows indefinite wait times for human responses in tool calls - Tested successfully with 35+ minute wait time without timeout Resolves issue where VS Code MCP client would cancel tool calls after ~5-6 minutes with error 'The user cancelled the tool call' due to undici hardcoded timeouts.
What
This extension provides VSCode Github Copilot Aagent a HumanAgent_Chat MCP tool that forces AI assistants to communicate through a human agent instead of giving direct responses. When an AI uses this tool, it opens a chat session where humans can respond in real-time.
Why
The AI Agent is encouraged to discuss with you before running off to do its own thing - if its part way through iterating through on a problem it can stop and ask you a question - it reduces requests considerably, helps avoid runaway agent, allows you to manage multiple VSCode agents working in multiple workspaces from one web page. Allows you to append useful reminders to each response.
How it works
Just install it and its ready to go.
For more information see https://github.com/3DTek-xyz/HumanAgent-MCP/blob/master/README-Additional.md
Demo
Complete demonstration of the HumanAgent MCP extension in action - showing real-time human-AI collaboration
