pub struct McpProgressPayload {
pub progress_token: String,
pub progress: f64,
pub total: Option<f64>,
pub message: Option<String>,
}Expand description
Progress notification payload compatible with the MCP specification’s
notifications/progress message shape.
Every field maps 1-to-1 to the MCP JSON payload so that ipckit progress events can be forwarded verbatim to any MCP gateway (Claude, OpenAI Agents SDK, Cursor, Cline, …) without a translation layer.
§Schema
{
"progressToken": "task-uuid",
"progress": 42.0,
"total": 100.0,
"message": "Rendering frame 42/100"
}Fields§
§progress_token: StringOpaque token that identifies the in-progress operation.
Consumers MUST treat this as an opaque string; its internal structure is defined by the producer.
progress: f64How much of the work has been completed so far.
The unit is left to the producer; it is only meaningful relative to
total when that field is present.
total: Option<f64>Total amount of work, if known.
None signals an indeterminate operation (spinner, not progress bar).
message: Option<String>Human-readable status message.
Implementations§
Source§impl McpProgressPayload
impl McpProgressPayload
Sourcepub fn new(
progress_token: impl Into<String>,
progress: f64,
total: Option<f64>,
message: Option<impl Into<String>>,
) -> Self
pub fn new( progress_token: impl Into<String>, progress: f64, total: Option<f64>, message: Option<impl Into<String>>, ) -> Self
Create a new MCP progress payload.
§Arguments
progress_token– opaque identifier for the in-progress operation.progress– units of work completed so far.total– total units of work, orNonefor indeterminate progress.message– optional human-readable status string.
Trait Implementations§
Source§impl Clone for McpProgressPayload
impl Clone for McpProgressPayload
Source§fn clone(&self) -> McpProgressPayload
fn clone(&self) -> McpProgressPayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more