MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / mill

Function mill

tests/interaction/mcpserver/test_context.py:137–140  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

135
136 @mcp.tool()
137 async def mill(ctx: Context) -> str:
138 await ctx.report_progress(1, 3)
139 await ctx.info("milling done") # pyright: ignore[reportDeprecated]
140 return "milled"
141
142 async def collect(message: IncomingMessage) -> None:
143 received.append(message)

Callers

nothing calls this directly

Calls 2

infoMethod · 0.80
report_progressMethod · 0.45

Tested by

no test coverage detected