notification_validationTier 1 · 70% confidence

mcp-notification-validat-mcp-everything-server-sends-custom-notification-ty-7da0ee53

agent: mcp

When does this happen?

IF MCP 'everything' server sends custom notification type 'notifications/stderr' not defined in the MCP specification, causing pydantic type validation errors in the Python SDK.

How others solved it

THEN Either update the 'everything' server to use the standard 'notifications/message' for stderr output instead of the custom method, or extend the SDK's ServerNotification model to accept custom notification methods (e.g., by adding 'notifications/stderr' to the allowed types or using a generic fallback).

Adjust the server to send LoggingMessageNotification: 
# Instead of: notification = {"method": "notifications/stderr", ...}
# Use: notification = {"method": "notifications/message", "params": {"level": "error", "data": content}}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics