

# MCP connectors

**Note**  
This feature is in public preview. Features and behavior are subject to change.

With Model Context Protocol (MCP) connectors, the agent can use services such as GitHub as tools. AWS manages each connector, and the service hosts its own MCP server. You activate the connectors that you want for your account, and then add them to persona configurations. Each user signs in to each service with their own account, and the agent acts with that user's permissions in the service.

## Available connectors
<a name="agentic-connectors-available"></a>

During preview, the following connectors are available in the US East (Ohio) Region.


| Connector | Connector ID | What the agent can do | Requirements for the service | 
| --- | --- | --- | --- | 
| Asana | wsacn-asana | Work with tasks, projects, and comments. | If your Asana organization restricts third-party apps, an Asana admin must allow the app. | 
| GitHub | wsacn-github | Work with repositories, issues, pull requests, and GitHub Actions. The connector requests the repo and read:org scopes, which include read and write access to the user's private repositories. | GitHub.com accounts only. GitHub Enterprise Server and GitHub Enterprise Cloud with data residency (GHE.com) aren't supported. If your organization restricts OAuth app access, an organization owner must approve the app. Otherwise, users can't reach the organization's repositories. If your organization uses SAML single sign-on (SSO), users must have an active SSO session. | 

Each connector offers a set of the service's tools that AWS selects. To see the tools, choose the connector on the **MCP Connectors** page, and then check **Tool access**. To use the API, call `BatchGetAgenticConnector` and check `AllowedTools`.

## How connectors work
<a name="agentic-connectors-how"></a>

The following steps describe how connectors work:

1. You activate a connector for your account and add it to a persona configuration.

1. The agent on each WorkSpace created from that persona configuration can use the connector's tools.

1. The first time the agent uses a connector, the user signs in to the service in the browser on their WorkSpace and allows access.

1. Tool requests go through the WorkSpaces gateway, which adds the user's sign-in and forwards the request to the service.

When the agent uses a connector, it sends data from the WorkSpace, such as code and file contents, to the service. Review each service's terms before you activate its connector. For WorkSpaces that handle sensitive data, add only the connectors that users need.

The gateway stores the sign-in tokens. They aren't stored on the WorkSpace. A sign-in applies to one connector on one WorkSpace. If a user has two WorkSpaces, they sign in on each.

Requests from the agent to the WorkSpaces gateway, for both models and connectors, leave the WorkSpace through an endpoint that WorkSpaces manages. Your VPC's egress controls, such as security groups, network firewalls, and proxies, don't apply to this traffic. Connector requests keep working when your OS policy blocks internet access for the agent. The gateway sends connector requests only to the connector's service, and model requests only to Amazon Bedrock in your account.

Signing in is different. It happens in the browser on the WorkSpace and uses your network. The browser must be able to reach `bedrock-agentcore.us-east-2.amazonaws.com` and the service's sign-in pages, such as github.com.

## Before you begin
<a name="agentic-connectors-before-you-begin"></a>

