Skip to main content
Welcome back — this lesson extends the previous demonstration by showing how MCP servers can send asynchronous progress and notification messages back to clients during long-running or multi-step tool executions. Recap: MCP Inspector acts as a client. In the MCP model every AI application has a host, and a host can contain one or many clients. Each client connects to exactly one server — that is how an MCP server is modeled. Running the demo server
  • Start the shipment-tracker server used in this lesson:
If the server is running, you can call its exposed tools (for example, the “Get Shipment Status” tool visible in the browser tools UI). Example tool response when requesting shipment PL-4417:
Example server console output:
Why server progress/notifications matter
  • Simple requests may complete instantly, but many useful server tasks involve multiple steps or take significant time. In these cases it’s helpful for the server to notify the client about progress (e.g., “started lookup”, “processing records”, “finished”).
  • MCP servers can send server-to-client notifications using the server context object (ctx) and its report_progress method.
Server-side example: reporting progress Below is a compact server tool implementation that calls ctx.report_progress twice to indicate two steps: lookup started and lookup completed.
How progress reporting works
  • Call: await ctx.report_progress(progress, total=..., message="...").
  • Each call sends a server-to-client notification containing:
    • progress — current progress value (you determine semantics: step index, percent, etc.).
    • total — total number of steps or maximum progress value.
    • message — a human-readable description of what’s happening.
  • In the example above, we used 1 and 2 to express “first of two steps” and “second of two steps”.
Progress notification fields (summary) Registering a progress token in mcp.json
  • To allow clients to correlate progress notifications with the right server, include a progressToken in your server entry within mcp.json. This metadata token is attached to the server configuration and the client will see it in notifications.
Example mcp.json entry:
Representative notification sequence the client receives
  • When the client spawns or connects to the configured server, progress notifications will include the token so the client can match notifications to the correct server/tool invocation.
Progress start notification:
Progress completion notification:
Final tool response (the shipment record):
Key points
  • The server sends asynchronous server-to-client progress notifications while the client initiates the tool/call.
  • Progress notifications and the final tool response are independent messages; use progressToken to associate them with the correct server invocation.
  • You control the meaning of progress and total (step indexes, percentage, or custom semantics).
The server can only send notifications to the client (e.g., progress updates). The client is the only entity that can initiate tool calls. Use metadata.progressToken in mcp.json so the client can correlate server notifications with the corresponding server instance.
Links and references

Watch Video