🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ng-forge/dynamic-form-mcp

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-forge/dynamic-form-mcp

MCP server for ng-forge dynamic forms - AI-assisted form schema generation

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@ng-forge/dynamic-form-mcp

MCP (Model Context Protocol) server for ng-forge dynamic forms - enables AI assistants to generate, validate, and work with dynamic form configurations.

CI npm version npm downloads License: MIT Discord

Features

  • Documentation Lookup: Explore field types, concepts, and patterns
  • Code Examples: Get working, copy-paste-ready form configurations
  • Config Validation: Validate FormConfig objects with detailed error messages
  • Skeleton Generation: Generate form scaffolds from parameters

Installation

No manual install needed. This is a stdio MCP server that your MCP client launches on demand via npx (using the package name @ng-forge/dynamic-form-mcp); see the per-client config in Setup below.

Setup

Cursor

Add to your Cursor MCP settings:

{
  "ng-forge": {
    "command": "npx",
    "args": ["-y", "@ng-forge/dynamic-form-mcp"]
  }
}

VS Code with Copilot

Create .vscode/mcp.json in your project:

{
  "servers": {
    "ng-forge": {
      "command": "npx",
      "args": ["-y", "@ng-forge/dynamic-form-mcp"]
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

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

JetBrains IDEs

Go to Settings > Tools > AI Assistant > Model Context Protocol (MCP) and add:

FieldValue
Nameng-forge
Commandnpx
Arguments-y @ng-forge/dynamic-form-mcp

Local Development

For development within the ng-forge monorepo:

{
  "mcpServers": {
    "ng-forge": {
      "command": "node",
      "args": ["/path/to/ng-forge/dist/packages/dynamic-form-mcp/bin/ng-forge-mcp.js"]
    }
  }
}

Available Tools

The server provides 5 focused tools:

ToolDescriptionRead-only
ngforge_lookupGet documentation about field types, concepts, and patterns
ngforge_examplesGet working code examples for common form patterns
ngforge_validateValidate FormConfig and get detailed error feedback
ngforge_scaffoldGenerate valid FormConfig skeletons
ngforge_searchFree-text search across topics, patterns, wrappers, and addons

ngforge_lookup

Get documentation about any ng-forge topic.

ParameterTypeDefaultDescription
topicstring(required)Topic to look up
depth"brief" | "full" | "schema""full"Level of detail
uiIntegration"material" | "bootstrap" | "primeng" | "ionic"-Filter UI-specific info

Available Topics:

Run ngforge_lookup topic="list" for the complete, always-current list of topics. Categories include field types (input, select, multi-checkbox, ...), containers (group, row, array, page), concepts (validation, conditional, derivation, ...), wrappers, and addons.

ngforge_examples

Get working code examples for common patterns.

ParameterTypeDefaultDescription
patternstring(required)Pattern name
depth"minimal" | "brief" | "full" | "explained""full"Level of detail

Available Patterns:

PatternDescription
minimal-multipageSimplest 2-page wizard form
minimal-arrayArray with add/remove buttons
minimal-simplified-arrayArray using the simplified-array shorthand
minimal-conditionalShow/hide a field based on a condition
minimal-validationPassword confirmation validation
minimal-hiddenHidden fields in a multi-page form
multi-pageMulti-page wizard with navigation buttons
property-derivationDerive a field property from another field

Run ngforge_examples pattern="list" for the current set of patterns.

ngforge_validate

Validate FormConfig and get detailed error feedback.

ParameterTypeDefaultDescription
configstring | object(required)File path or JSON config
uiIntegration"material" | "bootstrap" | "primeng" | "ionic""material"UI library to validate against

Input Detection:

InputTreated As
Ends with .ts or .jsFile path
Starts with { or [JSON string
ObjectValidated directly

Example Errors:

  • "Hidden field missing REQUIRED value property"
  • "options MUST be at FIELD level, NOT inside props"
  • "containers only support 'hidden' logic type"

ngforge_scaffold

Generate valid FormConfig skeletons.

ParameterTypeDefaultDescription
pagesnumber0Number of pages (0 = single-page)
fieldsstring[][]Fields as "name:type" pairs
groupsstring[][]Group field names
arraysstring[][]Array field names
hiddenstring[][]Hidden fields as "name:value" pairs
uiIntegrationenum"material"UI library

Supported field types: input, select, radio, checkbox, textarea, datepicker, slider, toggle

MCP Resources

Resource URIDescription
ng-forge://instructionsBest practices guide for generating FormConfig
ng-forge://examplesCurated FormConfig examples
ng-forge://examples/{id}Specific example by ID
ng-forge://field-typesField type reference
ng-forge://validatorsValidator reference
ng-forge://wrappersWrapper reference
ng-forge://schemasStandard Schema validation reference
ng-forge://ui-adaptersUI library configurations
ng-forge://docsFull documentation index

Development

Building

nx build dynamic-form-mcp

Testing

nx test dynamic-form-mcp

Generating Registry

nx run dynamic-form-mcp:generate-registry

License

MIT

Keywords

mcp

FAQs

Package last updated on 22 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts