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

Function chatter

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

Source from the content-addressed store, hash-verified

250
251 @mcp.tool()
252 async def chatter(ctx: Context) -> str:
253 await ctx.debug("noise") # pyright: ignore[reportDeprecated]
254 await ctx.error("signal") # pyright: ignore[reportDeprecated]
255 return "done"
256
257 async def collect(params: LoggingMessageNotificationParams) -> None:
258 received.append(params)

Callers

nothing calls this directly

Calls 2

debugMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected