Skip to content

MCP server ​

@extension.dev/mcp gives a coding agent hands on a real browser and on the platform: 35 tools that scaffold, run, inspect, test and build an extension on your machine, and ship it through extension.dev. Reach for it when the agent should debug from evidence, instead of fixing a content script that never injected without noticing it never injected.

Quick start ​

bash
claude mcp add extension-dev npx @extension.dev/mcp

Then ask the agent to run your extension: it starts a dev session and a browser opens with the extension loaded. The same server works with Claude Desktop, Cursor, VS Code, Codex and any MCP client, and every client's block is on Install in your client.

One command adds the server to Claude Code, and the first prompt runs the extension, recorded from a real Claude Code session.

How it works ​

The server does not reimplement Extension.js. It wraps the CLI and the local agent bridge. Tools that run a build or launch a browser shell out to the extension command, and so do the act verbs (eval, storage, reload, open), doctor, dom_snapshot and assert. The rest run in process and read the session's ready.json contract and the bridge's local channel as any other client would. The agent and the CLI always behave the same way, and the agent never holds anything the CLI does not.

Two tool groups ​

Without --features the server starts with the local group alone, the 24 tools that work on this machine. The 11 platform tools (account, workspace, builds, share, release and store) come on with --features=local,platform or EXTENSION_DEV_FEATURES=local,platform:

bash
claude mcp add extension-dev -- npx @extension.dev/mcp --features=local,platform

Or install it as a plugin, which adds the server plus the /extension, /extension-add, /extension-debug and /extension-publish commands. The plugin starts the server with the default local group:

/plugin marketplace add extensiondev/mcp
/plugin install extension-mcp@extensiondev-mcp

The server is listed in the MCP registry as io.github.extensiondev/mcp. The same shape works in any client configured by hand:

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

Session gates ​

extension_dev is the entry point, and the session it starts decides what the act tools may do.

  • extension_storage, extension_reload, extension_open and extension_dom_snapshot ride the local control channel, which a dev session carries by default. Start it with allowControl: false for a read-only session (logs, inspect, wait, doctor).
  • extension_eval is the one gate that stays off. It needs a session started with allowEval: true, which writes a session token file with 0600 permissions and implies control.

A session does not grow a gate on a second call: that call is refused so the session does not fork. Call extension_dev again with the flag you need plus replace: true, which stops the first session.

Reading is always free. Running code inside the extension is opt-in per session. The control verbs act on the extension this machine already runs, which is why they are on unless you turn them off.

Engine pinning for scaffolds ​

A project scaffolded by extension_create declares its Extension.js version in its own package.json. That project-local pin wins over the server's environment, so later sessions build with the version the scaffold declared.

Pair with the skill ​

The server pairs with @extension.dev/skill, which teaches the agent when to reach for each tool. The server without the skill gives an agent hands with no instructions.

Reference ​

The server registers 35 tools, one page each, generated from the schemas the server registers so the pages cannot drift from the code. The 24 local tools need no account. The 11 platform tools come on with --features=local,platform and are described on Platform tools. Every page carries the inputs, whether the tool only reads, the gate it needs, and a prompt that reaches for it.

Create and build ​

ToolWhat it does
extension_add_featurePlan the surface before adding an options page, a popup, a side panel, a content script, a devtools panel, a new tab page or a background script.reads
extension_buildBuild the extension on this machine into dist/<browser>/; never for sharing (extension_builds).acts
extension_createCreate an extension project from a template (extension_templates); it may init git.acts
extension_docs_searchFind the docs page to cite before answering about a WebExtension API, a manifest key, a permission or a browser difference.reads
extension_templatesBrowse the template catalog or read a template's files.reads

Run ​

ToolWhat it does
extension_devRun the extension while you edit it (dev build, hot reload, browser): the first call for "run my extension".acts
extension_startRun the PRODUCTION build in a browser (extension_dev is for writing code); no hot reload or extension_logs.acts
extension_stopStop a dev or start session, naming the server and browser pid it ended.acts
extension_tryRun a published extension.dev build in a fresh profile on this machine, no install, and screenshot it; warn the person about what it can reach.acts
extension_waitWait for a session to be ready, or for: "rebuild" after an edit; only after wait:false, a ready.status not "ready", or noBrowser; answers port, controlPort and cdpPort or rdpPort.reads

See ​

ToolWhat it does
extension_analyzeAnalyze a BUILT extension in dist/<browser>: sizes, entries, permissions, store checks (not on a dev build).reads
extension_doctorDiagnose a dev session leg by leg, each with its remediation; run it first when an act tool errors unexpectedly.reads
extension_dom_snapshotTake a shallow DOM snapshot of one open surface or targetId, or list what is open (listTargets on the debug port, listTabs).reads
extension_inspectInspect a web page (or targetId) over the debugger protocol: HTML, DOM, console, probes, closed shadow roots.acts
extension_list_extensionsList the extensions in a session's browser; its own carries ownExtension:true.reads
extension_logsRead a dev session's logs from every context in one timeline, or follow:true for live frames after the replayed ring.reads
extension_manifest_validateValidate a manifest.json across browsers; buildBlocking lists the errors that make extension_build refuse.reads
extension_screenshotTake a .png of one open surface, page or targetId in a live session (Safari: pages only); open it with extension_open first.acts
extension_theme_verifyVerify a Chrome theme manifest headless: the colors Chrome would paint and the keys it discards.reads

Test ​

ToolWhat it does
extension_assertRun a test stage on an extension_dev or extension_start session: pass, fail, not ready (a precondition) or inconclusive per expectation.acts

Act ​

ToolWhat it does
extension_evalEvaluate JavaScript in a running extension's background, surface, content script, page or targetId.acts
extension_openOpen an extension surface or a url, or replay the toolbar action or a shortcut, over the control channel (by hand: --allow-control).acts
extension_reloadReload the extension's background, or a tab, over the control channel (allowControl); a background reload waits up to 5 s.acts
extension_storageRead or write one chrome.storage key from the background, over the control channel.acts

Browsers ​

ToolWhat it does
extension_browsersFind, install and remove browsers Extension.js launches.acts

Platform ​

ToolWhat it does
extension_approvalsRead or revoke one approval on extension.dev; revoke a pending or unused one approved by mistake (owner token).acts
extension_authSign in to an existing extension.dev project (a code for extension.dev/device, then deviceCode and waitSeconds), list stored logins, or clear them.acts
extension_buildsRead, download, rebuild and configure platform builds.acts
extension_preview_webPreview a build in the web emulator; share:true returns a link anyone opens with no install (the preview://build default is for developing extension.dev itself).acts
extension_project_createCreate an extension.dev project from its GitHub repository, BEFORE extension_auth.acts
extension_publishPublish a build on extension.dev: the link for testers, with a download and a run command for each browser; use it first to share or ship (no project yet: extension_project_crea...acts
extension_release_promoteRelease a build to a channel on extension.dev.acts
extension_release_statusRead where a project stands on extension.dev: channels, builds, store submissions and reviews, history, rollout, listings.reads
extension_sharesList, create and revoke emulator preview links for a tester, and list and revoke build links (a build link or channel link comes from extension_publish).acts
extension_submitSubmit a platform build to the Chrome, Firefox, Edge and Safari stores through extension.dev.acts
extension_submit_checkRead a store submission or ask for an approval, under a read-only hint; it executes nothing.reads
extension_workspaceRead the workspace; change a project's settings.acts
extension_workspace_createCreate a missing extension.dev workspace, before extension_project_create.acts

The flags, the approvals that wait for a person and the one telemetry event are on Server flags and telemetry. What works against Safari is on Run on Safari.

When it fails ​

  • A platform tool returns an auth error: the stored device login lives at most 7 days. Log in again with extension_auth, or set EXTENSION_DEV_TOKEN.
  • The device page says the project does not exist: login mints a code for any name, and the check happens at approval. Create the project at extension.dev/new, then log in again.
  • extension_eval answers eval-disabled: the session was started without allowEval: true, and no route of the tool runs without that token. On a Chromium MV3 session the context defaults to page, the active tab. Pass context: "background" to reach the service worker over the debug port.
  • An act tool refuses: eval and control are session opt-in. Call extension_dev again with the gate you need plus replace: true, then retry.
  • extension_list_extensions misses an extension: a dormant MV3 service worker with no open page is absent until it wakes.

Next ​