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

Method info

src/mcp/server/mcpserver/context.py:296–298  ·  view source on GitHub ↗

Send an info log message.

(self, data: Any, *, logger_name: str | None = None)

Source from the content-addressed store, hash-verified

294
295 @deprecated("The logging capability is deprecated as of 2026-07-28 (SEP-2577).", category=MCPDeprecationWarning)
296 async def info(self, data: Any, *, logger_name: str | None = None) -> None:
297 """Send an info log message."""
298 await self.log("info", data, logger_name=logger_name) # pyright: ignore[reportDeprecated]
299
300 @deprecated("The logging capability is deprecated as of 2026-07-28 (SEP-2577).", category=MCPDeprecationWarning)
301 async def warning(self, data: Any, *, logger_name: str | None = None) -> None:

Callers 15

message_handlerFunction · 0.80
run_sessionFunction · 0.80
handle_get_streamMethod · 0.80
_handle_sse_responseMethod · 0.80
_handle_reconnectionMethod · 0.80
update_claude_configFunction · 0.80
installFunction · 0.80
runMethod · 0.80
run_serverMethod · 0.80
terminateMethod · 0.80

Calls 1

logMethod · 0.95

Tested by 12

logging_toolMethod · 0.64
growFunction · 0.64
narrateFunction · 0.64
millFunction · 0.64
announceFunction · 0.64
announceFunction · 0.64
countFunction · 0.64
burstFunction · 0.64
holdFunction · 0.64
interruptFunction · 0.64
test_tool_with_loggingFunction · 0.64
test_reconnectionFunction · 0.64