Send a `notifications/message` log entry on the standalone stream. Best-effort.
(self, level: LoggingLevel, data: Any, logger: str | None = None, *, meta: Meta | None = None)
| 297 | |
| 298 | @deprecated("The logging capability is deprecated as of 2026-07-28 (SEP-2577).", category=MCPDeprecationWarning) |
| 299 | async def log(self, level: LoggingLevel, data: Any, logger: str | None = None, *, meta: Meta | None = None) -> None: |
| 300 | """Send a `notifications/message` log entry on the standalone stream. Best-effort.""" |
| 301 | params: dict[str, Any] = {"level": level, "data": data} |
| 302 | if logger is not None: |
| 303 | params["logger"] = logger |
| 304 | await self.notify("notifications/message", _notification_params(params, meta)) |
| 305 | |
| 306 | async def send_tool_list_changed(self, *, meta: Meta | None = None) -> None: |
| 307 | await self.notify("notifications/tools/list_changed", _notification_params(None, meta)) |
nothing calls this directly
no test coverage detected