Connect harness agents to external tools with connections
Connections for AgentCore harness are in public preview release for Amazon Bedrock AgentCore and are subject to change.
A connection gives your AgentCore harness agents the tools of an external service, such as a developer tool, an enterprise application, or a data service. An administrator sets up a connection once. Authorized developers then attach the connection to a harness without handling credentials or building infrastructure.
To create a connection, an administrator does the following:
-
Selects a connector from the AWS-maintained catalog. Each connector connects to a Model Context Protocol (MCP) service.
-
Provides the credential that the external service requires, such as an API key or personal access token.
Developers attach the connection when they create or update a harness. They don’t configure the connector endpoint, gateway identity, target protocol, service roles, or tool synchronization. AgentCore handles routing, authentication, tool execution, and the supporting infrastructure.
Why use connections
Without connections, connecting an agent to an external MCP service can mean setting up a gateway, inbound identity, IAM roles, targets, outbound authentication, tool discovery, and synchronization before you can test a single tool. Teams often repeat that setup for each agent, and they manage credentials, tools, and access controls in different places.
With connections:
-
Administrators configure a connector once. They don’t rebuild the same endpoint, authentication, and gateway setup for each agent.
-
Developers self-serve. Developers attach the connections they have access to without receiving or copying credentials.
-
AgentCore manages the infrastructure. AgentCore creates and operates the backing routing, identity, target, and synchronization resources.
For example, an administrator creates a connection named GitHub Engineering. It uses a narrowly scoped personal access token (PAT) for a GitHub machine user. A developer attaches the connection to a harness without seeing the PAT or configuring the GitHub MCP endpoint. GitHub limits access to the repositories and permissions granted to the PAT.
Key features
-
Connector catalog – AWS-maintained connectors supply the endpoint, the supported authentication method, and a recommended starting tool set for each service. For the list, see Supported connectors.
-
Shared credentials – Authenticate with shared credentials such as API keys, provider tokens, and personal access tokens.
-
Managed execution – AgentCore creates and operates the gateway and target resources that a connection needs, with managed defaults. You don’t manage these resources as part of the normal workflow.
Concepts
The following terms describe the parts of a connection.
- Connection
-
An Amazon Bedrock AgentCore resource that gives harness agents access to the tools of an external service. An administrator creates a connection once. Authorized developers can then attach it to their harnesses. A connection holds the connector configuration and a reference to the credential.
- Connector
-
An AWS-maintained definition for a supported external service. A connector defines the service’s public MCP endpoint, the authentication method it supports, and a recommended starting tool set. For the list, see Supported connectors.
- Shared credential
-
The credential that a connection uses to authenticate to the external service, such as an API key, a provider token, or a personal access token (PAT). Every agent that uses the connection acts as the single project, application, machine user, or token owner that the credential belongs to.
- Managed execution resources
-
The gateway and target resources that AgentCore creates and operates to run a connection. AgentCore configures them with managed defaults, keeps the connector’s tools synchronized, and handles recovery. You don’t manage these resources as part of the normal workflow.
Preview considerations
The public preview of connections has the following scope and limitations:
-
Supported resources – You can attach connections only to an AgentCore harness.
-
Targets – Connections support tool connections to publicly reachable remote MCP services only.
-
Authentication – Connections support shared credentials, such as API keys, provider tokens, and personal access tokens. Per-user OAuth (three-legged OAuth) and on-behalf-of access aren’t supported. A connection acts as one shared project, application, machine user, or token owner, so it doesn’t preserve each employee’s own permissions or attribution in the external service. Services that require per-user access aren’t a good fit for connections in the preview.
-
External services – Your agents depend on each external service’s availability, rate limits, licenses, credential model, and data-handling terms.
-
Advanced gateway features – If you need gateway-specific identity or networking controls, use AgentCore Gateway directly and attach the gateway to your harness as a tool. For more information, see Tools.
-
Changes before general availability – Features, quotas, and supported Regions can change before general availability.
Availability
Connections are available in public preview in all AWS Regions where AgentCore harness is supported. For the list of Regions, see Supported AWS Regions.
Related services
-
AgentCore Gateway – Provides the managed execution layer behind a connection: MCP routing, inbound IAM and SigV4 authentication, outbound credential injection, tool calls, and observability.
-
AgentCore Identity – Stores or references the credentials that connections use to reach external services.
-
Policy in AgentCore – Remains a separate control for fine-grained access to tools.