mcp

v0.3.7
@vamos-ui/mcp Checked 2 days ago Published 15 days ago

MCP server that gives AI agents the Vamos UI components, blocks, tokens and rules.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_rules Design rules

The design rules every screen built with Vamos UI must follow: tokens only, accent only for the one primary action/active state/data highlight, glass budget, density tokens, kit components over hand-rolled markup, no AI-looking patterns, realistic content, accessibility. Useful once at the start of a UI task, before code is written.

get_theming Theming guide

The 7 theme axes (dark class, data-material, data-accent, data-density, data-font, data-radius, data-scene) with values, what the corner setting covers, the semantic Tailwind classes, how to add a brand accent, and the full CSS token table. Useful when setting up a project, changing colours, fonts, density or corners, or looking up a token name.

ParameterTypeDescription
include_tokensbooleanInclude the full token table (default true). Pass false for a shorter answer.

list_items List registry items

Lists components, blocks (whole screens), lib and style items, grouped by docs group or block category. Use it to browse what exists, e.g. all blocks in "Dashboards" or every component in "Overlays & feedback"; search is faster for a specific need.

ParameterTypeDescription
categorystringBlock category, partial match, e.g. "Dashboards", "Authentication", "List pages".
groupstringComponent docs group, partial match, e.g. "Forms", "Overlays & feedback", "Charts".
tagstringExact tag, e.g. "crm", "cms", "site".
typestringOnly this item type.

get_item Get a component or item

Usage snippet, props tables, examples, when-to-use/avoid guidance, dependencies and file list of one registry item. Returns the component's real API, so code can use actual props. Source files are only included with include: ["files"].

ParameterTypeDescription
name *stringRegistry item name, e.g. "button", "data-table", "lib-utils".
formatstringmarkdown (default, readable) or json (the raw registry item).
includearraySections to include. Default ["examples","props","guidance"]; add "files" for full source.

get_block Get a block (whole screen)

Full source of a block — a complete screen such as dashboard-01, login-01, list-01 — with the kit components it uses and how to adapt it. Use it after plan_screen suggests a block, or when the user names one.

ParameterTypeDescription
name *stringBlock name, e.g. "dashboard-01", "settings-01".

plan_screen Plan a screen

Turns a screen description into a plan: the block to start from (plus alternatives) or, for a website, the matching site recipe (pages, sections, kit components, facts to supply), extra components to add with reasons, the install command, density and a build checklist. Use it when a new page or screen is requested.

ParameterTypeDescription
description *stringThe screen in a sentence or two: purpose, data, main action. E.g. "CRM invoices list with filters, status badges and bulk delete".

verify_code Verify UI code

Lints a file against the Vamos UI rules: raw colours and palette classes, dark: variants, hard-coded fonts, icon-only buttons without aria-label, images without alt, onClick on non-interactive elements, positive tabIndex, missing "use client", arbitrary z-index, hand-rolled modals/dropdowns/tooltips. Returns each issue with its line and a suggested fix.

ParameterTypeDescription
code *stringThe full file contents.
filename *stringPath of the file, e.g. "app/invoices/page.tsx" (used for the "use client" rule and messages).

install_command Install command

Returns the exact `npx vamos-ui add …` command for one or more items (validates the names; dependencies resolve automatically). Use it when components or blocks are to be added to a project.

ParameterTypeDescription
names *arrayItem names, e.g. ["dashboard-01", "date-range-picker"].

get_brand Get the brand profile

Reads the project's vamos.brand.json: brand name, accent (with the generated accent variables), fonts, theme defaults, voice (tone, copy rules, do/don't examples) and assets (logos with how-to-use notes), plus any problems. Use it at the start of UI work in a project that may have a brand profile.

