core-mcp

v0.1.0
@kovaldev/core-mcp Checked 3 days ago Published 3 months ago

Koval Core as an MCP server — decide a design system with an agent, then emit global.css and theme-rules.md

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

describe_system Describe the design system framework

The decision framework itself: every axis, the options on it, and what each option commits you to. Call this before proposing a theme — it is the vocabulary every other tool expects, and an id outside it will be refused rather than guessed at. Four axes state themselves as a prose `rule`; `density` and `container` state themselves as named slots (section, gap, stack, tight, lede, eyebrow / recipe) that you apply directly.

generate_palette Derive six brand colors from one anchor

Computes the other five roles from a single brand color by hue geometry, then repairs the ink ladder against real contrast obligations and reports what it moved. Omit `primary` when the client has no color yet and one will be chosen for the mood. Use this rather than picking six colors by hand: the relationships and the contrast guarantees are the point, and they are not recoverable after the fact.

ParameterTypeDescription
dangerstring
harmonystringWhere the accent hue sits relative to the anchor.
moodstringLightness envelope — how pale the ground is and how dark the ink goes.
primarystringAnchor color as hex (#1a3a5c) or oklch(L C H). Omit to choose one for the mood.
secondarystring

validate_theme Check a theme config before emitting it

Accepts or refuses a config, naming the offending field. Every value is checked against the vocabulary from describe_system: convention option ids, font ids, scale ratios, and colors as oklch(L C H). Cheap to call before emit_files.

ParameterTypeDescription
conventionsobjectConvention ids keyed by axis, e.g. { radius: "sharp", motion: "relaxed" }.
iconsstringIconify collection prefix, e.g. "lucide", "ph", "tabler". Must be monotone — a multicolour set cannot inherit currentColor, so the theme would never reach it.
tokensobjectBrand color overrides keyed by --brand-* name, as oklch(L C H).
typeobjectType scale config — a diff from the defaults, not the whole thing.

emit_files Emit global.css and theme-rules.md

Turns a decided config into the two artifacts. `global.css` replaces the stylesheet in the project; `theme-rules.md` goes in the project root and gets pointed at from AGENTS.md so it is in context every session. Returns them as text — write both yourself; this server does not touch the filesystem.

ParameterTypeDescription
conventionsobjectConvention ids keyed by axis, e.g. { radius: "sharp", motion: "relaxed" }.
iconsstringIconify collection prefix, e.g. "lucide", "ph", "tabler". Must be monotone — a multicolour set cannot inherit currentColor, so the theme would never reach it.
tokensobjectBrand color overrides keyed by --brand-* name, as oklch(L C H).
typeobjectType scale config — a diff from the defaults, not the whole thing.

propose_theme Read a brief into candidates for every axis

Turns a plain-language brief into a reading order: for each axis, the options ranked by how many of the brief's signals each one claims, carrying the `when` and `avoid` that justify it. **This returns candidates, not a theme.** The score counts claimed signals and nothing else — it does not know the brief said "law firm, but modern", and the right answer is often not the top of the list. Read the criteria, choose each axis yourself, and say why in these terms. Then call emit_files.

ParameterTypeDescription
brief *stringIndustry, audience, and the feeling wanted — "law firm, established, trustworthy" or "internal analytics dashboard for engineers".

search_fonts Search the Fontsource catalogue

Narrow 2,096 families to a shortlist. Choice of typeface is yours — this only tells you what exists, under which id, and whether it is variable. Ids are the lowercase hyphenated form ("source-sans-3"), which is what every other tool wants.

ParameterTypeDescription
categorystring
limitinteger
querystringSubstring of the id or family name. Omit to browse.
variableOnlybooleanVariable fonts ship every weight in one file — prefer them.

search_icon_sets Search the Iconify collections

Monotone collections only — 193 of the 236, because a multicolour set cannot inherit currentColor and the theme would never reach it. Pick one whose drawing matches the shape language you chose: a stroke set beside soft corners, a filled set beside sharp ones. Use the whole set and no other.

ParameterTypeDescription
limitinteger
querystringSubstring of the prefix or name. Omit to browse.
strokeOnlybooleanOnly sets Iconify tags as stroke-drawn, rather than filled.