Before you activate a connector, do the following:
+ Complete account setup in the US East (Ohio) Region. Until setup is complete, no connectors are listed. For more information about account setup, see [Prerequisites for agent-ready WorkSpaces](agentic-prerequisites.md).
+ Check the requirements for each service in [Available connectors](#agentic-connectors-available). For example, ask your GitHub organization owners to approve the app, so that users can reach the organization's repositories.

## Activate a connector
<a name="agentic-connectors-activate"></a>

Activate a connector to make it available to the persona configurations and WorkSpaces in your account.

**To activate a connector**

1. Open the [MCP Connectors page](https://console.aws.amazon.com/workspaces/v2/g/agentic-catalog/mcp-connectors?region=us-east-2) of the Agentic Catalog in the Amazon WorkSpaces console.

1. Choose the connector.

1. Choose **Activate**.

1. Check the connector's status until the connector is active. This usually takes less than a minute. If activation fails, see [Connector status](#agentic-connectors-status).

To activate a connector by using the API, call `UpdateAgenticConnectorActivationStatus` with `ActivationStatus` set to `ACTIVATED`. Activation is asynchronous. Call `ListAgenticConnectors` or `BatchGetAgenticConnector` until the status changes from `PENDING` to `ACTIVATED`.

## Add connectors to persona configurations and WorkSpaces
<a name="agentic-connectors-add"></a>

After you activate a connector, add it to the persona configurations that need it. The console shows only activated connectors. For more information about persona configurations, see [Create a persona configuration](agentic-personas.md#agentic-personas-create).

You can't change a persona configuration after you create it. To change the connectors of an existing WorkSpace, use the WorkSpaces console or the API.

**To change the connectors of a WorkSpace**

1. Open the [Amazon WorkSpaces console](https://console.aws.amazon.com/workspaces/v2/home), and choose the WorkSpace to open its details page.

1. In the **Agentic configuration** section, choose **Edit**, and then choose **MCP Connectors**.

1. On the **Edit MCP Connectors** page, for **Connectors**, add or remove connectors. The list shows the connectors that are activated for your account.

1. Choose **Save**.

To change the connectors by using the API, use the following operations.


| Task | API operation | 
| --- | --- | 
| Add connectors to a WorkSpace | AssociateWorkspaceAgenticConnectors | 
| Remove connectors from a WorkSpace | DisassociateWorkspaceAgenticConnectors | 
| View the connectors of a WorkSpace | GetAgenticWorkspaceConfiguration | 

You can add only connectors that are activated for your account. Otherwise, the request fails with the message "These connectors are not activated for your account: connector-ids. Activate them with `UpdateAgenticConnectorActivationStatus`, and then try again."

Changes reach a running WorkSpace without a restart. The gateway applies a change within about a minute, and the agent's list of connectors follows within about 10 minutes. After you remove a connector, the agent's requests to it fail within about a minute, even during a task. For when other changes take effect, see [When changes take effect](agentic-personas.md#agentic-personas-when-changes).

To block a connector for a WorkSpace, remove the connector from the WorkSpace. For the policy settings that control which tools the agent can use, see [Security policies](agentic-security-policies.md).

## How users sign in
<a name="agentic-connectors-sign-in"></a>

The first time the agent uses a connector on a WorkSpace, it asks the user to sign in:

1. The sign-in page opens in the browser on the user's WorkSpace, and the chat shows a sign-in message. The user must complete the sign-in in that browser. If the user opens the link in a browser on their local computer, the sign-in doesn't complete.

1. The user signs in to the service with their own account and allows access.

1. The agent continues with the user's request.

The sign-in link works once and expires after 10 minutes. If it expires, the user asks the agent again to get a new link.

The agent can do only what the user's account can do in the service. Before the agent uses a connector tool, it asks the user for approval unless your Agent Harness policy allows the tool. For more information about the Agent Harness policy, see [Security policies](agentic-security-policies.md).

For the user's steps, see [Connect to services](https://docs.aws.amazon.com/workspaces/latest/userguide/agentic-connect-services.html) in the agent-ready WorkSpaces User Guide.

## Control which MCP servers users can add
<a name="agentic-connectors-managed-only"></a>

By default, users can add their own MCP servers to the agent on their WorkSpace, in addition to the managed connectors that you add. This includes servers in a `.mcp.json` file in the user's workspace folder (`%USERPROFILE%\workspace`). MCP servers that users add don't go through the WorkSpaces gateway. They have the same network access as the agent. If your OS policy blocks internet access for the agent, servers that need the internet can't reach it.

To allow only managed connectors, set `allowManagedMcpServersOnly` to `true` in your Agent Harness policy. In the console, this setting is **Allow only managed MCP servers**.

```json
{ "allowManagedMcpServersOnly": true }
```

When this setting is `true`, MCP servers that users add don't load, and managed connectors keep working.

## Deactivate a connector
<a name="agentic-connectors-deactivate"></a>

Deactivate a connector to stop all WorkSpaces in your account from using it.

**To deactivate a connector**

1. On the **MCP Connectors** page of the **Agentic Catalog**, choose the connector.

1. Choose **Deactivate**.

1. In the confirmation dialog box, choose **Deactivate**.

To deactivate a connector by using the API, call `UpdateAgenticConnectorActivationStatus` with `ActivationStatus` set to `DEACTIVATED`.

You can deactivate a connector while persona configurations and WorkSpaces use it. When you do:
+ Existing WorkSpaces can't use the connector after about a minute, and it leaves the agent's list of connectors within about 10 minutes. If you activate the connector again, those WorkSpaces get it back.
+ You can no longer use persona configurations that include the connector to create WorkSpaces. Create a new persona configuration without the connector, or activate the connector again.

## Connector status
<a name="agentic-connectors-status"></a>

`ListAgenticConnectors` and `BatchGetAgenticConnector` return one of the following values in `ActivationStatus`.


| Status | Meaning | What to do | 
| --- | --- | --- | 
| ACTIVATED | The connector is active, and you can add it to persona configurations and WorkSpaces. | Nothing. | 
| DEACTIVATED | The connector isn't active for your account. | Activate it to use it. | 
| PENDING | Activation is in progress. | Wait, and then check again. | 
| PENDING\_DELETE | Deactivation is in progress. | Wait, and then check again. | 
| ACTIVATION\_ERROR | The connector couldn't be activated. WorkSpaces can't use it. | Call UpdateAgenticConnectorActivationStatus with DEACTIVATED, and then with ACTIVATED. If the error continues, contact AWS Support and give the connector ID. | 
| DEACTIVATION\_ERROR | The connector couldn't be deactivated. WorkSpaces can't use it. | Call UpdateAgenticConnectorActivationStatus with DEACTIVATED again. If the error continues, contact AWS Support and give the connector ID. | 

You can't deactivate a connector while activation is in progress (`PENDING`). Wait until activation finishes.

## Quotas
<a name="agentic-connectors-quotas"></a>

The following table lists the quotas for MCP connectors.


| Resource | Quota | 
| --- | --- | 
| MCP connectors per persona configuration | 25 | 
| MCP connectors per WorkSpace | 25 | 

The WorkSpaces gateway and each service also limit how many requests the agent can make. If requests are limited, the agent reports an error. Wait, and then try again.