You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the type annotation of the message parameter in Context.log(),
Context.debug(), Context.info(), Context.warning(), and Context.error()
from str to Any.
The MCP spec defines the log data field as:
data: unknown - "Any JSON serializable type is allowed here"
This allows MCP servers to send rich structured notifications:
ctx.info({"event": "progress", "percent": 50})
The parameter name is kept as message for backward compatibility.
Fixes#397
0 commit comments