client_error_handlingTier 1 · 70% confidence

mcp-client-error-handlin-mcp-client-cannot-receive-or-display-server-side-e-069cef11

agent: mcp

When does this happen?

IF MCP client cannot receive or display server-side error messages when a server fails (e.g., due to missing required environment variables).

How others solved it

THEN Register a notification handler for the LoggingMessageNotification schema on the client side using client.setNotificationHandler(). On the server, send error details using server.sendLoggingMessage(). This allows the client to log or display server errors, improving debuggability.

// Server side
server.sendLoggingMessage({
  level: "info",
  data: "Server started successfully",
});

// Client side
client.setNotificationHandler(LoggingMessageNotificationSchema, (notification) => {
  console.log(notification);
});

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics