dynamic-form-mcp
v1.3.0MCP server for ng-forge dynamic forms - AI-assisted form schema generation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ngforge_lookup
DOCUMENTATION: Look up ng-forge Dynamic Forms topics - "Tell me about X" ⭐ START HERE: ngforge_lookup topic="workflow" — tool usage guide and recommended flow Recommended starting topics: - workflow: Tool usage guide (START HERE for new sessions) - golden-path: Recommended form structures - pitfalls: Common mistakes and solutions Field types: input, select, slider, radio, checkbox, textarea, datepicker, toggle, text, hidden Containers: group, row, array, simplified-array, page Wrappers: wrappers (overview), css (shipping), section, arraySection (demo-only) Addons: addons (overview),…
| Parameter | Type | Description |
|---|---|---|
topic * | string | Topic to look up: field types (input, select, hidden, group, row, array, container, page), wrappers (wrappers, css, section, arraySection), concepts (validation, conditional, derivation, property-deri… |
depth | string | brief=quick syntax (~20 lines), full=complete docs with examples, schema=include JSON schema |
uiIntegration | string | Filter UI-specific info (only with depth=schema). material, bootstrap, primeng, ionic |
ngforge_examples
EXAMPLES: Get working, copy-paste-ready form configurations - "Show me how to do X" Recommended starting points: - complete: Multi-page form with all major features (START HERE) - mega: Kitchen sink with EVERY feature demonstrated Minimal patterns (~20-50 lines): - minimal-multipage: 2-page wizard - minimal-array: Dynamic list with add/remove (simplified API) - minimal-simplified-array: Simplified array with template + value - minimal-conditional: Show/hide field - minimal-validation: Password confirmation - minimal-hidden: Hidden fields in multi-page Standard patterns: derivation, property…
| Parameter | Type | Description |
|---|---|---|
depth | string | minimal=code only (~20-50 lines), brief=code+summary, full=code+comments (default), explained=code+detailed explanation |
pattern | string | Pattern to get: minimal-multipage, minimal-array, minimal-simplified-array, minimal-conditional, minimal-validation, minimal-hidden, derivation, property-derivation, multi-page, conditional, validatio… |
ngforge_validate
VALIDATION: Validate FormConfig - "Is my config correct?" Auto-detects input type: - File path (.ts/.js): Reads file, extracts FormConfig(s), validates each - JSON string: Parses and validates - JSON object: Validates directly Returns SPECIFIC error messages with: - Exact property that's wrong - What the correct structure should look like - Copy-paste fix suggestions Example errors you'll see: - "Hidden field missing REQUIRED value property" - "options MUST be at FIELD level, NOT inside props" - "containers only support 'hidden' logic type"
| Parameter | Type | Description |
|---|---|---|
config * | File path (.ts/.js) OR JSON string OR JSON object. Auto-detects: paths ending in .ts/.js or starting with / are treated as files. | |
uiIntegration | string | UI library to validate against (material, bootstrap, primeng, ionic). Defaults to material. |
ngforge_scaffold
SCAFFOLD: Generate FormConfig skeleton - "Generate a skeleton for X" Creates valid, compilable FormConfig code with: - Proper page structure with navigation - Array containers with add/remove - Groups with placeholder fields - Hidden fields with values - Submit button on last page - 'as const satisfies FormConfig' wrapper Examples: - Single page: pages=0 fields=["name:input","email:input"] - Multi-page wizard: pages=3 fields=["name:input"] - With arrays: pages=2 arrays=["contacts"] - With groups: pages=0 groups=["address","billing"] - With hidden: hidden=["userId:abc123","source:web"]
| Parameter | Type | Description |
|---|---|---|
arrays | array | Array field names for dynamic lists, e.g., ["contacts", "addresses"] |
fields | array | Basic fields as "name:type" pairs, e.g., ["email:input", "country:select", "age:slider"] |
groups | array | Group field names for nested objects, e.g., ["address", "billing"] |
hidden | array | Hidden fields as "name:value" pairs, e.g., ["userId:abc", "version:1"] |
pages | number | Number of pages (0 = single-page form, 1-10 = multi-page wizard) |
uiIntegration | string | UI library (for future UI-specific props). Defaults to material. |
ngforge_search
SEARCH: Free-text keyword search across all documentation and examples - "Find topics about X" Search by natural language or keywords. Returns matching topics and examples with direct tool calls. Examples: - "conditional required" → finds conditional logic and validation topics - "array template" → finds simplified-array topic and minimal-array example - "hide field" → finds conditional visibility documentation - "options dropdown" → finds select field and options-format topics Use this when you don't know the exact topic name. New to ng-forge? Start with: ngforge_lookup topic="wor…
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language or keywords to search for |