(ctx: Context)
| 41 | |
| 42 | @mcp.tool() |
| 43 | async def narrate(ctx: Context) -> str: |
| 44 | await ctx.debug("d") # pyright: ignore[reportDeprecated] |
| 45 | await ctx.info("i") # pyright: ignore[reportDeprecated] |
| 46 | await ctx.warning("w") # pyright: ignore[reportDeprecated] |
| 47 | await ctx.error("e") # pyright: ignore[reportDeprecated] |
| 48 | return "done" |
| 49 | |
| 50 | async def collect(params: LoggingMessageNotificationParams) -> None: |
| 51 | received.append(params) |