Connect VS Code to UI Rules
Choose what to connect
In UI Rules, click Connect in the top bar and choose VS Code. Select an organization, brand, or project, or turn on Whole account. Turn on Read-only if this tool should not make changes.
Copy the URL or configuration shown for your selection. It includes your chosen scope, so keep the full URL, including anything after ?. See connection scopes for how the choices work.
Install and sign in
- Open the codebase you want to work on in VS Code.
- In UI Rules Connect, click Add to VS Code.
- Review the installation. Choose Install in Workspace to save it with this codebase, or Install for the user installation offered by the flow.
- Start the server when VS Code asks.
- Sign in to UI Rules in the browser and approve the connection.
- In VS Code's agent chat, check that the UI Rules tools are enabled for the task.
If you prefer manual configuration, use the configuration provided in Connect for your selected installation target. Keep existing server entries and retain the full URL. The installation location and UI Rules connection scope are separate settings.
Start working
Tell your agent which brand and project to use. For example:
Use the Acme brand and Website project in UI Rules. Read its guidelines and design tokens before building the page.
Use your own brand and project names. With an organization or brand connection, you can ask the agent to work on another brand or project within that scope without switching connections.
If you connected before the October 31 update, remove the old UI Rules connection and add it again using these steps. API keys no longer work for MCP connections. See Troubleshooting if sign-in or tool calls fail.
See VS Code's MCP documentation for server management and tool approvals.
