Release 1.6.0
This release introduces Bearer Token authentication for Python MCP servers, adds on_initialize middleware for intercepting MCP handshakes, and includes several important bug fixes.
New Features
Bearer Token Authentication
PR #841 by @pietrozullo Added Bearer Token authentication support for Python MCP servers, enabling secure token-based authentication for server connections.On Initialize Middleware
PR #769 by @renvins Introduced the ability to intercept MCP handshakes withon_initialize middleware, allowing custom logic during the initialization phase of MCP connections.
Bug Fixes
DNS Rebinding Protection
PR #825 by @pietrozullo Fixed DNS rebinding protection for cloud and proxy deployments, improving security for production environments.Debug and Pretty Print JSONRPC Improvements
PR #814 by @pietrozullo Improved the debug andpretty_print_jsonrpc behavior for better debugging experience.
ConnectionManager Timeout
PR #726 by @Incharajayaram Added a timeout mechanism toConnectionManager.stop() to prevent hanging connections during shutdown.