Skip to content
Log in

Troubleshoot an agent connection

On this page

Use this article when an AI agent cannot connect to your store, or connects and then cannot do what you asked. Find the message you were shown and go to the section headed with that message. Retrying does not help, because each cause has its own fix. To set a connection up for the first time, see Connect an AI agent to your store.

The sign-in screen refuses the connection

The sign-in screen shows the message above the name of the store you are signing in to. Your Salesforce password is never involved, so a refusal here is about your token, your store role, or the product you are connecting from.

That token isn't valid or is inactive

The value you pasted does not match a token with active agent access in the org that holds this store. Check these causes in order:

  • You pasted the bearer credential instead of the token. The sign-in screen accepts only your personal access token. The Bearer credential shown under each store in the Console is longer, with three parts separated by colons, and the sign-in screen refuses it. Select Copy your token beside Your personal access token and paste that instead.
  • Your agent access is off or has expired. Open Agents > Connect an agent in the StoreConnect Console. If the panel says Agent access is not turned on for you, or that your agent access expired on a date, the Console shows no token. Ask a StoreConnect administrator to turn your access on or extend it. See Manage who can use an AI agent.
  • Your token was reset. A reset replaces the token, so a copy saved before the reset no longer works. Select Copy your token in the Connect an agent panel and paste the current value, not one from a password manager entry you have not updated since.
  • The token is from another Salesforce org. Tokens are stored on the User record in each org. Copy the token from the Console in the same org as the store you are connecting to, such as your sandbox for a sandbox store.

This user has no editing access to this store

Your token is valid, but you have no Store Role of type Content Changes at Editor or Approver level covering this store. No other role type lets an agent sign in. Ask an administrator for a role at Editor level to stage changes, or Approver level to also publish them. See Store roles.

The check applies only to the store at the address you signed in at. On a shared domain, a role that covers your store does not help if you signed in at another store’s path, so check the path before asking for a new role.

This client's redirect address is not on this store's allow list

Your token and your access are not the problem. StoreConnect does not yet accept a browser sign-in from the product you are connecting from. The list is StoreConnect’s own configuration, so a store administrator cannot add to it. Email support@storeconnect.com with the product name and the address shown under the message.

This often happens with products installed on your own machine. Most of these finish the sign-in on a local http address, such as http://127.0.0.1:33418/, which StoreConnect accepts. If the address under the message starts with the product’s own name instead, such as cursor://, the product uses an app address, and StoreConnect adds it on request like any other.

Until the address is added, the product can still connect by sending the bearer credential as a header. Copy the Bearer credential from Your stores in the Console rather than assembling it by hand. See Connect an AI agent to your store.

This client asked to connect to a different endpoint than this store's

The client is pointed at one store and signing in at another. The message names the address the store expects. Correct the address in the client and start the sign-in again.

The address names no store

An address that names no store fails before you are asked for a token, so every message in this section is about the address, not your access. For how addresses are built when several stores share one domain, see the shared-domain section of Connect an AI agent to your store.

No store is configured at this address

The path is wrong, or the store at it is not live. Your store’s path is the Path field on the Store record (s_c__Store__c.s_c__Path__c), and it goes between the domain and /mcp. A store with nothing in that field is the one served at the root of the domain.

:::warning The Store URL shown in the Console leaves the path out, so on a shared domain it shows the root store’s address for every store in the list. Add your store’s path yourself before you connect. :::

Several stores share <your-store-domain> and none is marked as the default

You used the domain with no path on it, and more than one store answers to that domain. Connect using your store’s own path, or ask your administrator to mark one store as the default.

The discovery address shows your store’s “page not found” page

Opening https://<your-store-domain>/.well-known/mcp.json and getting your store’s own “page not found” page means the store is on a version earlier than v22 and has no endpoint to connect to. Nothing is broken, and retrying will not change the outcome. Email support@storeconnect.com or ask your implementation partner about upgrading. The version check is in Connect an AI agent to your store.

The skills toolkit still works while you wait, because it does not rely on a connection. See Install the StoreConnect AI skills.

Your agent lists the server but does not connect

Agents that support MCP show a status for each server in their MCP or connector settings. The examples below use Claude Code, where claude mcp list prints the status of each server.

The server needs authentication

Your agent has no valid sign-in for the server. This is expected before your first sign-in and after a session expires. Sign in again from your agent’s MCP or connector settings, using your existing token.

For example, in Claude Code claude mcp list prints ! Needs authentication beside the server. To sign in:

  1. In a Claude Code session, run /mcp and select the server.
  2. Select Authenticate.
  3. Finish the sign-in in your browser with your existing token.

To sign in from a terminal instead, run claude mcp login <name>, replacing <name> with the server name shown in the list.

Your agent now shows the server as connected. In Claude Code, claude mcp list shows ✔ Connected.

The server is disabled for the project

Some agents let you turn a server off for a project or workspace. While the server is off, the agent has none of the server’s tools. Turn the server back on in your agent’s MCP or connector settings.

For example, in Claude Code claude mcp list prints ⊘ Disabled for this project (re-enable via /mcp) beside the server. To turn it back on:

  1. In a session started from the project directory, run /mcp.
  2. Select the disabled server, then select Enable.

Your agent no longer shows the server as disabled, and lists the server’s tools.

The agent is connected but something does not work

No StoreConnect tools are listed

The agent signs in and shows the connection as active, but lists no StoreConnect tools, or says the connector has no tools available. Your agent can still show the server as connected, because the status reports whether the server answered, not which tools you can use. For example, claude mcp list in Claude Code shows ✔ Connected. The Content Changes Store Role your user holds for that store has no API Scopes selected. A role with nothing selected grants nothing, and an agent is only shown the tools your scopes allow.

  1. Ask an administrator to open the Content Changes store role assigned to you for that store and select the API Scopes you need. For example, the two installed roles carry Content, Catalog, and Themes read and write, plus Publish Staged Changes, Store (Read), and Extraction (Read). Check the role you are actually assigned, not another role that already has scopes. See Store roles.
  2. Once the scopes are saved, follow the steps in A change to your access has not taken effect so your agent picks them up.

The agent cannot perform an action

If an agent cannot perform an action, it is usually a permissions boundary rather than a fault. The agent works as you, so it can only do what your Store Role allows, on the stores that role covers. Ask your administrator to review the access for that store instead of looking for a workaround.

The agent stopped working partway through

Sign-in sessions expire after about eight hours. When a session expires, sign in again from your agent using your existing token. You do not need a new token.

A change to your access has not taken effect

A session carries the permissions you had when you signed in. If your Store Role, the role’s API Scopes, or the stores it covers have changed, the agent keeps working with the old permissions until a new session starts.

  1. Sign in again from your agent with your existing token. You do not need a new token.
  2. If the change still has not taken effect, your agent kept the session it already had. Remove the StoreConnect connection from your agent, then add it again and sign in with your existing token.

For example, in Claude Code, signing in again picks up the change: run /mcp, select the server, then select Re-authenticate.

If your agent sends the bearer credential instead of signing in, the change applies on the next request, and there is nothing to do.

When the cause is fixed, the sign-in screen names your store and its address, you are prompted for your token, and your agent shows the connection as active.

Was this article helpful?

Was this article helpful?