mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-09 06:15:41 -05:00
- Handle text/event-stream (SSE) responses from real MCP servers (MCPClient._parse_sse_response) alongside plain JSON responses - Add e2e tests against OpenAI docs MCP server (developers.openai.com/mcp) verifying SSE parsing, tool discovery, and tool execution work with a real production MCP server - Support both api_key and oauth2 credential types on MCPToolBlock (MCPCredentials union type, _extract_auth_token helper) - Add MCPOAuthHandler implementing BaseOAuthHandler with dynamic endpoints (authorize_url, token_url) for MCP OAuth 2.1 with PKCE - Add OAuth metadata discovery to MCPClient (discover_auth, discover_auth_server_metadata) per RFC 9728 / RFC 8414 - 76 total tests: 46 unit, 11 OAuth, 14 integration, 5 e2e