

# Step 1: Get the connection details

The console provides the Agent Context ID and a ready-made MCP configuration.

 **To get the connection details** 

1. Open the AWS Context console, and choose **Agent context** in the navigation pane.

1. Choose **agent-context-sample**, and then choose the **Integration** tab.

1. Under **Authentication**, make sure that **AWS credentials** is selected.

1. Under **Connection details**, copy the **Agent context ID**. It starts with `ac-`.

1. Under **MCP configuration**, review the configuration. The console fills in your Agent Context’s endpoint and Region.

   ```json
   {
     "mcpServers": {
       "agent-context": {
         "command": "uvx",
         "args": [
           "mcp-proxy-for-aws",
           "https://context-mcp.us-east-1.api.aws/mcp",
           "--service", "context-mcp",
           "--region", "us-east-1"
         ],
         "env": {
           "AWS_PROFILE": "default",
           "AWS_REGION": "us-east-1"
         }
       }
     }
   }
   ```

   Set `AWS_PROFILE` to the profile that holds your credentials, or remove it to use your default credential chain.