Guide · By Danylo Pravda · Updated
Give your coding agent a component system
A coding agent builds UI from what it knows. Left alone it reaches for the same few pieces in every app: a text input for an age, a dropdown for three choices, a card around everything, the chart library's default colours. The app works and looks like every other app its agent wrote this month.
Beamline changes what the agent knows. Through one MCP server it gives the agent 590+ designed React components and screens, says what each one is for and what to use instead, installs only the ones a screen needs into your repo, and checks the result. This guide walks through exactly what happens, so you know what your agent is doing and why.
The short version
- Add the MCP server
https://mcp.beamline.io/mcpto your agent and sign in (Google, GitHub or an e-mail code). - In your app's folder, run the connect command once, so every later session knows Beamline is there.
- Ask for a screen. The agent reads the menu, maps every field to a part, installs those parts, builds the working UI, and refines its design.
Each agent's exact steps are on its own page: Claude Code, Codex, Cursor, VS Code, Gemini CLI, Windsurf and any MCP client.
Moving an app that already uses another kit works the same way, one screen at a time. The pages for Tailwind Plus, shadcn/ui, Untitled UI and MUI each end with the message to send.
Step 1: the agent reads the menu
The server offers four tools for choosing and installing your interface.
Scroll sideways to compare columns
| tool | what the agent gets |
|---|---|
beamline_capabilities | the menu, in parts: first a guide to which part fits which kind of data and screen, then every part with what it is for and what to use instead |
beamline_component | for the parts it picked: the exact import, required props, every typed prop and working examples to copy |
beamline_picture | a labelled image of a candidate's states, including paid parts before you buy |
beamline_install | one command that installs exactly those parts, one stylesheet and the look |
The instructions are short on purpose. Codex decides how to use a server from the first 512 characters of its instructions, and Claude Code cuts instructions and each tool description at 2,048 characters, so Beamline's open with what it is, when to reach for it and the order of the tools.
Step 2: every field gets the most specific part
Before installing anything, the agent matches your workflow to a screen, then chooses the controls your data needs. The menu helps it explore beyond familiar defaults. No project note is required:
- an age is a number field or a slider, not a text input;
- two to five choices are a segmented control or a radio group, not a dropdown;
- choices that need a sentence each are radio cards;
- steps are a stepper, and a headline number is a metric card.
The map follows the screen's density. A vendor record edited all day takes compact controls (inputs, selects, segmented controls in two columns); onboarding takes radio cards with a sentence each. An input, a select or a plain card is right where it fits your work. The goal is the best finished experience for your task, with useful depth and deliberate design.
Step 3: one install, only what the screen needs
The agent calls beamline_install once with every part it mapped and a look (Prism by default: black, neutral glass, a
white main action). It gets back one command to run in the app folder. The install link in it works for 30 minutes,
names the exact version your licence covers, and installs:
- only the chosen parts, as compiled packages by default, or as plain React source you can edit;
- one stylesheet, imported once in the app's entry (
app/layout.tsxin Next.js); - the look, applied by wrapping the app once in
UIRoot.
import { UIRoot } from "@beamline/runtime";
import { prism } from "@beamline/look-prism";
export function App({ children }: { children: React.ReactNode }) {
return (
<UIRoot preset={prism} theme="dark" className="look-page" style={{ minHeight: "100dvh" }}>
{children}
</UIRoot>
);
}
Your package.json lists only what was chosen. React stays yours: the installer never changes your React version and
stops with a message if your range does not allow React 19. The install docs cover both paths in full.
Step 4: props from the source, never guessed
Before writing each part, the agent calls beamline_component for it. Every Beamline part follows the same API
(variant, size and tone; value, defaultValue and onValueChange for anything stateful; className on the
root), so after a few parts the agent rarely surprises you, and the component text gives it the rest: the import, the
required props and examples it can copy. The conventions are the same rules, written for people.
Step 5: finish the experience
The agent connects your real data and actions, uses the screens, and improves the result on desktop and phone. It should develop the whole flow, including feedback and recovery. A build or a set of imported components does not tell you whether the interface works well.
An optional audit utility can flag selected code patterns or exercise a page in a browser. The agent decides whether it helps. It does not judge design quality or block completion.
What installation adds
The plugin registers one design skill and the Beamline MCP connection. Codex, Claude, Grok and Cursor receive the same skill.
It adds no instructions to AGENTS.md or CLAUDE.md, no Cursor workflow and no Stop hook.
Without plugin support, use the standalone connection from your app folder:
npx --yes -p https://mcp.beamline.io/cli/latest.tgz beamline-connect --hosted https://mcp.beamline.io/mcp
It writes the same skill to each supported client's skill folder and configures the MCP connection. Reconnecting removes legacy marked Beamline instruction blocks and its old Stop hook while preserving your own rules.
Signing in and who gets what
The free sample opens at once, without an account. To use what you bought, sign in from your agent (/connect shows how in each one). The complete system is one payment of $49 launch price with lifetime updates, for one person's account, MCP server, installs and full library. Teammates, contractors and clients may use, edit, build and ship the code you install as part of that app, without a Beamline account. They need their own licence to use Beamline's MCP server or library, or take Beamline parts into other apps. A part outside what you hold comes back marked, with the name of the pack that has it, so the agent can pick another or tell you.
What to ask for
Name the screen and the data, not the components: "a sign-up page with name, work email, password and team size", "a settings page for profile, notifications and billing", "a trading screen for BTC perpetuals on our feed". The menu includes whole screens for the common ones (sign-up, settings, a CRM pipeline, an analytics home, an agent workspace, a trading terminal), so the agent starts from a designed screen and wires your data into it.