B Harper accdbdc602 Fix tool call timeout by implementing chunked response with keepalive
- 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.
2025-11-19 15:32:59 +11:00

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

HumanAgent MCP Extension Demo

Complete demonstration of the HumanAgent MCP extension in action - showing real-time human-AI collaboration

Medium Article

https://medium.com/@harperbenwilliam/stop-the-ai-chaos-why-human-in-the-loop-beats-fully-autonomous-coding-agents-eeb0ae17fde9

S
Description
An editable MCP tool exposing 'YOU' a human as a tool the AI can call for discussion mid flow.
Readme
9.5 MiB
Languages
TypeScript 98%
JavaScript 2%