Skip to content

AI agents & MCP

MyShopie runs a hosted MCP server, so an AI assistant can work your store directly: build a storefront from an empty theme, answer “which orders are unfulfilled”, fix a price across a range of products, or draft a CMS page. You issue a scoped key, point your MCP client at one URL, and the agent gets a tool for each thing it is allowed to do — and nothing for the things it is not.

Plans: All plans

  • A staff role holding manage_apps, to reach Settings → AI Agents.
  • An MCP-capable client: Claude Desktop, Claude Code, Cursor, Codex or anything else that speaks MCP.
  • For storefront work, a theme already selected — or let the agent pick one with set_theme.
  1. In the MyShopie admin, open Settings → AI Agents and create a key. Choose only the scopes this integration needs.

  2. Copy the key — it starts msh_ and is shown once. Treat it as a password; it carries whatever scopes you granted, with no second factor.

  3. Point your MCP client at the hosted endpoint:

    url: https://mcp.myshopie.app/mcp
    headers:
    Authorization: Bearer msh_…your_key…
  4. Ask the agent to run whoami. It should answer with your store and the abilities on the key. If it does, the connection is good.

  5. Ask it to run list_abilities to see, in its own words, what this key can and cannot do.

Five pairs, not a flat list of permissions:

Scope Read half allows Write half additionally allows
products:read / products:write List and read products Create, update, change status, delete
orders:read / orders:manage List and read orders Change status, fulfill, refund
settings:read / settings:write Store config, general settings Change general settings
storefront:read / storefront:write Themes, schema, layout, templates, content Everything in the designer, CMS, content and media
marketplace:read / marketplace:write eBay connection, categories, listings Create, describe, publish and push listings

A write scope implies its read half, so storefront:write on its own is a complete designer key. Calling a tool without its scope does not fail silently: the agent gets back a message naming the exact scope the key is missing, which it can relay to you.

Twenty-odd tools refuse to run unless the call includes confirm: true. The agent cannot set that flag on a whim — it is the point in the conversation where it has to come back and ask you.

Confirm-gated: delete_product, refund_order, publish_storefront, reset_storefront_layout, reset_storefront_template, restore_storefront_version, remove_homepage_section, apply_storefront_blueprint when it resets first, delete_cms_page, reset_cms_page_layout, delete_banner, delete_announcement, delete_faq, delete_social_link, publish_ebay_listing and purge_unpublished_ebay_draft.

Everything else in the storefront designer writes to the draft layout, which no shopper sees. The live site changes at publish_storefront and nowhere else.

whoami, list_abilities — the store this key belongs to, and what it may do. Always safe to call.

list_products (search, status filter, pagination), get_product, create_product, update_product, set_product_status, delete_product.

create_product and update_product take the same JSON shape as the Admin API’s product endpoints, so anything you can express there an agent can express here. See Admin API.

list_orders, list_orders_since (for a polling integration), get_order, update_order_status, fulfill_order, refund_order.

get_store_config, get_general_settings, update_general_settings.

The largest group, and the reason most merchants connect an agent at all.

Area Tools
Theme list_themes, get_appearance, set_theme, get_storefront_theme_schema
Theme settings get_storefront_theme_settings, update_storefront_theme_settings
Layout get_storefront_layout, replace_storefront_layout, reset_storefront_layout
Header & footer get_header, update_header, get_footer, update_footer
Homepage sections get_homepage_sections, add_homepage_section, update_homepage_section, remove_homepage_section, reorder_homepage_sections, set_homepage_sections
Templates get_storefront_template, update_storefront_template, reset_storefront_template
Blueprint apply_storefront_blueprint — header, footer, sections and settings in one call
Preview & publish create_storefront_preview_token, publish_storefront
Versions list_storefront_versions, restore_storefront_version

get_storefront_theme_schema is the one to insist on early: it tells the agent which sections and settings the chosen theme actually accepts, which is the difference between a page that renders and a page full of ignored fields. See Section reference.

list_cms_pages, get_cms_page, create_cms_page, update_cms_page, delete_cms_page, plus get_cms_page_layout, update_cms_page_layout and reset_cms_page_layout for a page built from sections. See Custom pages.

list_collections; banners (list_banners, create_banner, update_banner, delete_banner); announcements (list_announcements, create_announcement, update_announcement, delete_announcement); FAQs (list_faqs, create_faq, update_faq, delete_faq); social links (list_social_links, list_social_platforms, create_social_link, update_social_link, delete_social_link).

