purity-mcp
v2.1.1Official 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
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the artifact in kebab-case or PascalCase (e.g. "user-profile") |
type * | string | Type of Purity artifact to generate |
description | string | Brief description of what this artifact does |
selector | string | Custom element tag name (optional, defaults to kebab-case of name) |
targetDir | string | Directory path where files should be written (if writeToDisk is true) |
writeToDisk | boolean | Whether 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
| Parameter | Type | Description |
|---|---|---|
code | string | Code snippet or file content to audit against Purity guidelines |
fileName | string | Optional file name with extension (e.g. "my.component.ts", "card.component.scss") when passing raw code |
filePath | string | Absolute 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
| Parameter | Type | Description |
|---|---|---|
projectRoot | string | Root 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)
| Parameter | Type | Description |
|---|---|---|
topic * | string | Topic to retrieve documentation for |
detail | string | Detail 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
| Parameter | Type | Description |
|---|---|---|
query * | string | Component 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)
| Parameter | Type | Description |
|---|---|---|
category | string | Filter 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
| Parameter | Type | Description |
|---|---|---|
template * | string | HTML template string with foreign framework syntax (Angular, Vue, etc.) to convert into idiomatic Purity syntax |