McpLogMessageHandler typedef

McpLogMessageHandler = void Function(String serverId, Map<String, dynamic> params)

Callback invoked when a notifications/message (MCP logging spec) arrives. Hosts typically push the payload into a LogBuffer for the in-app log viewer.

Implementation

typedef McpLogMessageHandler = void Function(
    String serverId, Map<String, dynamic> params);