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
Bug description
The current MCP logging implementation has several limitations:
Logging notifications are broadcast to all connected clients regardless of their interest level
There's a single global minimum logging level for the entire server
Clients cannot individually configure which log levels they want to receive
The current approach is inefficient as it sends unnecessary messages to clients
This design doesn't align with the per-session approach used for other MCP features like sampling and roots, where each client can have its own configuration.
Expected behavior
Use the exchange mechanism to send logging notifications only to specific client sessions
Track minimum logging level per client session rather than globally
Filter logging notifications at the server side based on each client's configured level
Change setLoggingLevel from a notification to a request/response pattern for proper acknowledgment
Deprecate the old broadcasting behavior.
Acceptance Criteria
Each client can set its own minimum logging level
Logging notifications below a client's minimum level are filtered out
Logging notifications at or above a client's minimum level are delivered
Ddd integration tests
Environment
Affects all MCP versions including 0.9.0-SN
…ications
Refactors the MCP logging system to use the exchange mechanism for sending
logging notifications only to specific client sessions rather than broadcasting to all clients.
- Move logging notification delivery from server-wide broadcast to per-session exchange
- Implement per-session minimum logging level tracking and filtering
- Change setLoggingLevel from notification to request/response pattern
- Deprecate global server.loggingNotification in favor of exchange.loggingNotification
- Add integration test demonstrating filtered logging notifications
Resolves#131
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
…ications
Refactors the MCP logging system to use the exchange mechanism for sending
logging notifications only to specific client sessions rather than broadcasting to all clients.
- Move logging notification delivery from server-wide broadcast to per-session exchange
- Implement per-session minimum logging level tracking and filtering
- Change setLoggingLevel from notification to request/response pattern
- Deprecate global server.loggingNotification in favor of exchange.loggingNotification
- Add integration test demonstrating filtered logging notifications
Resolves#131
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
…ications
Refactors the MCP logging system to use the exchange mechanism for sending
logging notifications only to specific client sessions rather than broadcasting to all clients.
- Move logging notification delivery from server-wide broadcast to per-session exchange
- Implement per-session minimum logging level tracking and filtering
- Change setLoggingLevel from notification to request/response pattern
- Deprecate global server.loggingNotification in favor of exchange.loggingNotification
- Add integration test demonstrating filtered logging notifications
Resolves#131
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
Bug description
The current MCP logging implementation has several limitations:
This design doesn't align with the per-session approach used for other MCP features like sampling and roots, where each client can have its own configuration.
Expected behavior
Acceptance Criteria
Environment
Affects all MCP versions including 0.9.0-SN
Related to #97
The text was updated successfully, but these errors were encountered: