Skip to content

Server flags and telemetry ​

The MCP server is one command with three flags, and each flag has an environment variable twin. Reach for them when you want to limit what an agent can list, ship or act on, or when you want the one telemetry event off.

Quick start ​

json
{
  "mcpServers": {
    "extension-dev": {
      "command": "npx",
      "args": ["-y", "@extension.dev/mcp", "--features=local,platform", "--no-ship"]
    }
  }
}

This config lists 38 of the 51 tools and refuses every call that puts a build in front of other people. extension_publish and extension_release_promote stay off the list, because every call of theirs ships, and the 11 extras tools stay off until that group is named. The session gates still decide what a listed tool may do.

How it works ​

--features picks the tool groups, of which there are three. The default is local, the 20 tools that work on this machine. --features=local,platform adds the 20 platform tools (account, workspace, projects, builds, approvals, share, release, store, and extension_try, which runs a published build on this machine) and lists 40. A group named alone lists only its tools, so --features=platform exposes only that group.

The third group, extras, is off unless named. It holds 11 tools: extension_theme_verify, the Chrome theme check; extension_network_read and extension_network_stub, the network stubs; extension_storage_read and extension_storage_write; extension_browsers_read and extension_browsers_install; and extension_wait, extension_reload, extension_analyze and extension_installed_read. To add it, append extras to the value the server already starts with: --features=local,platform,extras lists all 51 tools, and --features=local,extras lists 31 without the platform group. EXTENSION_DEV_FEATURES takes the same values.

--no-ship refuses the calls that put something in front of other people: extension_publish, every extension_release_promote action, extension_submit with dryRun: false and its store acts (publish, review, cancel, rollout, release, sync-listing and mint-signing), extension_preview_web with share: true, and a share create or revoke. Dry runs, preflight, status, share listing, reads, login, and workspace or project creation still work. extension_submission_read and extension_approvals_request answer under the flag, since they execute nothing.

--project <workspace>/<project> pins the server to one project, however many logins the machine holds. A call that names another project is refused.

A refused call answers E_TOOL_DISABLED and names the flag to change.

A share revoke waits for a person. The first call answers approval-required with a link on extension.dev. A workspace member approves exactly that revoke, and the same call with the returned approvalId then runs once. Other acts always wait for a workspace owner, whatever the flags say: a promotion, a real store submission, a build settings change, a release cut, a rollback, withdrawing a submission, raising a staged rollout, releasing an approved App Store version, and the rest of the table in Use the platform from your agent.

Every tool carries the MCP annotations readOnlyHint, destructiveHint, idempotentHint and openWorldHint, so a client can auto-approve reads and ask before the rest.

Answers that can carry text a web page or an extension wrote (logs, DOM, eval results, storage, titles, runtime errors) fence it between <untrusted-data-ID> and </untrusted-data-ID>. The ID is random per call and sits in untrusted.boundary, so the page cannot predict it or close the fence early. The JSON still parses to the same fields. The fence is a signal to the model, not a gate: pair it with --no-ship when the agent reads pages you do not trust.

extension_create sends one event, draft_seeded, to PostHog at https://us.i.posthog.com/capture/ after a successful scaffold, with a public write-only project key. It carries the template slug, the template source (template), the template commit it resolved, a random per-process session id that changes on every server start, the environment, and the fixed names source, entry and emitted_from. It never carries a path, a project name, a user name, an address, or anything read from your files.

No other tool sends an event. The platform calls (create, share, publish, submit, shares) carry a per-install id header to extension.dev, and that id rotates every 30 days.

Reference ​

FlagEnvironment variableDefaultEffect
--features=<groups>EXTENSION_DEV_FEATURESlocallocal lists the 20 local tools; local,platform adds the 20 platform tools and lists 40; local,platform,extras adds the 11 extras tools and lists 51; a group named alone lists only its tools
--no-shipEXTENSION_DEV_NO_SHIP=1offLeaves extension_publish and extension_release_promote off the list; refuses a real submit, a store publish, review, cancel, rollout, release, listing sync or signing mint, a shared preview, and a share create or revoke
--project <workspace>/<project>EXTENSION_DEV_PROJECTunsetRefuses any call that names another project
noneEXTENSION_DEV_APPROVAL_GATEunsetChanges nothing since 11.0.0. The platform tools run on the hosted lane, which never reads it: the approval is asked before the platform is called, a share revoke waits for a workspace member, and a promotion and a real submission wait for a workspace owner, at any value
noneEXTENSION_DEV_NO_TELEMETRY=1 or DO_NOT_TRACK=1offTurns off the draft_seeded event and the per-install id header

When it fails ​

  • A call answers E_TOOL_DISABLED: the answer names the flag, and for a group that is off its hint spells the whole --features value to set. Add the group it names (platform or extras) to --features, drop --no-ship, or point --project at the project the call named.
  • A submit, promote or revoke answers approval-required: open the link, have a workspace owner approve it (any member may approve a revoke), then repeat the call with the returned approvalId.
  • A tool is missing from the client's list: the server started without that group. extension_try is in the platform group, and the storage, network, browsers, wait, reload, analyze, list and theme tools are in extras. Check the args in the client config and EXTENSION_DEV_FEATURES in its environment.
  • A page's text looks like an instruction: it sits inside an <untrusted-data-ID> fence. Treat it as data, and run the agent with --no-ship on pages you do not trust.

Next ​