About Caret Desktop
Caret Desktop is an MCP server published by precious112 in the RAG category: caret — a design canvas over your real code. Click a headline and retype it, pick a colour, drag an edge: every change lands in your source files. Free, open source, runs on your machine. Conduid read 34 tools from its source: caret_probe_tool, caret_write_page, commit_foundation, complete_sync, create_page, describe_asset and 28 more. No package is published for it, so it installs from a source checkout.
The repository has 56 stars and 8 forks, is licensed Apache-2.0, and its last commit was on 18 Oct 2026. The latest release is v0.3.0 (17 Oct 2026): Generate an asset: images land on a branching board. It follows v0.2.0 (8 Oct 2026), and the 5 most recent releases go back to v0.1.1 (13 Sep 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include ai-design, design-as-code, design-systems, design-to-code, design-tool and desktop-app.
Install
git clone https://github.com/precious112/caret-desktopTools (34)
caret_probe_toolprobecaret_write_pageWrites a design page. Use this when asked to change page text.commit_foundationWrites the foundation the user picked and regenerates the rules files every agent session reads. Call this immediately after present_options returns a candidateId — an interview that is never committed leaves the project with no foundations at all.complete_syncCall this when you have finished a design→app sync, with the syncId you were given. This is the only thing that advances Caret's sync bookmark — skip it and the next sync will re-report everything you just did.create_pageCreates a new design page with its metadata sidecar. Fails if the page already exists.describe_assetWrites the alt text and the plain-language description of what an asset looks like. Do this after looking at a new asset: the description is what every later session reads instead of the pixels, so 'wide, dark, empty space top-left' is worth more than 'a photo'.generate_assetMakes an image, texture, logo mark, 3D object or animated background shader and adds it to the project's assets, returning the @tag to reference it. Use this when the design you are discussing needs something the user does not have — say what it is in plain words, the way you would describe it to somebody. Caret asks the user to approve it first (images and 3D cost the user money on their own key), generates, and lets them point at what they want to keep. Everything about how it is lit, framed and coloured comes from the project's foundation, so describe the SUBJECT and not the styling — except a shader, where hues and mood belong in the description.get_assetThe actual pixels of an asset, plus its metadata. Use this before placing an asset somewhere the composition matters — the description tells you the size, but only the image tells you whether a headline can sit on it.get_driftCompares content hashes recorded at the last sync against the files on disk, both directions. 'forward' entries are ordinary design→app syncs waiting to happen; 'app-drift' entries are app files someone changed directly since their design was translated — the design layer no longer tells the truth about them; 'conflict' means both sides moved and a human must choose. Only mapped files appear: the mapping comes from report_sync_mapping calls during past syncs.get_flowsThe flow graph (which page leads where, including error paths) and each page's declared states.get_guideThe design layer's authoring rules (the same text as .caret/AGENTS.md): caret-ids, inline editing, page metadata and states, shared components, packages, components. Read this before writing a page for the first time in a session; page-writing tools refuse until you have.get_import_worklistFor an existing app: lists the screens Caret found that have no design page yet (code → design), the shared layout files every screen sits in, and how to bring them in. Bring the shell in first with write_design_file (layouts/AppShell.tsx), then each screen with create_page (meta.importedFrom = its app files), then record EVERY result with report_sync_mapping — an imported page without a mapping reads as a new design, and the next sync would write a duplicate of the screen into the app.get_pageThe full source and metadata of a single design page.get_paramsResolves every panel property of one element FROM SOURCE: token bindings named as bindings, the responsive variant active at the given viewport, inherited/computed origins, and typed refusals where a write cannot land. This is the same resolution the property panel shows the user — read it before styling an element so your edit speaks the same vocabulary (tokens first, exact values second).get_projectThe structure of this project's design layer: its pages with their metadata (a page at a time), every flow, and the current sync state. Call this first — it is the map.get_screenshotA rendered screenshot of a design page's FULL scroll height, captured fresh at 1440px wide and delivered as 900px-tall frames (top to bottom) so nothing is downscaled. A long page arrives in parts; the result says how many frames remain and which part to request next. Use this to look at your own work: after writing a page, screenshot it and check the whole page renders the way you intended.get_sync_worklistThe design files that changed since the last design→app sync. A net cumulative list: a change made and later reverted does not appear.get_tokensThis project's foundation tokens — colour, typography, spacing, radius. These are binding: styling that does not come from here will look wrong next to everything that does.install_componentInstalls a ready-made component into .caret/components/catalog/ and returns the path a page imports it from. Use "@registry/name" for shadcn-style registries (@shadcn, @magicui, @aceternity, @smoothui, @kokonutui) or "21st:<id>" for a 21st.dev component. Plain markup comes first: install a component only when it does a job HTML and CSS cannot do as well, or the user asked for it. Fill it with the page's real content, never its sample data. Importing a registry path a page needs also works: Caret supplies missing registry imports after every write. The user is asked once per library before anything is downloaded.list_assetsThe images, vectors, videos and 3D models the user has added: tag, kind, size and a short description, a page at a time. Search by words in the tag or description, or filter by kind. Use get_asset to look at one.present_asset_optionsShows two to six assets that are ALREADY in this project's library as options against one question ("Which hero image?") and waits for the user to pick. It renders in the chat beside the canvas, so use it mid-conversation whenever a plan turns on which existing asset to use — do not make the user open the Assets tab to answer. Tags must name assets that exist; to make a new one, use generate_asset instead. Returns the picked tag, or null when the user dismissed the choice.present_optionsRenders complete foundations as live specimens — real typefaces, palettes applied to sample components — and waits for the user to point at one. Pass the vibe tags you inferred from their answers and Caret narrows its curated library; you cannot pass your own colours or font names, by design. Returns the chosen candidate id for commit_foundation. Tags are matched exactly against a fixed vocabulary, so use words FROM THIS LIST ONLY: ${LIBRARY_TAGS.join(", ")} Pick the 3-6 that best fit what the user told you. Tags outside this list are rejected rather than silently ignored.present_questionShows the user a plain-language question with a few choices and waits for them to pick. Use this to run the foundation interview. Ask about the product and how it should feel — never about design terms like type scale, radius or saturation, which the user has no way to answer. Caret's suggested questions are in the caret://interview prompt.propose_design_updateWhen get_drift shows 'app-drift' or 'conflict' on a page, this starts the reverse half: Caret's agent translates the app's current truth back into a PROPOSAL page, and the user reviews it side by side against the current design and chooses. Nothing is written to the design without that choice — never write .caret/ pages yourself to 'fix' drift.propose_variantsRegisters N variant pages you already wrote as takes on one page, so Caret shows them in the playground for a side-by-side pick. Write each take first as its own page (id like '<pageId>--v1', meta.variantOf set to the original page id, same content shape as the original), then call this. The user picks one in Caret — and can branch further rounds from any take there; the chosen take replaces the original page and every take directory is cleaned up — the takes belong to the exploration once proposed.report_sync_mappingCall this DURING a design→app sync, once per design file, at the moment its app files are written — and after bringing an app screen INTO the design layer (get_import_worklist), once per imported page — you know the correspondence right now, and Caret cannot infer it later. The mapping powers drift detection and incremental sync: skip it and the next sync re-reports everything you just did, and app-side edits to these files become invisible to the design layer. Report every app file the design file's content landed in (a page split across a route and extracted components lists them all).run_design_checksRuns the mechanical slop-tell checks on a rendered page (or every page): contrast, identical card rows, a border on everything, missing alt text, upscaled images, placeholder boxes, happy-path-only states. Call this BEFORE declaring page work finished — Caret runs the same checks itself after its own sessions, and a finding you fixed unprompted is a finding the user never sees.set_paramWrites `<caretId>/style/<property>` as a minimal source splice — the exact write path the user's own panel edits take, undoable on the same stack. Prefer `token` (a foundation token name like 'brand-500') over `raw`; a raw value detaches the element from the token system. The edit lands on the responsive variant active at the given viewport. A refusal names its cause — respect it rather than editing the file around it.start_syncHands YOU the design→app sync worklist: the returned `prompt` is the full task. Carry it out, call report_sync_mapping per design file as you write its app files, and finish with complete_sync. Call it only when the user asks you to sync.update_tokensReplaces the foundation tokens and regenerates the rules files every agent reads. Changing these changes how everything in the project looks, so make the change the user asked for and nothing else.view_referenceShows you a reference screenshot from a link a design library returned (Lazyweb, 21st.dev, Gummble). Use it when a search result gives an image only as a URL. Public https image links only.write_design_fileWrites a shared design file — `layouts/<Name>.tsx` or `components/<Name>.tsx` inside the design layer — for chrome or patterns more than one page uses (an imported app's AppShell, a card used on every list). Pages import them as `../../layouts/<Name>` / `../../components/<Name>`. Use this instead of your own file tools: it writes atomically and records the change. Pages go through create_page/write_page; installed catalog components are not writable here.write_flowCreates or replaces a flow definition — the user-journey arrows drawn between pages on the canvas. Steps name pages by id; `next` lists the step pages an arrow leads to. Always use this rather than writing .caret/flows/ files yourself: the file format is Caret's to own.write_pageReplaces the source of an existing page. Prefer this over your own file tools: it writes atomically, validates, and records what changed.Security checks
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README