(ctx: Context)
| 412 | |
| 413 | @mcp.tool() |
| 414 | async def grow(ctx: Context) -> str: |
| 415 | mcp.add_tool(extra, name="extra") |
| 416 | mcp.remove_tool("doomed") |
| 417 | await ctx.info("tool set changed") # pyright: ignore[reportDeprecated] |
| 418 | return "mutated" |
| 419 | |
| 420 | async def collect(message: IncomingMessage) -> None: |
| 421 | received.append(message) |
nothing calls this directly
no test coverage detected