Skip to main content
Gemini CLI connects to ItemShop through the MCP server (Streamable HTTP, Authorization: Bearer header). It gets tools for site files, builds, the catalogue and — if you enable them — orders and discounts. All its changes land in the draft in Workspace.

Step by step

1

Create a workspace token

In Workspace → MCP → New token pick the smallest sensible set of scopes — usually site:write and catalog:read. You see the token (iswt_…) only once. Scopes are described on the AI Workspace page.
2

Set the environment variable

The configuration never contains the token — it refers to the ITEMSHOP_TOKEN variable.
3

Pull the site project

In an empty folder download the current draft (CLI):
4

Add the MCP server

With one command:
or save the file from the next section.
5

Start the agent

MCP configuration file

.gemini/settings.json
The httpUrl field selects the Streamable HTTP transport (a plain url would mean SSE). The single quotes around the header stop your shell from expanding the variable — Gemini CLI expands it itself. In Workspace → Agent choose the same agent and the panel shows ready commands, files and a zip bundle for your shop. Offline you can generate them with:

Instructions file

The panel also generates GEMINI.md — the file Gemini CLI reads at start-up. It holds your shop’s context (name, id, API and panel addresses), the list of enabled MCP tool groups and the project rules: keep itemshop.site.json, data only through the SDK, checkout via redirect with two consents, no secrets in code, build and file limits, publishing policy. Copy it into the project root.

Check the connection

In the agent run gemini mcp list — the itemshop server should be connected. You can also click Test connection in Workspace → MCP. Start with something safe, e.g. “Show the shop context and the list of site files”. Tool calls then show up in the MCP log and on the activity timeline (source mcp).

Skills

Install agent skills with a command, pointing at this agent’s skills folder:

Troubleshooting

All agents

Comparison and shared rules.

MCP

Tools and scopes.