canonical-theme-mcp-server

v1.0.4
@luis-neira/canonical-theme-mcp-server Checked 3 days ago Published 4 months ago

An MCP server that returns focused, exact slices of a project's canonical Mantine theme.

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

match_canonical_theme_values

Return every exact canonical-theme match for each supplied raw design value, without choosing a match or recommending styling. When a value includes cssProperty, group its exact matches into compatibleMatches and otherExactMatches; no matches are discarded. Uniform colorsTuple declarations produce one representative shade-9 binding instead of ten duplicates. Use this when you hold a raw design value and do not know where it lives in the theme; for the opposite direction, when you already hold a theme reference such as colors.x[9] or a --mantine-* variable and need its value, use resolve_canoni…

ParameterTypeDescription
filePath *stringAbsolute path to the canonical theme file
values *array

get_canonical_shadow_candidates

Return every configured canonical shadow as exact source evidence, without ranking or recommending a candidate. Call only when exact value matching reports no match for a boxShadow value. The file must contain @canonical-theme. When the client declares roots, or CANONICAL_THEME_PROJECT_ROOT is set, the path must resolve inside one of them; otherwise the root is derived from the path's nearest ancestor holding a package.json or .git, which confirms the file sits in some project but does not confine it to the current one.

ParameterTypeDescription
filePath *stringAbsolute path to the canonical theme file

get_canonical_component_overrides

Return one exact override or no-override result for each supplied Mantine component. Request only components not already covered when a frozen tree grows. Each override also returns themeReferences: the complete canonical theme paths it reads, including those reached through local declarations, deduplicated and in source encounter order. Pass them straight to resolve_canonical_theme_paths rather than reading paths out of the override source. The file must contain @canonical-theme. When the client declares roots, or CANONICAL_THEME_PROJECT_ROOT is set, the path must resolve inside one of them;…

ParameterTypeDescription
components *array
filePath *stringAbsolute path to the canonical theme file

resolve_canonical_theme_paths

Resolve each supplied canonical-theme path or CSS variable to its exact value and source evidence. Use this when you already hold a theme reference such as colors.primaryTextColor[9] or var(--mantine-spacing-md) and need the value it resolves to; for the opposite direction, when you hold a raw design value and do not know where it lives in the theme, use match_canonical_theme_values. Each path returns one result: status exact with the value and source, not-indexed when the section is never walked, or no-match. A shade of a uniform colorsTuple palette resolves with uniform true and evidence at…

ParameterTypeDescription
filePath *stringAbsolute path to the canonical theme file
paths *arrayTheme paths such as colors.primaryTextColor[9], or CSS variables such as var(--mantine-spacing-md)