View a markdown version of this page

Use the AWS SDKs and agent frameworks - AWS Context

Use the AWS SDKs and agent frameworks

AWS Context doesn’t require a framework plugin. Every framework connects through MCP or through the AWS SDKs, and the request runs with the credentials of the calling process.

The SDK client is named context: boto3.client("context"), @aws-sdk/client-context, and software.amazon.awssdk.services.context. The SDKs expose SearchAgentContext, TraverseAgentContext, ExecuteSql, and AgenticRetrieveStream. AgenticRetrieve is available only as an MCP tool. Default SDK read timeouts are too short for agentic retrieval (Boto3 60 seconds, Java 30 seconds); set at least 120 seconds. The JavaScript SDK v3 sets no request timeout by default, so the example in To consume the stream (JavaScript, SDK v3) sets none.