Problem statement
https://modelcontextprotocol.io/specification/draft/server/utilities/logging
The Model Context Protocol (MCP) provides a standardized way for servers to send structured log messages to clients. Clients can control logging verbosity by setting minimum log levels, with servers sending notifications containing severity levels, optional logger names, and arbitrary JSON-serializable data.
Currently there's no way to output debugging information to the client
Proposed solution
Expose logger from xmcp that will support methods as debug, info, error, etc. (corresponding to RFC 5424) as described here: https://modelcontextprotocol.io/specification/draft/server/utilities/logging#log-levels
Receive initial logging/setLevel request from client and store level
The logger should decide to send a message or not, depending on the log level and the method called
Package
xmcp (core framework)
Problem statement
https://modelcontextprotocol.io/specification/draft/server/utilities/logging
Currently there's no way to output debugging information to the client
Proposed solution
Expose
loggerfromxmcpthat will support methods asdebug,info,error, etc. (corresponding to RFC 5424) as described here: https://modelcontextprotocol.io/specification/draft/server/utilities/logging#log-levelsReceive initial
logging/setLevelrequest from client and store levelThe logger should decide to send a message or not, depending on the log level and the method called
Package
xmcp (core framework)