ProgressReporter
- struct ProgressReporter : struct Progress
Reporter - Bases:
Says that a call is still running, to a client that asked to be told.
Description#
A wait can hold a request for a minute, and without this the client cannot tell that from a server that has died — so it either shows nothing or gives up. MCP's answer is
notifications/progress, which a client opts into by putting aprogressTokenin a request's_meta. Measured against the Codex CLI, which sends one on everytools/call.Silent when no token was sent: an unsolicited notification is a protocol error, not a courtesy.
Members2#
- silent: static let silent: Progress
Reporter property Reports nothing, for a caller with no client behind it. - init(token:emit:) method