Step 7 of 7

Wrap up and keep going

Review what you built and find the resources for taking Tasks further.

You now have both halves of a working Tasks setup. Your MCP server answers a long tools/call with a task handle instead of making the client wait, and your MCP client follows that handle until the result arrives. Because the server saves each task before it returns the handle, a new connection can pick the task up by its ID, and the worker keeps going after the original request has ended. You also saw that a tool error arrives inside a completed task, so a client has to check both the task status and the tool result.

Nothing in that design is specific to images. To use it for report generation, a data export or any other slow tool, replace the batch operation and its input and result schemas. The capability declaration, the saved task and the polling loop stay the same.

Keep going

Step 7

Ready to continue?

Mark this step complete when you have finished the checks above.

Checking saved progress…

Find it across ATM

Search All Things MCP

ESC

Search the practical layer around the protocol.

Browse Guides Read the Blog

Your ATM account

Sign in or create an account

Continue with GitHub. If you’re new, your ATM account will be created automatically.