What is the difference between logging callbacks and progress callbacks in MCP?
MCP Advanced: Logging, Progress Notifications, Context Methods for Long Tasks
Audio flashcard · 0:28Nortren·
What is the difference between logging callbacks and progress callbacks in MCP?
0:28
Logging callbacks handle informational messages about what the tool is doing, like status updates such as "fetching data" or "writing report." Progress callbacks handle numerical progress indicators showing how far along the operation is out of a total. Logging callbacks are set once at the session level when creating the ClientSession, while progress callbacks are set per individual tool call. This design lets you use the same logging strategy across all tools but customize progress display for specific operations that benefit from a progress bar.
---
github.com