Skip to main content

Module progress_wrap

Module progress_wrap 

Source
Expand description

Thin wrapper that adds start + finish progress notifications around an underlying tool’s execute() body.

This lets the MCP daemon emit notifications/progress events for a handful of long-running integration tools (Notion search, Google Drive list, etc.) without modifying those tool implementations. The wrapper delegates name/description/schema unchanged so the MCP surface sees the same tool spec as before; only the in-flight progress stream is richer.

The wrapper uses a 2-event model (start → complete) because Construct’s integration tools run as a single HTTP request under the hood — we don’t have paginated internals to tick against. That’s still more useful than silence: CLIs can show a spinner/toast the moment the call kicks off.

Structs§

ProgressEnvelope
Wrap a Tool so that execute_with_progress emits bookend events.