mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-16 06:16:57 +00:00
AgentCore MCP server endpoints require the Accept header to contain both application/json and text/event-stream per the MCP specification (Streamable HTTP transport). Without this header, requests are rejected with a 406 Not Acceptable error (JSON-RPC code -32011). Sets the Accept header at the top of sign_request() so both JWT/Bearer and SigV4 authentication paths include it.