How do you handle MCP tool calls that take minutes — timeouts, progress and cancellation?
Some MCP tools run long jobs (searching a big codebase, generating a report). The client may time out, the user may cancel, or the agent may need to show progress.
What works in practice:
1. Do you return immediately with a job id and poll, or keep the call open with progress notifications?
2. What timeout do you set on the client, and how do you make a long call resumable?
3. How do you handle cancellation cleanly so the server does not keep working on an abandoned job?