part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
Progress tracking is optional and is enabled by the client by including a progressToken in the request. The server may then emit notifications/progress while it works.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {
"name": "index_repo", "arguments": {}, "_meta": { "progressToken": "abc123", "…": "…" } } }
{ "jsonrpc": "2.0", "method": "notifications/progress", "params": {
"progressToken": "abc123", "progress": 50, "total": 100, "message": "Reticulating splines..." } }
progress MUST increase with each notification, even if total is unknown.progress and total MAY be floating-point.message SHOULD be human-readable, relevant information.total.Over HTTP, progress notifications travel on the request's response stream (never on the listen). Over stdio, they are interleaved on stdout and correlated by progressToken.
A client MAY reset its timeout on receiving progress. With the Tasks extension, the progress of a long operation is obtained with tasks/get (status and statusMessage), although progressToken remains valid for the lifetime of the task in the legacy design.
progressToken just like the ids: the host chooses its token; you assign your own towards the server and map it back.progressToken, do not invent one: the server must not emit progress nobody asked for, and you should not generate it.1. Who decides whether a request receives progress notifications?
Without a progressToken the server sends no progress.
2. What constraint applies to the progress value?
Monotonically increasing, even without a known total; it may be floating-point.
3. Which stream do progress notifications travel on over HTTP?
They are request-scoped.