devsnips-mcp

v0.1.0
devsnips-mcp Checked 3 days ago Published 2 months ago

Read-only MCP server exposing the DevSnips UI library (components, sections, templates) to AI coding agents.

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

search_resources

Search the DevSnips UI library (components, sections, templates). Deterministic keyword search over names, ids, family names, curated searchTerms, tags, styles, features and descriptions. Provide a natural language query, structured filters, or both. Results are ranked with a fixed weighting and deterministic tie-breaking, so the same query against the same registry always returns the same order. Examples: search_resources(query="responsive SaaS pricing section", technology="React") search_resources(query="dark dashboard sid…

ParameterTypeDescription
category
family
features
installableOnlyboolean
limitinteger
offsetinteger
query
styles
tags
tagsModestring
technology
type

get_resource

Get the descriptive package for one DevSnips resource: metadata, README, the template's AGENTS.md (templates ship one), and the file manifest — without pulling source code into context. Use `search_resources` first to find the canonical `id`. For template file trees, `files_complete` tells you whether the manifest is the whole tree (true for local checkouts; GitHub raw cannot enumerate, and some React template manifests list only one level of `src/**`). Args: id: canonical registry id, e.g. "Tailwind/Components/Accord…

ParameterTypeDescription
id *string
include
maxBytes

get_resource_file

Retrieve one file from a DevSnips resource (source, page, README, AGENTS.md). Only files listed in the resource's registry manifest (plus README.md / AGENTS.md / metadata.json when present) are retrievable — arbitrary paths are rejected. `preview.html` is a demo page and is never bundled implicitly; request it explicitly if you really want it. Templates: fetch page by page (e.g. file="pages/pricing.html"), or install the whole template with the CLI command from `get_resource(id).install`. Args: id: canonical registry…

ParameterTypeDescription
file *string
id *string
maxBytes
truncateboolean

list_facets

List what exists in the DevSnips library: technologies, types, categories, and families with live counts — read from the current registry, never hardcoded, so the answer is always current inventory (including any technology or type added after this server was written). Args: facet: all | technologies | types | categories | families. technology: scope the families facet to one technology (aliases accepted). includeVariants: for the families facet, also list variant ids (capped at 500).

ParameterTypeDescription
facetstring
includeVariantsboolean
technology