What it does
The Regle MCP server supplies documentation and contextual guidance for the Regle form validation library to Claude Code and Cursor. Regle is a headless, type-safe validation library for Vue 3 that uses model-based rule definitions instead of validator chaining. Rather than exposing tools, the server provides Regle's API reference, validation patterns, configuration examples, and type definitions directly in your AI-assisted coding environment, enabling accurate autocomplete and context-aware suggestions when building and validating forms.
Who it's for
Vue 3 developers building forms in Claude Code or Cursor who use Regle for validation and want real-time, context-aware AI assistance with rule definitions, async validation patterns, and type-safe schema construction without leaving their editor.
Common use cases
- Generate Regle validation schemas with AI suggestions while editing Vue components and templates.
- Use Claude to construct async validators and custom validation rules with full type inference.
- Integrate Standard Schema validators (Zod, Valibot, ArkType) into Regle with AI-assisted code generation.
- Rapidly prototype complex form validation logic with AI-generated rules and error-state handling.
Setup pitfalls
- One secret was detected in the repository during scanning—review code before deploying in sensitive or production CI environments.
- The server reads and writes the filesystem; ensure it has appropriate permissions and runs in the correct project directory.
- Configure via
.mcp.jsonor.cursor/mcp.jsonusingnpx @regle/mcp-server; requires Node.js to be installed and available in PATH.