
🚀 New Features
Authorization System
PR #149 by @pietrozullo A comprehensive OAuth2 and Bearer token authentication framework has been added to MCP-Use, enabling secure access control for MCP servers and clients. The system includes automatic OAuth discovery, dynamic client registration, and secure token storage. Key features include file-based token storage, automatic token refresh, OAuth metadata discovery, and secure callback handling for the authorization code flow. For detailed usage examples and configuration options, see the Authentication documentation.🐛 Bug Fixes & Improvements
HTTP Connector Error Handling
PR #279 by @renvins Significantly improved error handling in HTTP connectors with better authentication error detection and graceful fallback between transport methods. The system now properly handles HTTP 401/403/407 errors and provides clearer diagnostic messages when authentication fails.Empty Tool Result Handling
PR #273 by @renvins Fixed a critical issue where empty tool results (content: []
) were causing validation errors in the LangChain adapter. The system now correctly processes empty results and handles cases where tools legitimately return no content.
JSON Schema Enum Validation
PR #270 by @Amrithesh-Kakkoth Resolved a validation issue injsonschema_to_pydantic
conversion where enum fields without explicit type declarations were failing validation. The fix automatically adds "type": "string"
to enum fields, ensuring proper Pydantic model generation.
Documentation Fix
PR #266 by @renvins Corrected a typo in the README documentation whereastream
was incorrectly referenced instead of stream
, improving clarity for developers following the streaming examples.