litellm/tests/test_litellm/proxy/_experimental/mcp_server
michelligabriele ffc89e4ef6
fix(mcp): add AWS SigV4 auth for Bedrock AgentCore MCP servers (#22782)
* fix(mcp): add AWS SigV4 auth for Bedrock AgentCore MCP servers

Add aws_sigv4 auth type to MCP client via httpx.Auth subclass that
signs each request with SigV4 using botocore. Enables mcp_servers
config to connect to AgentCore-hosted MCP servers.

* docs(mcp): add AWS SigV4 auth documentation for Bedrock AgentCore

Add dedicated docs page for configuring MCP servers with AWS SigV4
authentication, update MCP overview with aws_sigv4 auth type and
config example, and link from Bedrock AgentCore provider docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(mcp): address Greptile review — requires_request_body, full header signing, health check

- Add requires_request_body = True to MCPSigV4Auth so httpx buffers the
  request body before calling auth_flow (prevents empty body hash for
  streaming requests)
- Pass all request headers to AWSRequest for canonical SigV4 signing
  instead of only Content-Type
- Exclude aws_sigv4 from health check skip logic since it has its own
  credential fields (not authentication_token)
- Fix docs: mark aws_access_key_id/aws_secret_access_key as optional
  (falls back to boto3 credential chain)
- Add test for requires_request_body flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Krish Dholakia <krrishdholakia@gmail.com>
2026-03-10 11:11:20 -07:00
..
auth fix: include mcp_tool_permissions server ids in allowed mcp servers (#22311) 2026-03-02 19:21:11 +05:30
guardrail_translation fix(tests): Add missing mocks for MCP IP filtering and updated APIs (#20652) 2026-02-07 11:30:49 -08:00
test_byok_oauth_endpoints.py feat(proxy): client-side provider API key precedence for Anthropic /v1/messages 2026-03-06 18:20:46 +05:30
test_discoverable_endpoints.py fix: Missing OAuth session state. Please retry 2026-02-24 14:22:38 +05:30
test_jwt_mcp_enforcement.py fix(tests): update MCP tests broken by user permissions commit (#21462) 2026-02-19 02:09:11 -03:00
test_jwt_mcp_simple.py [Bug] Ensure MCP permissions are enforced when using JWT Auth (#20383) 2026-02-03 19:13:13 -08:00
test_mcp_cost_calculator.py [Feat] Add MCP Cost Tracking (#12385) 2025-07-07 21:08:10 -07:00
test_mcp_custom_fields.py feat: add UI support for configuring meta URLs 2026-01-02 15:07:37 +09:00
test_mcp_debug.py fix(tests): resolve MCP test isolation failures in parallel execution 2026-02-18 14:08:48 -03:00
test_mcp_discovery.py feat: MCP server discovery UI (#21079) 2026-02-12 17:59:21 -08:00
test_mcp_metadata_preservation.py Feat/mcp preserve tool metadata calltoolresult (#17561) 2025-12-05 16:15:22 -08:00
test_mcp_server_manager.py fix(mcp): don't auto-detect M2M OAuth from field presence (#23187) 2026-03-10 10:59:49 -07:00
test_mcp_server.py fix(mcp): OpenAPI tool listing and execution for relative URLs and camelCase 2026-03-10 11:34:23 +05:30
test_mcp_sigv4_auth.py fix(mcp): add AWS SigV4 auth for Bedrock AgentCore MCP servers (#22782) 2026-03-10 11:11:20 -07:00
test_mcp_stale_session.py Return 200 response for stale dlete requests from client 2026-02-12 19:21:14 +05:30
test_oauth2_token_cache.py [Feat] MCP Oauth2 Fixes - Add support for MCP M2M Oauth2 support (#20788) 2026-02-09 17:35:11 -08:00
test_openapi_to_mcp_generator.py fix(mcp): resolve $ref params and path-level params in OpenAPI spec parsing (#22952) 2026-03-06 18:02:48 -08:00
test_rest_endpoints.py MCP fixes 2026-02-11 18:07:24 -08:00
test_semantic_tool_filter.py Fix litellm/tests/test_litellm/proxy/_experimental/mcp_server/test_semantic_tool_filter.py tests 2026-02-03 15:01:10 +05:30
test_ui_session_utils.py fix: mcp deepcopy error 2025-12-16 07:02:07 +09:00