Connect your AI agent over MCP
Design Mode talks to Claude Desktop, Claude Code, Cursor, Windsurf, Cline, Continue, Zed — any AI coding agent that speaks Model Context Protocol. Pick one of three connection modes, paste the snippet, restart your agent.
What is Model Context Protocol (MCP)? MCP is Anthropic's open standard for letting AI agents call external tools safely. A "tool" is anything the agent can read from or write to — a database, a filesystem, a web service, or in this case, the design state of your live page. Design Mode exposes eight MCP tools so your agent can read every edit you made in the side panel, push patches back to the page, grab screenshots, and mark your comments resolved — all without copy-paste. MCP connection, mode, and token management now live on their own dedicated page inside the extension, opened from the header MCP chip.
Why three connection modes? Different teams have different constraints. Cloud is the no-install default for solo makers and anyone whose agent can't reach localhost. Local is for power users who want zero network egress and the lowest possible latency. Self-hosted is for teams who want Cloud ergonomics on their own infrastructure.
Cloud
Default. Hosted SSE relay.
Use mcp.designmode.app as the relay. The extension dials the relay over HTTPS, your agent connects via the same URL with a bearer token. Edits flow through; nothing persists.
Best for: anyone who'd rather not run a local process — including agents that can't reach localhost (sandboxed CI, remote VSCode tunnels, web-based agents).
Local
Fastest, fully offline.
Run the companion MCP server on your own machine. Nothing leaves the laptop.
Best for: power users with a terminal who want zero network egress and the lowest possible latency.
Self-hosted
Same protocol, your own infra.
Fork packages/mcp-cloud and deploy on any Node.js host with Redis — Vercel, Railway, Fly, your own VM. Point the extension at your URL and issue your own bearer tokens.
Best for: teams that want the Cloud-mode ergonomics but on infrastructure they operate.
Mode comparison
Setup steps, privacy posture, agent compatibility, and cost across the three modes.
Cloud
Local
Self-hosted
Setup
Privacy
Agent compatibility
Cost
Config snippets
Paste the right block into your agent's config file, replace any dm_<your-token> placeholder with the bearer token from the extension's dedicated MCP page (Copy token), and restart the agent.
Give your agent the workflow
The config above connects your agent to Design Mode. This one file tells it what to do when you press Send to Agent: read your edits, comments, and token changes over MCP, map each to its source, and implement them — updating your Changes tab as it works. Drop it into your agent's commands folder and run /design-mode.
Where to save it
.claude/commands/design-mode.md.cursor/commands/design-mode.md.codex/prompts/design-mode.md.windsurf/workflows/design-mode.mdAny other MCP client works too — save the file wherever it looks for slash-command or workflow prompts.
The eight MCP tools
Every mode exposes the same eight tools — your agent can read the current page diff, push patches back, grab screenshots, track change status, and resolve your comments as it works.
get_changesReturn the list of style/text/DOM changes for the current session.
apply_changesApply a structured patch back to the page from the agent.
set_change_statusMark changes/comments to-do, in-progress, or resolved as you implement them — the user sees the status in their Changes tab.
clear_changesWipe the current change buffer — useful between iterations.
get_session_summaryHigh-level diff: what selectors changed, by how many properties.
export_changesMarkdown export with selector → property → value lines.
get_screenshotVisible-tab PNG of the page in its current edited state.
mark_comment_resolvedMark a pinned comment done (or reopen it) once the agent has acted on it.
Privacy: Local mode keeps everything on your machine. Cloud and Self-hosted modes pass messages through the relay without persisting payloads. Full privacy disclosure →
Compatible AI coding agents
Any agent that supports Model Context Protocol works with Design Mode. Confirmed:
- • Claude Desktop
- • Claude Code
- • Cursor
- • Windsurf
- • Cline
- • Continue
- • Zed
- • VS Code (with MCP extension)
- • Any custom MCP client
Don't see your tool? If it speaks MCP, the Self-hosted or Cloud snippet above will work. File an issue on GitHub if you hit a quirk and we'll add a dedicated snippet.