purity-mcp

v2.1.1
purity-mcp Checked 2 days ago Published 29 days ago

Official Model Context Protocol (MCP) server for the Purity framework - Supercharging AI-assisted development with scaffolding, code validation, component…

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

purity_scaffold

Scaffolds production-ready Purity framework artifacts (components, services, pipes, directives, validators, interceptors, behaviors, pages) with 100% adherence to Adwaita design system and Vitest unit tests

ParameterTypeDescription
name *stringName of the artifact in kebab-case or PascalCase (e.g. "user-profile")
type *stringType of Purity artifact to generate
descriptionstringBrief description of what this artifact does
selectorstringCustom element tag name (optional, defaults to kebab-case of name)
targetDirstringDirectory path where files should be written (if writeToDisk is true)
writeToDiskbooleanWhether to automatically write generated files to disk

purity_validate

Audits Purity framework code (TypeScript, HTML, SCSS) against official architectural rules, signal mutation hygiene, path aliases, Adwaita tokens, and foreign framework anti-patterns

ParameterTypeDescription
codestringCode snippet or file content to audit against Purity guidelines
fileNamestringOptional file name with extension (e.g. "my.component.ts", "card.component.scss") when passing raw code
filePathstringAbsolute or relative path to a file on disk to validate

purity_inspect_project

Scans a Purity repository to discover registered components, services, pipes, directives, validators, and evaluates project health, test coverage, and SCSS architecture

ParameterTypeDescription
projectRootstringRoot directory of the project to inspect (defaults to current working directory)

purity_get_docs

Retrieves authoritative documentation, API contracts, rules, and runnable code examples for Purity framework features (signals, components, repeaters, virtual-for, DI, HTTP, Adwaita styling, cursors)

ParameterTypeDescription
topic *stringTopic to retrieve documentation for
detailstringDetail level desired

purity_lookup_component

Looks up reusable UI Web Components and widgets in Purity (switch-button, modal-view, expander, popover, date-time-picker, loader, navigation-menu, profile-avatar, radial-context-menu, analogue-clock) with signatures, methods, signals, and copy-paste examples

ParameterTypeDescription
query *stringComponent tag name (e.g. "switch-button", "modal-view"), class name, or keyword

purity_list_components

Lists all available reusable UI Web Components and widgets in the Purity design system categorized by type (core, overlay, form, navigation, widget, layout)

ParameterTypeDescription
categorystringFilter components by category

purity_transform_template

Converts templates with foreign syntax (Angular *ngFor/*ngIf/(click)/[(ngModel)], Vue v-for/v-if/@click/v-model, inline styles) into idiomatic Purity template syntax with signals and structural repeaters

ParameterTypeDescription
template *stringHTML template string with foreign framework syntax (Angular, Vue, etc.) to convert into idiomatic Purity syntax