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
- The finished project has every source file and test, so you can compare it with your own or use it as a starting point.
- How MCP Tasks Work explains the same lifecycle without the build, which is useful for sharing with teammates.
- The Tasks overview covers the situations Tasks is designed for.
- The Tasks extension specification is the reference for every message and status.
- The input handling guide shows how to support tasks that need a person's answer partway through, which this example does not.
- The Tasks TypeScript API documents the lifecycle helpers for building a larger application.
Step 7
Ready to continue?
Mark this step complete when you have finished the checks above.
Checking saved progress…

