Skip to content

MCP for agencies

Let an agency connect an AI assistant once and have it work on any of its client stores: read them, build pages, edit products, tidy SEO, with permissions the agency chose and can revoke. For the other MCP surfaces, start at MCP at Orbit.

Who this is for

An agency on Orbit manages stores for its clients from the agency dashboard. A merchant connection is bound to one store, so an agency with twenty clients would need twenty connections. The agency connection is bound to the agency instead: one approval covers every client store, and stores added later are included.

MerchantAgency
Bound toOne storeOne agency, and the person who approved it
Stores it can touchThat storeAny client store, named on each call
Address to pastehttps://api.myorbitcommerce.net/mcphttps://api.myorbitcommerce.net/mcp/agency
Consent screenStore dashboardAgency dashboard
Extra scopesNoneagency-stores:read
Ends whenMerchant revokesRevoked, or its approver leaves the agency

A client store is a store that belongs to the agency's organisation right now. A store that is released, transferred or deleted stops being one on the next call. Theme preview stores never count.

Authorisation

The same OAuth 2.1 + PKCE flow as a merchant connection, against the same authorization server. The address is what makes it an agency connection:

https://api.myorbitcommerce.net/mcp/agency

The agency dashboard shows this address under Settings → AI assistants, with the one-line command for Claude Code:

Shell
claude mcp add --transport http orbit-agency https://api.myorbitcommerce.net/mcp/agency

In claude.ai, ChatGPT or Claude Desktop, add it as a custom connector. The assistant sends the person to the agency dashboard's approval screen, where they choose a permission level, accept the data terms and approve. Pasting the bare /mcp address connects one store through the store dashboard instead.

Approving a connection takes membership of the agency itself: an unexpired organisation role on it, or being its recorded owner. A role on a single client store is not agency membership, so someone who can open one client store cannot approve a connection. Three kinds of session cannot approve either: a shop login, an Orbit platform login, and a session where someone is signed in as another person.

Permission tiers

The three tiers are the same as a merchant connection's: read only, safe changes, and live and permanent changes. On top of the merchant scopes, the agency connection adds one:

ScopeTierWhat it allows
agency-stores:read1List the agency's client stores

Live and permanent changes ask twice, as on a merchant connection. A confirmation is bound to the store it was asked about: one issued for store A cannot confirm the same action on store B.

Naming the store

There is no "current store" on an agency connection. Several chats can share one connection at the same time, so a remembered selection could land one chat's edit on another chat's store. Every call names its store instead.

In an assistant, that means a required store argument on every store tool — the one exception is run_across_stores, which names many stores at once and is described under Running one tool across many stores. It takes the store's id from list_client_stores, or its exact name or handle. A name that matches nothing, or matches more than one store, is refused with the closest matches and nothing is changed.

JSON
{
  "name": "update_page_meta",
  "arguments": {
    "store": "acme-office",
    "pageId": "…",
    "seoTitle": "Office chairs"
  }
}

Store names are set by each client and are not unique, so list_client_stores flags stores that share a name, and confirmations show the store's handle and id as well as its name. Use the id when in doubt.

Calling the API directly

The hosted server turns store into a request header. If you call the /v1 API with an agency token yourself, send it on every store-scoped request:

X-Orbit-Store-Id: <store id>
SituationResponse
No header403 This is an agency connection: name the client store. list_client_stores lists them.
Not a client store of this agency, or not a valid store id404 Client store not found
Orbit has switched AI assistants off for the store403 AI assistants are switched off for this store
The client store is suspended403 This client store is suspended

The header means nothing on any other credential: a merchant, affiliate or partner token, store API key or plugin token keeps the store it is bound to.

Two routes need no header:

RouteScopeReturns
GET /v1/agency/connectionnoneThe agency, the person who approved it, its scopes and tiers
GET /v1/agency/storesagency-stores:read{ items: [...] }, the client stores, sorted by name

What is checked on every call

Nothing about an agency connection is decided once at approval and then trusted. On every request Orbit checks that:

  • the agency is active and not suspended;
  • the person who approved the connection is still on the agency team;
  • the store is still a client store, is not suspended, and has AI assistants switched on;
  • that person still holds each permission on that store.

The connection can do what its approver can do today, within the level they approved. A staff member's connection cannot do what an admin's can. If someone is demoted, their connection narrows with them. If they are removed from the team, their connections are revoked. Refreshing a token runs the agency and team checks again.

Revocation

Settings → AI assistants in the agency dashboard lists every connection, who approved it, its permission level and when it was last used. A connection that can no longer work is marked as stopped, with the reason. Anyone can disconnect a connection they approved; disconnecting someone else's needs the agency owner or an admin.

A disconnected connection stops working within 5 seconds. Treat a sudden 401 as revocation, not as an error to retry.

Discovering the tools

As on the merchant connection, call tools/list after connecting rather than hard-coding names. An agency connection offers the merchant tools its tier allows, each with the store argument, plus two agency-only tools: list_client_stores, and run_across_stores on a connection approved for live and permanent changes. Start there.

The merchant connection's store-scoped MCP resources are not offered, because a resource cannot take a store argument; the tools read the same data. Prompts take a store argument. Creating, deleting and transferring client stores stays in the agency dashboard, because those actions touch billing.

Running one tool across many stores

run_across_stores calls one store tool on up to 50 client stores, or on all of them, with one approval instead of one per store. It needs a connection approved for live and permanent changes.

Pass it the tool's name in tool, the stores in stores, and the tool's own arguments in arguments without store; perStore overrides those arguments for a single store, keyed by its id or handle.

A read tool simply runs on each store and returns each store's answer. A change runs in two passes, and the first one changes nothing anywhere: it reads every store and comes back with one combined question — each store's own question, named by store — under a single confirmationToken. Once the person you are working for says yes, call again with the same arguments and that token.

The approval is bound to exactly those stores and those changes. If anything moved in between, the second call asks again and changes nothing, so a yes can never be spent on a store or a change the person did not see.

Reference