AWS Bedrock AgentCore
AWS Bedrock AgentCore provides a complete platform for deploying and scaling AI agents with nine core services. This skill covers service selection, deployment patterns, and integration workflows using AWS CLI.
How to use this skill: Identify the service(s) the user needs from the table below, then read the corresponding service README before responding. For cross-service patterns (credentials, security, registry integration), check the Cross-Service Resources section. Verify AWS-specific details using the MCP documentation tools.
AWS Documentation Requirement
Always verify AWS facts using MCP tools before answering. Two documentation sources are available:
- AgentCore-specific docs (
mcp__acdocs__*) — bundled with this plugin, provides search_agentcore_docs and fetch_agentcore_doc for AgentCore documentation
- General AWS docs (
mcp__aws-mcp__* or mcp__*awsdocs*__*) — loaded via the aws-mcp-setup dependency for broader AWS documentation
Prefer the AgentCore docs MCP for AgentCore-specific questions. If MCP tools are unavailable, guide the user through the aws-mcp-setup skill's setup flow.
Available Services
| Service |
Use For |
Documentation |
| Gateway |
Converting REST APIs to MCP tools |
services/gateway/README.md |
| Runtime |
Deploying and scaling agents |
services/runtime/README.md |
| Memory |
Managing conversation state |
services/memory/README.md |
| Identity |
Credential and access management |
services/identity/README.md |
| Code Interpreter |
Secure code execution in sandboxes |
services/code-interpreter/README.md |
| Browser |
Web automation and scraping |
services/browser/README.md |
| Observability |
Tracing and monitoring |
services/observability/README.md |
| Agent Registry |
Catalog, discover, and govern agents/tools |
services/registry/README.md |
| Evaluations |
Automated agent quality assessment (LLM-as-a-Judge) |
services/evaluations/README.md |
Common Workflows
Deploying a Gateway Target
Read services/gateway/README.md before implementing — Gateway setup involves deployment strategies, IAM, and auth choices that vary significantly by use case.
- Upload OpenAPI schema to S3
- (API Key auth only) Create credential provider and store API key
- Create gateway target linking schema (and credentials if using API key)
- Verify target status and test connectivity
Credential provider is only needed for API key authentication. Lambda targets use IAM roles, and MCP servers use OAuth.
Managing Credentials
Read cross-service/credential-management.md first — credential patterns differ across services and getting them wrong causes hard-to-debug auth failures.
- Use Identity service credential providers for all API keys
- Link providers to gateway targets via ARN references
- Rotate credentials quarterly through credential provider updates
- Monitor usage with CloudWatch metrics
Discovering Agents and Tools (Agent Registry)
Read services/registry/README.md first — the registry has governance workflows, MCP endpoint options, and sync modes that affect how records become discoverable.
- Create a registry to catalog your organization's AI resources
- Register resources (MCP servers, agents, skills, custom) with descriptive metadata
- Submit records for approval (auto-approve for dev, manual for production)
- Search and discover approved resources via CLI or MCP endpoint
Agent Registry moved to its own agent-registry namespace on 2026-08-06 — separate endpoints, IAM actions, ARNs, CLI, and record schema from the rest of AgentCore. The bedrock-agentcore namespace shuts down 2026-09-17. See services/registry/README.md.
Evaluating Agent Quality
Read services/evaluations/README.md first — evaluators, scoring modes, and IAM setup vary between online monitoring and on-demand testing.
- Instrument the agent with OpenTelemetry (ADOT) for trace collection
- Create evaluators (use built-in like
Builtin.Helpfulness or create custom)
- Set up online evaluation with sampling rate and data source
- Monitor scores in CloudWatch dashboards; investigate low-scoring sessions
Monitoring Agents
Read services/observability/README.md for the full monitoring setup — observability configuration depends on your Runtime protocol and framework choice.
- Enable observability for agents
- Configure CloudWatch dashboards for metrics
- Set up alarms for error rates and latency
- Use X-Ray for distributed tracing
Deep-Dive References
Each service README (linked in the table above) contains sub-links to getting-started guides, troubleshooting, and advanced topics. Start with the service README and follow pointers from there.
Advanced Runtime & OAuth References
Deep-dive reference documentation for Runtime internals, deployment, OAuth integration, and communication protocols. Read these when building production Runtime deployments or configuring OAuth authentication:
- OAuth Integration:
references/agentcore-oauth-integration.md - Three-layer OAuth architecture (Inbound JWT, Outbound Credential Provider, Gateway OAuth), Cognito configuration, supported IdPs, end-to-end CDK examples
- Runtime Core Mechanisms:
references/agentcore-runtime-core.md - Container contract, MicroVM Session model, Agent lifecycle (per-request vs per-session), tool integration (MCP/HTTP), startup flow
- Runtime Deployment & Operations:
references/agentcore-runtime-deploy.md - CDK deployment (L1/L2 constructs), multi-Runtime architecture, security model, observability (OTel/CloudWatch), BedrockAgentCoreApp vs FastAPI comparison
- Runtime Protocol Reference:
references/agentcore-runtime-protocols.md - HTTP, MCP, A2A, AG-UI protocol specifications with container contracts, endpoint specs, and selection guide
Runnable Script Templates
Production-ready templates in scripts/ for common deployment patterns:
| Script |
Protocol |
Description |
Dockerfile.runtime-template |
— |
ARM64 multi-stage Docker build for AgentCore Runtime |
runtime-fastapi-template.py |
HTTP |
FastAPI Runtime with SSE streaming and MCPClient |
mcp-server-template.py |
MCP |
MCP Server with Streamable HTTP transport |
a2a-server-template.py |
A2A |
A2A Server with Agent Card discovery |
agui-server-template.py |
AG-UI |
AG-UI Server with standard AG-UI event stream |
gateway-custom-resource-lambda.py |
— |
CDK Custom Resource Lambda for Gateway lifecycle |
Cross-Service Resources
For patterns and best practices that span multiple AgentCore services:
- Credential Management:
cross-service/credential-management.md - Unified credential patterns, security practices, rotation procedures
- Registry Integration:
cross-service/registry-integration.md - Cross-service patterns with Gateway, Identity, Runtime
- Security & Resource Policies:
cross-service/security-resource-policies.md - Resource-based policies, cross-account access, VPC/IP restrictions
- Agent Deployment with S3 Files:
cross-service/agent-persistence-patterns.md - Deploy Strands Agents, OpenClaw, Claude Agent SDK on AgentCore with S3 Files and Session Storage
Additional Resources
1---2name: aws-agentic-ai3description: AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale. Use when working with any AgentCore service including Gateway, Runtime, Memory, Identity, Code Interpreter, Browser, Observability, Agent Registry, or Evaluations. Covers agent deployment, MCP tool integration, credential management, agent discovery, governance workflows, and automated quality assessment. Essential when user mentions AgentCore, agent runtime, agent registry, agent evaluation, MCP gateway, deploy agent, register MCP server, discover agents, evaluate agent quality, agent credentials, or wants to build, deploy, catalog, or monitor AI agents on AWS.4---56# AWS Bedrock AgentCore78AWS Bedrock AgentCore provides a complete platform for deploying and scaling AI agents with nine core services. This skill covers service selection, deployment patterns, and integration workflows using AWS CLI.910**How to use this skill**: Identify the service(s) the user needs from the table below, then read the corresponding service README before responding. For cross-service patterns (credentials, security, registry integration), check the Cross-Service Resources section. Verify AWS-specific details using the MCP documentation tools.1112## AWS Documentation Requirement1314Always verify AWS facts using MCP tools before answering. Two documentation sources are available:15- **AgentCore-specific docs** (`mcp__acdocs__*`) — bundled with this plugin, provides `search_agentcore_docs` and `fetch_agentcore_doc` for AgentCore documentation16- **General AWS docs** (`mcp__aws-mcp__*` or `mcp__*awsdocs*__*`) — loaded via the `aws-mcp-setup` dependency for broader AWS documentation1718Prefer the AgentCore docs MCP for AgentCore-specific questions. If MCP tools are unavailable, guide the user through the `aws-mcp-setup` skill's setup flow.1920## Available Services2122| Service | Use For | Documentation |23|---------|---------|---------------|24| **Gateway** | Converting REST APIs to MCP tools | [`services/gateway/README.md`](services/gateway/README.md) |25| **Runtime** | Deploying and scaling agents | [`services/runtime/README.md`](services/runtime/README.md) |26| **Memory** | Managing conversation state | [`services/memory/README.md`](services/memory/README.md) |27| **Identity** | Credential and access management | [`services/identity/README.md`](services/identity/README.md) |28| **Code Interpreter** | Secure code execution in sandboxes | [`services/code-interpreter/README.md`](services/code-interpreter/README.md) |29| **Browser** | Web automation and scraping | [`services/browser/README.md`](services/browser/README.md) |30| **Observability** | Tracing and monitoring | [`services/observability/README.md`](services/observability/README.md) |31| **Agent Registry** | Catalog, discover, and govern agents/tools | [`services/registry/README.md`](services/registry/README.md) |32| **Evaluations** | Automated agent quality assessment (LLM-as-a-Judge) | [`services/evaluations/README.md`](services/evaluations/README.md) |3334## Common Workflows3536### Deploying a Gateway Target3738Read [`services/gateway/README.md`](services/gateway/README.md) before implementing — Gateway setup involves deployment strategies, IAM, and auth choices that vary significantly by use case.39401. Upload OpenAPI schema to S3412. *(API Key auth only)* Create credential provider and store API key423. Create gateway target linking schema (and credentials if using API key)434. Verify target status and test connectivity4445> Credential provider is only needed for API key authentication. Lambda targets use IAM roles, and MCP servers use OAuth.4647### Managing Credentials4849Read [`cross-service/credential-management.md`](cross-service/credential-management.md) first — credential patterns differ across services and getting them wrong causes hard-to-debug auth failures.50511. Use Identity service credential providers for all API keys522. Link providers to gateway targets via ARN references533. Rotate credentials quarterly through credential provider updates544. Monitor usage with CloudWatch metrics5556### Discovering Agents and Tools (Agent Registry)5758Read [`services/registry/README.md`](services/registry/README.md) first — the registry has governance workflows, MCP endpoint options, and sync modes that affect how records become discoverable.59601. Create a registry to catalog your organization's AI resources612. Register resources (MCP servers, agents, skills, custom) with descriptive metadata623. Submit records for approval (auto-approve for dev, manual for production)634. Search and discover approved resources via CLI or MCP endpoint6465> Agent Registry moved to its own `agent-registry` namespace on 2026-08-06 — separate endpoints, IAM actions, ARNs, CLI, and record schema from the rest of AgentCore. The `bedrock-agentcore` namespace shuts down 2026-09-17. See [`services/registry/README.md`](services/registry/README.md#migration-from-the-preview-namespace).6667### Evaluating Agent Quality6869Read [`services/evaluations/README.md`](services/evaluations/README.md) first — evaluators, scoring modes, and IAM setup vary between online monitoring and on-demand testing.70711. Instrument the agent with OpenTelemetry (ADOT) for trace collection722. Create evaluators (use built-in like `Builtin.Helpfulness` or create custom)733. Set up online evaluation with sampling rate and data source744. Monitor scores in CloudWatch dashboards; investigate low-scoring sessions7576### Monitoring Agents7778Read [`services/observability/README.md`](services/observability/README.md) for the full monitoring setup — observability configuration depends on your Runtime protocol and framework choice.79801. Enable observability for agents812. Configure CloudWatch dashboards for metrics823. Set up alarms for error rates and latency834. Use X-Ray for distributed tracing8485## Deep-Dive References8687Each service README (linked in the table above) contains sub-links to getting-started guides, troubleshooting, and advanced topics. Start with the service README and follow pointers from there.8889### Advanced Runtime & OAuth References9091Deep-dive reference documentation for Runtime internals, deployment, OAuth integration, and communication protocols. Read these when building production Runtime deployments or configuring OAuth authentication:9293- **OAuth Integration**: [`references/agentcore-oauth-integration.md`](references/agentcore-oauth-integration.md) - Three-layer OAuth architecture (Inbound JWT, Outbound Credential Provider, Gateway OAuth), Cognito configuration, supported IdPs, end-to-end CDK examples94- **Runtime Core Mechanisms**: [`references/agentcore-runtime-core.md`](references/agentcore-runtime-core.md) - Container contract, MicroVM Session model, Agent lifecycle (per-request vs per-session), tool integration (MCP/HTTP), startup flow95- **Runtime Deployment & Operations**: [`references/agentcore-runtime-deploy.md`](references/agentcore-runtime-deploy.md) - CDK deployment (L1/L2 constructs), multi-Runtime architecture, security model, observability (OTel/CloudWatch), BedrockAgentCoreApp vs FastAPI comparison96- **Runtime Protocol Reference**: [`references/agentcore-runtime-protocols.md`](references/agentcore-runtime-protocols.md) - HTTP, MCP, A2A, AG-UI protocol specifications with container contracts, endpoint specs, and selection guide9798### Runnable Script Templates99100Production-ready templates in [`scripts/`](scripts/) for common deployment patterns:101102| Script | Protocol | Description |103|--------|----------|-------------|104| [`Dockerfile.runtime-template`](scripts/Dockerfile.runtime-template) | — | ARM64 multi-stage Docker build for AgentCore Runtime |105| [`runtime-fastapi-template.py`](scripts/runtime-fastapi-template.py) | HTTP | FastAPI Runtime with SSE streaming and MCPClient |106| [`mcp-server-template.py`](scripts/mcp-server-template.py) | MCP | MCP Server with Streamable HTTP transport |107| [`a2a-server-template.py`](scripts/a2a-server-template.py) | A2A | A2A Server with Agent Card discovery |108| [`agui-server-template.py`](scripts/agui-server-template.py) | AG-UI | AG-UI Server with standard AG-UI event stream |109| [`gateway-custom-resource-lambda.py`](scripts/gateway-custom-resource-lambda.py) | — | CDK Custom Resource Lambda for Gateway lifecycle |110111## Cross-Service Resources112113For patterns and best practices that span multiple AgentCore services:114115- **Credential Management**: [`cross-service/credential-management.md`](cross-service/credential-management.md) - Unified credential patterns, security practices, rotation procedures116- **Registry Integration**: [`cross-service/registry-integration.md`](cross-service/registry-integration.md) - Cross-service patterns with Gateway, Identity, Runtime117- **Security & Resource Policies**: [`cross-service/security-resource-policies.md`](cross-service/security-resource-policies.md) - Resource-based policies, cross-account access, VPC/IP restrictions118- **Agent Deployment with S3 Files**: [`cross-service/agent-persistence-patterns.md`](cross-service/agent-persistence-patterns.md) - Deploy Strands Agents, OpenClaw, Claude Agent SDK on AgentCore with S3 Files and Session Storage119120## Additional Resources121122- **AWS Documentation**: [Amazon Bedrock AgentCore](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/what-is-bedrock-agentcore.html)123- **API Reference**: [Bedrock AgentCore Control Plane API](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/)124- **AWS CLI Reference**: [bedrock-agentcore-control commands](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/bedrock-agentcore-control/index.html)125