(ctx: Context)
| 78 | |
| 79 | @mcp.tool() |
| 80 | async def crunch(ctx: Context) -> str: |
| 81 | await ctx.report_progress(1, 3) |
| 82 | await ctx.report_progress(2, 3, "halfway there") |
| 83 | return "crunched" |
| 84 | |
| 85 | async def on_progress(progress: float, total: float | None, message: str | None) -> None: |
| 86 | received.append((progress, total, message)) |
nothing calls this directly
no test coverage detected