npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@letar/form-mcp

v1.0.1

Published

MCP server for @letar/forms — provides AI assistants with component docs, field types, form patterns, and code generation for 40+ declarative form fields

Readme

@letar/form-mcp

MCP (Model Context Protocol) server for @letar/forms — gives AI assistants full context about 40+ declarative form field components, form patterns, and ZenStack code generation directives.

Документация на русском

Quick Start

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "form-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@letar/form-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "form-mcp": {
      "command": "npx",
      "args": ["-y", "@letar/form-mcp"]
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "form-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@letar/form-mcp"]
    }
  }
}

What It Provides

Tools (6)

| Tool | Description | | ------------------- | ----------------------------------------------------------- | | list_fields | List all 40+ field types with optional category filter | | get_field_props | Get props, description, and docs for a specific field | | get_field_example | Get TSX code example for a field component | | get_form_pattern | Get complete form examples: CRUD, multi-step, offline, i18n | | get_directives | Get @form.* directive docs for zenstack-form-plugin | | generate_form | Generate form code from a field specification |

Resources (7)

Documentation available via form-docs:// URIs:

  • form-docs://fields — 40+ field component reference
  • form-docs://form-level — Form.Steps, Form.When, Form.Errors, etc.
  • form-docs://schema-generation — FromSchema, AutoFields, Builder
  • form-docs://offline — useOfflineForm, sync queue
  • form-docs://i18n — FormI18nProvider, localized errors
  • form-docs://zenstack — ZenStack integration, @form.* directives
  • form-docs://api-reference — Hooks, contexts, types

Prompts (3)

| Prompt | Description | | -------------- | ----------------------------------------------- | | create-form | Template for generating a CRUD form | | add-field | Add a field to an existing form | | migrate-form | Migrate from React Hook Form / Formik / Conform |

Field Categories

| Category | Fields | | ---------------- | ------------------------------------------------------------------------------------------------------------- | | Text | String, Textarea, Password, PasswordStrength, Editable, RichText | | Number | Number, NumberInput, Slider, Rating, Currency, Percentage | | Date | Date, Time, DateRange, DateTimePicker, Duration, Schedule | | Select | Select, NativeSelect, CascadingSelect, Combobox, Autocomplete, Listbox, RadioGroup, RadioCard, SegmentedGroup | | Multi-select | Checkbox, CheckboxCard, Switch, Tags | | Special | Auto, PinInput, OTPInput, ColorPicker, FileUpload, Phone, MaskedInput, Address |

Configuration

Set FORM_MCP_DOCS_PATH environment variable to override the documentation directory path.

Architecture

createFormMcpServer({ docsPath }) → McpServer
  ├── data/loader.ts           — markdown docs parser
  ├── data/field-registry.ts   — 40+ field component registry
  ├── data/pattern-registry.ts — form pattern templates
  ├── data/directive-registry.ts — @form.* directive docs
  └── cli.ts                   — stdio transport entry point

The createFormMcpServer() factory accepts a docsPath parameter, making the same server code work for both local development and the npm package.

Related