About Refract
Refract is an MCP server published by theme-registry in the AI category: one YAML spec → typed Python SDK, CLI, MCP server & tests — generated code byte-identical to hand-written ✨. Conduid read 11 tools from its source: checkContrast, diffTheme, findToken, getClass, listRecipes, listTokens and 5 more. It is published to npm as @theme-registry/refract-mcp and starts with npx.
Conduid has no tagged release on record for it. Its topics include cli, code-generation, codegen, fastmcp, openapi and pydantic.
Install
claude mcp add refract -- npx -y @theme-registry/refract-mcpnpx -y @theme-registry/refract-mcpgit clone https://github.com/theme-registry/refractTools (11)
checkContrastWCAG-2 contrast audit of the loaded theme's colour pairings (+ advisory APCA). Optional minWcag pass bar (AA|AAA|AA-large).diffThemeDiff a candidate raw theme against the loaded one — which tokens moved, which classes changed, which contrast pairings crossed a threshold, and whether every target still builds. Plan-then-apply: see the blast radius before you write.findTokenList token paths that start with a prefix (discover names).getClassGet the real class + composed class-list for a recipe (from the project's class-emitting adapter, e.g. CSS — carries its configured prefix).listRecipesList every recipe as { subsystem, group, variant }.listTokensList every token path in the loaded theme.reloadReload the project's theme config from disk.renderRecipeThe exact CSS one recipe emits (base + its state/breakpoint rules), from the project's class-emitting adapter.resolveTokenResolve a token path (e.g. colors.brand.dark) to its value + its emitted CSS variable name (varName), unit, and derivedFrom (what it derives from) in the loaded theme.searchTokensFind token paths matching a query on the path OR the resolved value (fuzzy, case-insensitive).validateThemeValidate a candidate raw theme (or the loaded theme) against every configured target adapter — returns ALL problems per target at once.Security checks
From the theme-registry/refract monorepo, not this package alone.
6 checks have not been run yet.