ParameterTypeDescription
projectDirstringProject root (default: the server's working directory).

import_design_system Import a design system from a website

Reads a web page (url) or page source (html, optional css and base_url) and drafts a vamos.brand.json: accent from theme-color / CSS variables / most-used colours, fonts from font-family and Google Fonts links, logo and icon candidates, voice hints from title/description. Returns the draft, the evidence for each value, a contrast-checked accent and what is missing. Writes nothing. The draft is meant to be confirmed with the user before it is saved. Docs: https://ui.vamos.ist/docs/mcp/ and https://ui.vamos.ist/docs/theming/

ParameterTypeDescription
base_urlstringBase URL to resolve relative links in html.
cssarrayExtra stylesheet sources to consider (with html, or in addition to the linked ones).
htmlstringPage source, when the site cannot be fetched (login, bot protection) or you already have it.
namestringBrand name, if the user already told you.
urlstringPage to read, e.g. https://example.com. http(s) only.

propose_accent Propose a brand accent

Turns one brand colour into the four accent variables (--accent-base, --accent-fg, --accent-ink-light, --accent-ink-dark) using OKLCH, checks WCAG contrast (4.5:1 for text) and reports what was adjusted. Use it when the user gives a brand colour.

ParameterTypeDescription
colour *stringAny CSS colour: "#0f766e", "rgb(15 118 110)", "oklch(0.55 0.1 180)", "teal".
darkstringOptional dark-mode fill (colors.accentDark), when the brand has one.

apply_design_system Apply the design system to a project

Plans what makes a project use its brand: <uiDir>/brand.css (accent + font variables), the brand.css import after the kit styles, theme.accent = "brand" in vamos.json, the <html> attributes and font loading. Returns the exact file contents and the CLI command `npx vamos-ui brand apply` (preferred). Nothing is written unless write: true, and never outside projectDir.

ParameterTypeDescription
projectDir *stringAbsolute path to the project root (the folder with vamos.json / vamos.brand.json).
brandA confirmed brand profile (object or JSON string). Omit to use the project's vamos.brand.json.
writebooleanWrite the planned files inside projectDir (default false: only return the plan). Prefer running the CLI command.

verify_design Verify the design system

Checks UI against the kit rules and the brand. With code (+ filename): lints one file. With projectDir: lints the project's source (skipping the kit folder) and checks vamos.brand.json, its assets, brand.css, the CSS import, vamos.json and the <html> attributes. Lists what it cannot check (screenshots, voice). Useful as a final check before a UI task is finished.

ParameterTypeDescription
codestringOne file's contents.
filenamestringIts path, e.g. "app/page.tsx" (with code).
pathsarrayProject-relative files or folders to lint instead of the defaults (src, app, components, pages, lib).
projectDirstringAbsolute path to the project root (the folder with vamos.json / vamos.brand.json).

audit_site Audit a live website

Audits a live website over HTTP (no browser): redirects, status, speed, compression and security headers; title, meta description, canonical, Open Graph, JSON-LD, lang and viewport; robots.txt (and which AI crawlers it blocks), sitemap.xml and llms.txt; placeholder phones, example.com emails, lorem ipsum and [fill-in] fields; images without alt, unnamed links and buttons; privacy / KVKK / cookie / terms links; broken internal links and images over 300 KB, crawling up to maxPages same-site pages (respects robots.txt). Returns a scored report grouped by error / warning / info, with fixes. Works…

ParameterTypeDescription
url *stringThe site to audit, e.g. "https://example.com" (https:// is assumed when left out).
maxPagesintegerPages to crawl, the start page included (default 10, max 30).

start_project Plan a new website

Runs the website project interview: returns the next few questions (business, site type, languages, current site, domain, hosting, one page or several, sections, store or booking needs, contact channels and where form messages go, measurement tools, who runs the site), each with its options and why it matters. Called again with the answers so far, it returns the following questions; once every required question is answered it returns the plan (pages and the kit components on them, legal pages, hosting and build output, form delivery and spam protection, measurement with consent mode, complianc…

ParameterTypeDescription
answersobjectAnswers so far: question id → value (multi-choice questions take an array). "" skips an optional question.
importedobjectThe current site as read by import_site (url, navigation, site), so its addresses are kept and its details fill the draft.
langstringLanguage of the questions and the plan (default tr).

next_task Run the website process

Walks the plan in vamos.project.json task by task: brand and content first, then the build, then legal pages, SEO, forms and measurement, then QA, then deploy. Returns where every task stands, the tasks that can start now and the brief for the next one (goal, plan context, steps, the requirements it owns from the site type's requirement pack, the checks that prove it is done and the report format), so an assistant can hand it to a specialist agent or do it itself. With task + status (done, blocked with a note, todo to reopen) it updates that task first and returns the updated vamos.project.jso…

ParameterTypeDescription
project *objectThe contents of vamos.project.json (as written by start_project or npx vamos-ui new).
langstringLanguage of titles and briefs (default tr).
notestringOne line: what was done, or what the blocked task is waiting for.
statusstringSet the task's status first. done needs its dependencies done; blocked needs a note.
taskstringA task id: the brief to return, or the task whose status to set.

import_site Read a current website

Reads a current website (the start page and a few linked pages: about, contact and services first) and returns, each with the page it came from: business name, description, phone numbers, WhatsApp, emails, address, opening hours, social profiles and languages; brand candidates (accent colours, fonts, logo and icon files); the navigation; headings and paragraphs per page; content images with alt text; and warnings such as different phone numbers on different pages. Read-only: it only sends GET requests and writes nothing.

ParameterTypeDescription
url *stringThe current site, e.g. "https://example.com" (https:// is assumed when left out).
langstringLanguage of the summary (default tr).
maxPagesintegerLinked pages to read besides the start page (default and max 4 on the hosted server).

update_design Plan a design update

Plans how to bring an existing project in line with its brand and the kit rules: brand file edits, manual steps, problems and rule violations grouped by rule — the same plan `npx vamos-ui update --dry-run` shows. Changes nothing. Use it before restyling or migrating an existing project.

ParameterTypeDescription
projectDir *stringAbsolute path to the project root (the folder with vamos.json / vamos.brand.json).
pathsarrayLimit the code check to these project-relative paths.