> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abconvert.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an AI client to your agency workspace

> Connect an AI client to approved Shopify stores in one ABConvert agency workspace, then read results and create drafts for a selected store.

An agency Model Context Protocol (MCP) connection lets one AI client read results and prepare drafts for the client stores you select.

![MCP connections page with a connection name, a selected store, and its Read/write access menu.](https://mintcdn.com/abconvert/nogWBfkBHY-p-HYR/images/agency-workspace/create-mcp-connection.png?fit=max\&auto=format\&n=nogWBfkBHY-p-HYR\&q=85\&s=c22bf2d1c49e68539aa49ccc2b588709)

Choose a permission for each store in your connection.

Use an agency connection when you work with several approved stores. If you only manage one store from its Shopify admin, follow the [single-store quickstart](https://docs.abconvert.io/mcp/quickstart.md).

## Before you connect

You need access to the [agency workspace](https://docs.abconvert.io/configuration/agency-workspace.md) and at least one approved store assigned to you. Every store you connect needs MCP access enabled for AI clients. You can use the web workspace with your assigned stores without enabling MCP. Use a client that supports OAuth for a remote MCP server. Each teammate creates their own connection.

| Connection access | What you can ask your client to do |
| - | - |
| **Read only** | List tests and read results from that store. |
| **Read/write** | Read results and create or edit supported drafts where the merchant granted **Manage tests** and your role allows it. |

## Authorize your AI client

**1. Choose stores and permissions**

Open **MCP connections → Create connection**. Name the connection and select the approved stores you want the client to reach. Set each store's access, then select **Create**.

**2. Open the authorization page**

Select **Connect AI client** on the new connection. Add the server URL shown in the workspace to your client's remote MCP settings, then start authentication.

For Codex CLI, run the following command to add the server and open the authorization page.

```bash theme={null}
codex mcp add abconvert-agency --url https://mcp.abconvert.io/mcp
```

**3. Approve the selected stores**

On the ABConvert authorization page, enter the one-time **Connect code** from your workspace and select **Continue**. Review the listed stores and access levels, then select **Approve**. The connect code goes in the authorization form.

**4. Verify your access**

Start a new chat in your client and ask for the stores on the connection.

```text theme={null}
List the Shopify stores this ABConvert agency connection can access. Show the store domain and access level for each one.
```

## Ask about several stores in one chat

Use these prompts for weekly reviews, client updates, draft handoffs, and planning. Replace the example domains with the exact `.myshopify.com` domains from your list of accessible stores. Your AI client reads each store separately.

### List active tests by store

```text theme={null}
List the active ABConvert tests in example-store-a.myshopify.com and example-store-b.myshopify.com. For each store, show the test name, test ID, and start date. Tell me if either store has no active tests.
```

### Prepare a client results update

```text theme={null}
Summarize the Spring collection landing page test in example-store-a.myshopify.com and the Summer collection landing page test in example-store-b.myshopify.com for the last 7 complete days. Give each store its own section. Include visitors and the primary metric by test group. Report a winner only if the test report supports one. Flag any missing or inconclusive results.
```

For a single report, give the store domain and the test name or ID. See [Read test results](https://docs.abconvert.io/analytics/interpret-results.md).

### Prepare draft tests for client review

```text theme={null}
Find the draft tests in example-store-a.myshopify.com and example-store-b.myshopify.com. For each store, make a review checklist with the draft ID, test type, what Control and Variant A show, and the test group split. Flag any settings that need the client's confirmation. Leave all drafts unchanged.
```

### Review saved Autopilot recommendations

If your client stores use Autopilot, ask for their saved recommendations when planning the next round of tests.

```text theme={null}
Read the latest saved Autopilot recommendations for example-store-a.myshopify.com and example-store-b.myshopify.com. For each store, summarize one test idea and the evidence behind it. Tell me which stores have no saved recommendations. Leave the stores unchanged.
```

## Switch stores when creating drafts

Keep the same agency connection and the same chat. To switch stores, name the new store's exact `.myshopify.com` domain in the next prompt. Each draft belongs to one store. You need **Read/write** access, a **Manage tests** grant, and a role that allows draft creation for each store you write to.

**1. Create a draft in the first store**

```text theme={null}
In example-store-a.myshopify.com, create a draft URL redirect test named Spring collection landing page. Use /pages/spring for Control and /pages/spring-edit for Variant A. Split the test groups 50/50. Leave it in Draft and show me the store domain and draft ID.
```

**2. Name the second store in your next prompt**

```text theme={null}
In example-store-b.myshopify.com, create a draft URL redirect test named Summer collection landing page. Use /pages/summer for Control and /pages/summer-edit for Variant A. Split the test groups 50/50. Leave it in Draft and show me the store domain and draft ID.
```

Check the store domain and draft ID in each reply before you review the draft. To create a test manually, [open ABConvert in the target store's Shopify admin](https://docs.abconvert.io/configuration/agency-workspace.md#switch-stores-when-creating-drafts).

## Change or revoke access

An authorized client uses its existing connection after the one-time connect code is used. Whether you need to authorize again depends on where you make the change.

| Change | What happens to your AI client |
| - | - |
| Add a store to the workspace | Your authorized stores stay available. To use the new store, add it in **MCP connections** and authorize the updated store list with a new one-time connect code. |
| Remove a store from **Client stores** | MCP access to that store ends. Other authorized stores stay available. ABConvert disconnects the connection if this was its last configured store. |
| Remove a store while editing a connection in **MCP connections** | Reconnect your AI client to authorize the updated store list. |
| The store owner revokes agency access | MCP access to that store ends. If the owner later approves a new request, authorize access again before using that store. |

If a workspace Admin removed a store from **Client stores** and the merchant later approves it again, create and authorize a new named connection for that store.

Select **Revoke** in **MCP connections** to disconnect a client. To increase access for a store already on the connection, create a new connection and approve its scope.

## Common mistakes

* **Leaving the store out of the prompt.** Include the store's domain so the client can select it.
* **Creating a draft through a read-only connection.** Check the merchant grant, your store assignment, and the connection's selected access.
* **Expecting a newly approved store to appear in an existing connection.** Add the store to the connection, then authorize the updated store list.

## FAQ

> [accordion] Why is a store missing from the connection setup?
>
> Check that the store still has ABConvert installed, the owner approved agency access, and a workspace Admin assigned the store to you. MCP access also needs to be enabled for that store.

> [accordion] Can the same store use a single-store connection and an agency connection?
>
> Yes. The merchant can use a [single-store connection](https://docs.abconvert.io/mcp/quickstart.md), and your agency can use its own connection for the same store. Both work with the same tests and reports. Each connection has its own credentials and permissions. Revoking the agency connection leaves the single-store connection active.

> [accordion] Can I use AI to edit a page in Visual Editor?
>
> Use a single-store connection for [Visual Editor](https://docs.abconvert.io/experiments/visual-editor.md) editing tools.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.