Skip to main content
ItemShop runs a Model Context Protocol server so an AI agent (Claude Code, Codex, OpenCode, Cursor, Gemini CLI…) can work on your shop: edit site files, build and publish previews, manage products and discounts. Per-agent setup is in Connecting agents.

Workspace token

In the panel: Workspace → MCP → New token. Pick only the scopes the agent needs. The token (prefix iswt_) is shown once — keep it in an environment variable, not in a committed file:
A token can never exceed what its creator has in the shop team — if the creator loses access, the token stops working.

Tool groups

The owner sets each group to off / read / write in Workspace → MCP, for every token. A call’s effective access is the lower of the group setting and the token scopes. Orders and stats have no write mode. Orders are off by default because they contain buyer data — you enable them deliberately. The server also exposes the resources itemshop://shop and itemshop://site/files/{path} (the draft) and two prompts: change_look and add_product.

Safety

  • File edits go to the draft — nothing changes in production until a build is promoted.
  • promote_deployment and discard_draft need an explicit confirm: true. You can reserve production publishing for the panel (Workspace → Publishing) — the agent then only shares a preview link. With the policy on (the default), promote_deployment returns 403 WORKSPACE_PRODUCTION_REQUIRES_APPROVAL.
  • Product changes go through the same validation as the panel.
  • Every call is recorded in the Workspace activity log (source mcp).
  • Per-token limits: 240 requests per minute, of which 60 writes per minute. Failed authentications are rate-limited per IP.
  • Suspect a leak? Revoke the token in the panel — it takes effect immediately.

stdio bridge

If your agent only runs local stdio servers, use @itemshop/mcp. It forwards every MCP message to the hosted server, so it has the same tools, scopes and limits.
The bridge accepts only workspace tokens (iswt_…) and refuses to send the token over plain HTTP except to localhost. Diagnostics go to stderr; stdout carries only MCP messages.
The token was revoked, expired, or its creator lost access to the shop. Create a new one.
Set ITEMSHOP_TOKEN in the environment the agent starts the bridge with.
Check the token scopes and the group modes in Workspace → MCP. Test connection shows what is actually available.

Agent skills

ItemShop knowledge for your agent.

Connecting agents

Claude Code, Codex, Cursor setup.