create_media_upload_url, confirm_media_upload, upload_storefront_image. Uploads are two-step: the agent asks for an upload URL, puts the bytes there, then confirms — so a half-finished upload never becomes a broken image on your site.

ebay_connection_status, search_ebay_categories, get_ebay_category_aspects, list_marketplace_listings, get_marketplace_listing, preflight_ebay_export, create_product_from_channel_brief, create_ebay_listing_draft, set_listing_channel_description, publish_ebay_listing, push_ebay_listing, purge_unpublished_ebay_draft.

preflight_ebay_export is worth running before anything else — it reports unmapped categories and missing item specifics rather than letting an export fail halfway. See Marketplaces.

The server also exposes storefront://schema, storefront://layout/draft and storefront://preview as MCP resources, and three ready-made prompts — design_homepage, redesign_header_footer, add_cms_page.

  1. list_themes, then set_theme.

  2. get_storefront_theme_schema, so the agent builds within what the theme supports.

  3. Seed the content the sections will pull in — banners, FAQs, collections.

  4. apply_storefront_blueprint with the header, footer, sections and theme settings in one call.

  5. Open the preview URL the blueprint returns, or make one with create_storefront_preview_token. Iterate on the draft as often as you like.

  6. publish_storefront with confirm: true when you are happy. list_storefront_versions and restore_storefront_version are there if you are not.

A prompt that works well on an empty store:

Use the Prism theme. Build a fashion landing page with an announcement bar, hero, featured collection, a values grid, an FAQ accordion and a footer with an Instagram link. Read the theme schema first, and give me a preview link before publishing anything.

A separate key type, mshc_, is for platform-level work rather than one store: whoami, list_abilities, list_tenants, get_tenant, list_subscriptions, send_tenant_email. Most merchants never need one.

Every tool call is recorded against your store with the tool name, the API path it used behind the scenes, the HTTP status it got back and which store it ran against. An agent cannot work your store without leaving a trail.

Field Where Notes
Key name Settings → AI Agents For your own reference; name it after the integration
Scopes Settings → AI Agents Five pairs; grant the minimum
Key value Settings → AI Agents msh_…, shown once
Revoke Settings → AI Agents Immediate; the client gets 401 on its next call
MCP URL Your MCP client https://mcp.myshopie.app/mcp
Authorization header Your MCP client Bearer msh_…
confirm Tool argument Required on destructive tools

whoami returns 401. The key is wrong, was revoked, or the header is missing Bearer .

A tool fails naming a scope. The key lacks that scope. Issue a new key with it; scopes are fixed once a key exists.

The agent says a tool needs confirmation. It does. Tell it to proceed and it will pass confirm: true.

The storefront looks unchanged after the agent worked on it. The changes are in the draft. Open the preview URL, then publish_storefront.

A section the agent added renders empty. The theme has no such section, or its fields are not the ones the schema declares. Have the agent read get_storefront_theme_schema and rebuild that section.

There is no AI Agents screen in my settings. Your role lacks manage_apps, or the key-issuing feature is not included on your plan. An owner can confirm both.

An eBay tool fails on categories. Run preflight_ebay_export and map what it lists.

I lost the key. It is shown once by design. Revoke it and issue a new one.

What can an AI agent actually do in my store? Everything the tools expose and the key’s scopes allow: list and edit products, work orders through their lifecycle including refunds, read and change general settings, design the storefront end to end — theme, header, footer, homepage sections, templates, CMS pages, banners, announcements, FAQs and social links — upload images, and manage eBay listings. It cannot touch staff, roles, billing, domains or payment credentials.

Can an agent publish changes to my live storefront by accident? No. Every storefront mutation lands in the draft layout, and the live site only changes when publish_storefront runs — which itself refuses unless the call passes confirm: true. The same confirm gate guards every delete, every reset, a refund and an eBay publish.

What are the scopes? Five pairs: products read/write, orders read/manage, settings read/write, storefront read/write and marketplace read/write. A write scope implies its read half, so storefront:write alone is enough to read and change the layout. A tool called without its scope fails with a message naming the scope it needed.

Is there a record of what the agent did? Yes. Every tool call is written to the agent audit log with the tool name, the API path behind it, the HTTP status and the store it ran against, so you can see after the fact exactly what an agent touched.