Get started
Set up your agent
Pick your client below and add the server. Run it from the project, or pass --root with the app's absolute path: how the server finds your project has the rest.
Every client gets the same five tools, including check_ui, which the agent runs on its own output. Claude Code and Codex CLI also run the plugin's hook, which checks each edit as it happens, so there use the plugin instead; with other agents, add the CI check so what the agent skips still gets caught. Not every setup below has been run in its client yet: Support tiers says which have.
Tip
One .mcp.json for the team. Commit this file at the repository root, and VS Code, GitHub Copilot CLI and Grok Build start the server from it once each person trusts the folder or approves the server:
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem"] } }}It needs no --root: the server finds the project from the folder it starts in, the roots the client reports, or the files the tools are given. Cursor and the other clients read their own files, below.
Claude Code reads this file too, but there the plugin gives the same tools plus the hook. A team on Claude Code commits the plugin (Roll out to a team) and adds "disabledMcpjsonServers": ["onsystem"] to the same .claude/settings.json, so Claude Code does not register the tools twice.
Plugins for other agents
Link to the section Plugins for other agentsThe skill and the MCP server also come packaged for other agents, pinned to the same release as the Claude Code plugin. The hook that checks each edit runs in Claude Code and Codex CLI; elsewhere, the CI check catches what the agent skips.
Any agent with Agent Skills (Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode and others): the skill, from the repository. It goes to
.agents/skills/onsystem, which most agents read, and is linked into.claude/skillsfor Claude Code. Add the MCP server with your client's config below.npx skills add dgesteves/onsystemCodex CLI: Codex reads the same marketplace as Claude Code and installs that plugin: the server, the skill and the hook, which checks each
.tsxor.jsxfile anapply_patchadds or updates. Codex runs a plugin's hooks only after you review and trust them: open/hooksonce after installing.codex plugin marketplace add dgesteves/onsystemcodex plugin add onsystem@dgestevesGitHub Copilot CLI: Copilot CLI reads the same marketplace as Claude Code and installs that plugin's server and skill. Install it from the marketplace: Copilot CLI has deprecated installing a plugin straight from a repository.
copilot plugin marketplace add dgesteves/onsystemcopilot plugin install onsystem@dgestevesVS Code (GitHub Copilot agent plugins): run Chat: Install Plugin From Source from the Command Palette and enter
dgesteves/onsystem. VS Code reads the same marketplace as Claude Code and installs that plugin's server and skill. To use the Agent Plugins 1.0 package instead, add a clone'splugins/onsystem-agentfolder to thechat.pluginLocationssetting.Cursor: the Cursor plugin, in
plugins/onsystem-cursor. Until it is listed in the Cursor Marketplace, copy that folder to~/.cursor/plugins/local/onsystemand run Developer: Reload Window.
A client that loads the Agent Plugins format starts the server in the plugin's folder rather than in your project, so the server finds the project through the workspace roots the client reports, as VS Code and Cursor do. If a client reports none, the server finds the project from the absolute path of the file the agent passes to the tools, and asks for one when a call has none. To have it found from the start, add the server with the client's MCP config below instead.
Cursor and VS Code
Link to the section Cursor and VS CodeOne click installs it: Install in Cursor or Install in VS Code. To share it with the team, commit the config instead:
.cursor/mcp.json:
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "${workspaceFolder}"] } }}VS Code (Copilot agent mode)
Link to the section VS Code (Copilot agent mode).vscode/mcp.json:
{ "servers": { "onsystem": { "type": "stdio", "command": "npx", "args": ["-y", "onsystem", "--root", "${workspaceFolder}"] } }}A client that passes ${workspaceFolder} through unexpanded gets a warning on stderr, and the server falls back to its working directory, or the roots the client reports when that holds no project, or else the paths the tools are given.
Other clients
Link to the section Other clientsEvery client runs the same stdio command. Replace /absolute/path/to/app with the app's folder; the server also finds the project without --root when the client starts it in the project folder, or reports the folder as a root.
Claude Desktop
Link to the section Claude DesktopSettings → Developer → Edit Config opens claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"] } }}Restart Claude Desktop after saving.
Codex CLI
Link to the section Codex CLIcodex mcp add onsystem -- npx -y onsystem --root /absolute/path/to/appor in ~/.codex/config.toml:
[mcp_servers.onsystem]command = "npx"args = ["-y", "onsystem", "--root", "/absolute/path/to/app"]GitHub Copilot CLI
Link to the section GitHub Copilot CLIcopilot mcp add onsystem -- npx -y onsystem --root /absolute/path/to/appThat writes ~/.copilot/mcp-config.json:
{ "mcpServers": { "onsystem": { "type": "local", "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"], "tools": ["*"] } }}In a session, /mcp show onsystem lists its tools. Copilot CLI also reads the team's .mcp.json (or .github/mcp.json) in a folder you trust.
Windsurf (Devin Desktop)
Link to the section Windsurf (Devin Desktop)Windsurf is now Devin Desktop. Its default agent, Devin Local, reads the Devin CLI's MCP config: ~/.config/devin/mcp_config.json (%APPDATA%\devin\mcp_config.json on Windows) for every project, or .devin/mcp_config.json in the repository to share it with the team:
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"] } }}From the terminal, devin mcp add -s user onsystem -- npx -y onsystem --root /absolute/path/to/app adds the same entry to the user file, and -s project to .devin/mcp_config.json; without -s, it goes to .devin/mcp_config.local.json, for this repository only and ignored by git.
The legacy Cascade agent reads the same user file. Devin CLI versions before 3000.3 keep the servers under mcpServers in config.json at the same places, and move them on upgrade.
JetBrains IDEs (AI Assistant and Junie)
Link to the section JetBrains IDEs (AI Assistant and Junie)For AI Assistant, open Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add, choose STDIO and paste:
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"] } }}Set the server level to the project to run it only there. Junie reads the same format from .junie/mcp/mcp.json in the project, or ~/.junie/mcp/mcp.json for every project.
In Zed's settings.json:
{ "context_servers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"], "env": {} } }}Gemini CLI
Link to the section Gemini CLIgemini mcp add -s user onsystem npx -y onsystem --root /absolute/path/to/appThat writes ~/.gemini/settings.json, for every project; without -s user, it writes .gemini/settings.json in the project:
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"] } }}Gemini CLI starts MCP servers only in trusted folders: trust the project when Gemini CLI asks, or later with /permissions. Until then, gemini mcp list shows onsystem as Disabled, even from the user file. A headless run (gemini -p) cannot ask: pass --skip-trust, or set GEMINI_CLI_TRUST_WORKSPACE=true.
Antigravity (CLI and IDE)
Link to the section Antigravity (CLI and IDE)Antigravity CLI replaced Gemini CLI for unpaid-tier and Google One users in June 2026, and it keeps MCP servers in a different file: the CLI and the IDE both read ~/.gemini/config/mcp_config.json for every project, or .agents/mcp_config.json in the project. In the IDE, open the file from the … menu of the agent panel: MCP Servers, then Manage MCP Servers, then View raw config. In the CLI, /mcp opens the MCP manager.
{ "mcpServers": { "onsystem": { "command": "npx", "args": ["-y", "onsystem", "--root", "/absolute/path/to/app"] } }}Grok Build
Link to the section Grok Buildgrok mcp add onsystem -- npx -y onsystem --root /absolute/path/to/appor in ~/.grok/config.toml (--scope project writes .grok/config.toml in the repository instead):
[mcp_servers.onsystem]command = "npx"args = ["-y", "onsystem", "--root", "/absolute/path/to/app"]grok mcp doctor onsystem starts it and lists its tools. Grok Build also reads a project's .mcp.json once you trust the folder.
Claude Code without the plugin
Link to the section Claude Code without the pluginUse this instead of the plugin, not next to it: both register the same tools.
claude mcp add onsystem -- npx -y onsystemTo share it with your team, add --scope project, which writes the same entry to .mcp.json at the repository root: the file at the top of this page.
Any other MCP client: run npx -y onsystem --root /absolute/path/to/app as a stdio server. On native Windows, wrap it as cmd /c npx ....
The server sends usage instructions in its initialize result and in server/discover. Clients that ignore them benefit from one line in CLAUDE.md, AGENTS.md or .cursor/rules: "Before writing UI, use the onsystem tools. Run check_ui on every file you change and fix all errors." Run in a terminal, onsystem init offers to add a short section that says so to the project's AGENTS.md or CLAUDE.md, with npx -y onsystem check <file> for agents without the tools. It sits between BEGIN:onsystem-agent-rules and END:onsystem-agent-rules comment markers, which a later run updates in place.
Support tiers
Link to the section Support tiersEvery setup on this page follows the client's own docs, but not every one has been run in that client:
Tier 1, tested: CI runs it on every pull request, or the setup as these docs give it was run in the client and worked.
Tier 2, documented: written from the client's docs, and not run in the client yet, or only installed. It should work; if it does not, open an issue with the client's version.
The MCP server over stdio
- Tier
- 1
- Last checked
- Every pull request
- What was checked
pnpm smokestarts the built server as a client does and calls every tool with the MCP SDK's clients, in both protocol eras.pnpm pack-testruns the handshake with the packed package on Linux, Windows and macOS.
Claude Code plugin
- Tier
- 1
- Last checked
- 2026-10-21, Claude Code 2.1.299
- What was checked
claude mcp listshowed the plugin's server connected (#185). CI runs the plugin's hook on every pull request, with input shaped like Claude Code's.
Claude Code without the plugin
- Tier
- 1
- Last checked
- 2026-10-21, Claude Code 2.1.299
- What was checked
claude mcp add --scope projectwrote the.mcp.jsonat the top of this page, andclaude mcp listshowed the server connected (#185).
Gemini CLI
- Tier
- 1
- Last checked
- 2026-10-16, Gemini CLI 0.64.0
- What was checked
gemini mcp addwrote the config shown, andgemini mcp listshowed the server connected in a trusted folder (#185).
Agent Skills (
npx skills add)- Tier
- 1
- Last checked
- 2026-10-10, skills 1.7.2
- What was checked
- It installed the skill in
.agents/skills/onsystemand linked it into.claude/skills(#73).
Codex CLI
- Tier
- 2
- Last checked
- 2026-10-16, Codex CLI 0.163.0, install only
- What was checked
- The plugin installed from the marketplace, and
codex mcp addwrote the config shown (#185). Neither the server nor the hook has been run in Codex; CI tests the hook with input shaped like Codex'sapply_patch.
GitHub Copilot CLI
- Tier
- 2
- Last checked
- 2026-10-16, Copilot CLI 1.0.98, install only
- What was checked
- The plugin installed from the marketplace, and
copilot mcp listlisted its server and the one in a trusted folder's.mcp.json(#185). Neither was started.
Grok Build
- Tier
- 2
- Last checked
- 2026-10-09, Grok Build 1.0.50
- What was checked
grok mcp doctorstarted the server and found its five tools, before the package was renamed onsystem (#34).
Cursor
- Tier
- 2
- Last checked
- Not yet
- What was checked
- The plugin passes the checks of Cursor's plugin template (#73). Neither it nor
.cursor/mcp.jsonhas been run in Cursor.
VS Code
- Tier
- 2
- Last checked
- Not yet
- What was checked
- From VS Code's docs.
Claude Desktop
- Tier
- 2
- Last checked
- Not yet
- What was checked
- From Claude Desktop's docs.
Windsurf (Devin Desktop)
- Tier
- 2
- Last checked
- Not yet
- What was checked
- From the Devin Desktop and Devin CLI docs.
JetBrains IDEs
- Tier
- 2
- Last checked
- Not yet
- What was checked
- From the AI Assistant and Junie docs.
Zed
- Tier
- 2
- Last checked
- Not yet
- What was checked
- From Zed's docs.
Antigravity
- Tier
- 2
- Last checked
- Not yet
- What was checked
- From Antigravity's docs.
| Setup | Tier | Last checked | What was checked |
|---|---|---|---|
| The MCP server over stdio | 1 | Every pull request | pnpm smoke starts the built server as a client does and calls every tool with the MCP SDK's clients, in both protocol eras. pnpm pack-test runs the handshake with the packed package on Linux, Windows and macOS. |
| Claude Code plugin | 1 | 2026-10-21, Claude Code 2.1.299 | claude mcp list showed the plugin's server connected (#185). CI runs the plugin's hook on every pull request, with input shaped like Claude Code's. |
| Claude Code without the plugin | 1 | 2026-10-21, Claude Code 2.1.299 | claude mcp add --scope project wrote the .mcp.json at the top of this page, and claude mcp list showed the server connected (#185). |
| Gemini CLI | 1 | 2026-10-16, Gemini CLI 0.64.0 | gemini mcp add wrote the config shown, and gemini mcp list showed the server connected in a trusted folder (#185). |
Agent Skills (npx skills add) | 1 | 2026-10-10, skills 1.7.2 | It installed the skill in .agents/skills/onsystem and linked it into .claude/skills (#73). |
| Codex CLI | 2 | 2026-10-16, Codex CLI 0.163.0, install only | The plugin installed from the marketplace, and codex mcp add wrote the config shown (#185). Neither the server nor the hook has been run in Codex; CI tests the hook with input shaped like Codex's apply_patch. |
| GitHub Copilot CLI | 2 | 2026-10-16, Copilot CLI 1.0.98, install only | The plugin installed from the marketplace, and copilot mcp list listed its server and the one in a trusted folder's .mcp.json (#185). Neither was started. |
| Grok Build | 2 | 2026-10-09, Grok Build 1.0.50 | grok mcp doctor started the server and found its five tools, before the package was renamed onsystem (#34). |
| Cursor | 2 | Not yet | The plugin passes the checks of Cursor's plugin template (#73). Neither it nor .cursor/mcp.json has been run in Cursor. |
| VS Code | 2 | Not yet | From VS Code's docs. |
| Claude Desktop | 2 | Not yet | From Claude Desktop's docs. |
| Windsurf (Devin Desktop) | 2 | Not yet | From the Devin Desktop and Devin CLI docs. |
| JetBrains IDEs | 2 | Not yet | From the AI Assistant and Junie docs. |
| Zed | 2 | Not yet | From Zed's docs. |
| Antigravity | 2 | Not yet | From Antigravity's docs. |
The CLI, the GitHub Action and the ESLint plugin are not agent setups: CI runs all three on every pull request. To move a setup to Tier 1, run it in the client and open a pull request that updates its row with the client's version, the date and what you saw.
How the server finds your project
Link to the section How the server finds your projectThe server finds the project from --root, a config file in the working directory, or the working directory itself when it holds a project (a package.json or components.json). Started at a monorepo root, it serves every app and design-system package in it: the tools take the path of the file the agent is editing and answer for that file's project.
MCP roots, which the 2026-07-28 protocol revision deprecates, are the fallback: when the working directory holds no project (Claude Desktop starts servers in /), a 2025-era client that reports roots has its first file:// root used. When none of these gives a project (a client that starts servers in your home or the plugin's folder and reports no roots), each tool call's project is found from the absolute path it names, path (or filename, for check_ui with code): the nearest folder at or above it with a package.json, components.json or config, or the monorepo root above that, but never your home folder or the filesystem root. A project found this way loads a JSON config (onsystem.config.json) only: the server runs a JavaScript or TypeScript config only in a project it was started in. Until a call names one, the tools return an error that asks for it; after that, a call without one answers from the project found, as long as only one has been.
A --root (or a client's root) that is no project but holds projects in its folders, such as the folder of repositories that --root ${workspaceFolder} names when the editor has their parent open, is served the same way, from the absolute path each call names, but only for a file in that folder. That limit is for the paths tool calls name: a project's own config can still name files in its repository or workspace, as with --root <that project>. A relative path, a path outside the folder, or one that leads outside it through a link gets an error that asks for the absolute path of a file in it, and a workspace in the folder serves only its packages that are in it, links resolved, naming the others in the server's log. A project in the folder that is replaced by a link while the server runs is not read from where the link leads: the server keeps the design system it had read from the folder, and logs why. To serve one project of the folder, which also runs its JavaScript or TypeScript config, start the server with --root <project folder>.
The server speaks MCP over stdio, in both protocol eras: the 2026-07-28 revision (stateless, with server/discover) and the 2025 one (the initialize handshake), the era chosen by the client's first message.
Optional: search these docs from your agent
Link to the section Optional: search these docs from your agentThese docs are an MCP server at https://onsystem.vercel.app/api/mcp, so your agent can search and read them. Its searches call no model. It is separate from onsystem's own server, which checks your code.
claude mcp add --transport http onsystem-docs https://onsystem.vercel.app/api/mcpAgents that read files can take llms.txt, an index of every page, or llms-full.txt, all the docs in one file.