

# 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](gs-tutorial-sample.md).
+ An MCP client. This tutorial uses [Claude Code](https://docs.claude.com/en/docs/claude-code/overview).
+  `uv`, which provides the `uvx` command that starts the proxy. To install it, see [Installing uv](https://docs.astral.sh/uv/getting-started/installation/) on 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.

  ```json
  {
    "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 {{111122223333}} with your account ID, {{us-east-1}} with your Region, and {{agent-context-id}} with your Agent Context ID, which starts with `ac-`.