mcp

v1.0.0
@ui-layouts/mcp Checked 16 hours ago Published 16 days ago

MCP server for ui-layouts (local STDIO)

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

search_components

Search ui-layouts docs pages, blocks sections, and registry item names. Results are ranked, best match first. A query can have several words, and an entry that matches more of them ranks higher. A query word matches a whole word or the start of one (3+ letters). There is no fuzzy or plural matching, so use the singular ('modal', not 'modals').

ParameterTypeDescription
q *stringOne or more words matched against name, key, group, tags, and registry item names (e.g. 'accordion', 'drag and drop', 'btn-bg-shine')
limitinteger

get_docs

Fetch the docs of a component as MDX markdown from the ui-layouts source repo. The header lists the entry's registry items; pass one of those names to get_source_code. A blocks entry has no docs page and returns only its items.

ParameterTypeDescription
hrefstringEntry href (e.g. '/components/accordion', '/blocks/hero-section')
keystringEntry key (e.g. 'accordion', 'hero-section')
maxCharsinteger
timeoutMsinteger

get_component_meta

Fetch the HTML metadata (title, description, keywords, Open Graph, Twitter card) of a component's page on https://www.ui-layouts.com.

ParameterTypeDescription
hrefstringEntry href (e.g. '/components/sparkles-title')
keystringEntry key (e.g. 'sparkles-title')
timeoutMsinteger

get_source_code

Fetch the source code of a registry item from https://www.ui-layouts.com/r/{componentName}.json. Returns every file of the item with its path, plus the npm dependencies to install. maxChars is one budget across all files; when it runs out, the response ends with a notice naming the files that were cut short or left out.

ParameterTypeDescription
componentName *stringRegistry item name from the items of get_docs (e.g. 'liquid-glass-weather', 'btn-bg-shine')
maxCharsinteger
timeoutMsinteger