{"record":{"id":"d524df11f625a571","repo":"BerriAI/litellm","slug":"missing-botocore-to-use-aws-sigv4-authentication","errorCode":null,"errorMessage":"Missing botocore to use AWS SigV4 authentication. Run 'pip install boto3'.","messagePattern":"Missing botocore to use AWS SigV4 authentication\\. Run 'pip install boto3'\\.","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"litellm/experimental_mcp_client/client.py","lineNumber":122,"sourceCode":"    for every outgoing request, enabling per-request signature computation.\n    \"\"\"\n\n    requires_request_body = True\n\n    def __init__(\n        self,\n        aws_access_key_id: str | None = None,\n        aws_secret_access_key: str | None = None,\n        aws_session_token: str | None = None,\n        aws_region_name: str | None = None,\n        aws_service_name: str | None = None,\n        aws_role_name: str | None = None,\n        aws_session_name: str | None = None,\n    ):\n        try:\n            from botocore.credentials import Credentials\n        except ImportError:\n            raise ImportError(\"Missing botocore to use AWS SigV4 authentication. Run 'pip install boto3'.\")\n        self.service_name = aws_service_name or \"bedrock-agentcore\"\n        self.region_name = aws_region_name or \"us-east-1\"\n        # Note: os.environ/ prefixed values are already resolved by\n        # ProxyConfig._check_for_os_environ_vars() at config load time.\n        # Values arrive here as plain strings.\n        if aws_role_name:\n            self.credentials = self._assume_role(\n                aws_role_name=aws_role_name,\n                aws_session_name=aws_session_name,\n                aws_access_key_id=aws_access_key_id,\n                aws_secret_access_key=aws_secret_access_key,\n                aws_session_token=aws_session_token,\n                aws_region_name=self.region_name,\n            )\n        elif aws_access_key_id and aws_secret_access_key:\n            self.credentials = Credentials(\n                access_key=aws_access_key_id,\n                secret_key=aws_secret_access_key,","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/experimental_mcp_client/client.py#L104-L140","documentation":"The MCP client's AWS SigV4 auth hook could not import botocore.credentials; the sentinel ImportError (chained from the original) tells the user to install boto3, since SigV4 request signing is impossible without it.","triggerScenarios":"Thrown at litellm/experimental_mcp_client/client.py:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install boto3: pip install boto3.","Alternatively, avoid AWS SigV4 authentication for this MCP server connection."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}