Component Code
mcp.fabio.cv/component-code/mcpAsk your agent for a component and say “show it in Component Code”. The chat shows it running beside its code, with every value a control.
Build me a toggle with a label and a disabled state. Show it in Component Code.
<Toggle
label=
checked={}
disabled={}
/>Here it is. Switch it, or change its label and state in the code.
What for
Review an agent's work
Try the API it wrote in the chat, before it lands in your codebase.
Say what broke
Break it, then say so. The agent already has the code as you left it.
Add it
The tools
component_code_show
| Input | What it is |
|---|---|
source | The component’s module in TSX. It may import only from react. |
code | How it is used, in JSX: elements, props and text, with no hooks, calls or conditions. |
file | The file named in the code’s tab. |
controls | How a prop is changed: a list of options, { min, max, step } for a number, or false. |
component_code_show_html
| Input | What it is |
|---|---|
files | The files by name, such as index.html, style.css and script.js, each in its own tab. They run together as one page. |
controls | The values the reader can change: an attribute, a CSS property or custom property, or a JS const. true, options or a range. |
What to ask for
Copy a prompt, then make it yours.
Try it before you build it
See a component working, and change it, before any of it is in your codebase.
Build me a pricing card with a plan name, a price, a list of features and a highlighted state. Show it in Component Code.
Tune the numbers
Drag sizes, durations and spacing until it feels right, then copy the code.
Make a progress ring with its size, stroke width and value as numbers. Show it in Component Code so I can drag them.
Look at a component from your repo
Bring a component into the chat to try its props, without running the app.
Read src/components/Avatar.tsx and show it in Component Code with its sizes as options and its name as text.
Learn by changing it
Explain a layout or an effect with something to play with, not only words.
Explain CSS flexbox with a small component in Component Code where I can change the direction, the alignment and the gap.
Check the edge cases
Type a long name, an empty one or an emoji, and see where it breaks.
Show our Tag in Component Code with its label as text, so I can try long labels, empty ones and emoji.
What changed
0.5.02026-11-26A new home at ui.fabio.cv and mcp.fabio.cv, each tool named after itself, and mcp-ui-tools is now @fabiocv/mcp.
- The tools are
component_code_showandcomponent_code_show_html, named after the tool so they stay apart when an agent has many. - Hosted at https://mcp.fabio.cv/component-code/mcp, with its page at https://ui.fabio.cv/mcp/component-code/.
- In the MCP Registry as
cv.fabio/component-code.
0.4.02026-11-19A title for the preview, hidden tabs, a side closed or shown alone, and a line to drag when the two are stacked.
- The same line to drag when stacked, in the chat.
0.3.02026-11-18A handle on the line between the preview and its code.
- The same handle, in the chat.
0.2.22026-11-18Draggable panels for the preview and its code.
- The same panels, in the chat.
0.2.12026-11-17Install steps for Codex, and a way in when an app can't find npx.
- Codex adds it by its URL.
- An app that can't find
npx, as when Node comes from nvm, adds the URL instead.
0.2.02026-11-17A keyboard-friendlier menu of a prop's options, a preview that changes its own code, and Orbit in the right colours.
- The same menu, in the chat.
- A component the agent writes changes its code the same way, so a click in the preview shows in the code the agent gets. The tool asks the agent to write components that call these handlers.
0.1.12026-11-16Links to the new repository.
- Links to its repository, github.com/naso/mcp-ui-tools.
0.1.02026-11-16The first release: Component Code, its MCP App and Orbit.
show_in_component_codeshows a component in the chat in Component Code, as an MCP App.show_html_in_component_codeshows HTML, CSS and JS running in the chat.- As the reader changes a value, the agent gets the code as it now is, and what the preview threw, with their next message, in hosts that take model context. An info icon tells the reader the chat sees this state.
- Runs over stdio with
npx @fabiocv/component-code-mcp, and over HTTP athttps://mcp-ui-tools.fabio.cv/component-code/mcp.