Prerequisites
Make sure that you have the following:
-
The agent-context-sample Agent Context in the Active state. To create it, see Tutorial: Create a sample Agent Context and ask your first question.
-
An MCP client. This tutorial uses Claude Code
. -
uv, which provides theuvxcommand that starts the proxy. To install it, see Installing uvon the Astral website. -
AWS credentials, in a named profile or your default credential chain. The IAM identity needs the following permissions on the Agent Context.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "QueryAgentContext", "Effect": "Allow", "Action": [ "context:SearchAgentContext", "context:TraverseAgentContext", "context:AgenticRetrieve", "context:AgenticRetrieveStream" ], "Resource": "arn:aws:context:[.replaceable]us-east-1:[.replaceable]111122223333:agent-context/[.replaceable]`agent-context-id`" } ] }Replace
111122223333with your account ID,us-east-1with your Region, andagent-context-idwith your Agent Context ID, which starts withac-.