claude-agent-sdk-python icon indicating copy to clipboard operation
claude-agent-sdk-python copied to clipboard

Permission tool

Open kevincraft-toast opened this issue 6 months ago • 1 comments

Hello! I'm building my own workflows on top of Claude Code using this SDK. Some of these workflows require a human in the loop. Everything works Ok except for permission checks! I built an MCP server to handle permission checks. It pops up a prompt for a human to approve/deny. It works great, except the MCP tool call times out after 5 minutes. I can't always expect a human to respond within 5 minutes. It would be nice to either (A) configure the timeout for this particular tool (and possibly set it to infinite?), or (B) support permission handling another way, like via a new message type. I'd very much prefer the latter since it would support indefinite timelines and it seems like it would fit naturally into the conversation flow.

kevincraft-toast avatar Jul 28 '25 20:07 kevincraft-toast

+1 this is pretty critical to building a production system

raghavchandra123 avatar Oct 27 '25 14:10 raghavchandra123