Interface McpProgressReporter
Request-scoped progress reporting seam for MCP tool calls.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionProvides the progress token associated with the current request.voidreportProgress(@NonNull BigDecimal progress, @Nullable BigDecimal total, @Nullable String message) Emits an MCPnotifications/progressupdate for the current request.
-
Method Details
-
getProgressToken
Provides the progress token associated with the current request.- Returns:
- the progress token
-
reportProgress
void reportProgress(@NonNull BigDecimal progress, @Nullable BigDecimal total, @Nullable String message) Emits an MCPnotifications/progressupdate for the current request.- Parameters:
progress- the current progress valuetotal- the optional total value used to interpretprogressmessage- an optional human-readable progress message
-