forge-mcp

v1.4.0
@tylertech/forge-mcp Checked 9 hours ago Published 1 month ago

MCP server for Tyler Forge™ web component library documentation

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_component_docs

Get the API contract (properties, attributes, events, slots, CSS parts, CSS vars) for a Tyler Forge component. Call list_components first if you need to discover available components. For HTML usage code, call `get_forge_blocks` instead — blocks are the sole source of Forge markup.

ParameterTypeDescription
component *stringComponent tag name (e.g., "forge-button", "forge-card"). Required — call list_components first if you don't know the tag name.
formatstringDocumentation format: full (default) or summary (brief overview). For HTML usage code, call `get_forge_blocks` — this tool returns API contract only.
sectionsarrayOptional: specific documentation sections to include. Only applies to full format.

list_components

Browse all available Tyler Forge components with descriptions. Returns a comprehensive table of all components with their purpose and capabilities.

find_components

Search Tyler Forge components by name, description, or functionality with enhanced fuzzy matching. Supports multi-term queries like "app bar drawer". Returns all components when no query provided.

ParameterTypeDescription
includeRelatedbooleanOptional: include related components in results (default: false)
limitnumberOptional: maximum number of results to return (default: 10 for search, unlimited for list all)
matchAllbooleanOptional: require all search terms to match (default: false - match any term)
querystringSearch query to find components by name, description, or features. Leave empty to list all components.
searchInarrayOptional: specify what to search in (default: all)

validate_component_api

Validate Tyler Forge component-specific API usage after code generation. Supports all components in @tylertech/forge. DO NOT use this tool to validate standard HTML attributes (id, class, style, etc.), ARIA attributes (aria-*), or data attributes (data-*) - these are valid on all elements. Only validate component-specific properties, attributes, events, methods, slots, CSS properties, parts, and classes.

ParameterTypeDescription
component *stringComponent tag name - e.g., "forge-button", "forge-card", "forge-user-profile", "forge-app-launcher"
apisobjectAPIs to validate for the component

get_design_tokens

Get Tyler Forge design tokens for consistent styling. Access color palettes, spacing scales, typography, animation, and other design system values.

ParameterTypeDescription
categorystringOptional: specific design token category (default: all categories overview)

setup_typography

Access Tyler Forge typography setup instructions including font families, type scales, weights, and practical usage guidelines for consistent text styling.

setup_icons

Access Tyler Forge icons system including installation, registration, and usage patterns for the forge-icon component.

find_icons

Search Tyler Icons using semantic/fuzzy search with natural language queries. Finds the closest matching icons by name and keywords.

ParameterTypeDescription
query *stringSpace-separated search terms to find matching icons (e.g., "user profile", "arrow left", "check mark")
limitnumberMaximum number of results to return (default: 10)

get_usage_guide

Get comprehensive Tyler Forge guides including installation instructions, framework-specific integration, and general usage patterns

ParameterTypeDescription
frameworkstringFramework for installation or framework guides. Required for type=framework.
typestringType of guide: general (default - usage patterns), installation (setup instructions), or framework (framework-specific integration)

setup_framework

Get complete framework-specific setup instructions for Tyler Forge components including installation, configuration, and best practices.

ParameterTypeDescription
framework *stringTarget framework for Tyler Forge setup and integration

get_version_migration_guide

Get comprehensive migration guides for upgrading between Tyler Forge versions, including breaking changes, API mappings, and upgrade instructions

ParameterTypeDescription
fromstringSource version to migrate from (default: "v2")
tostringTarget version to migrate to (default: "v3")

get_forge_blocks

Get Forge UI code blocks - pre-built patterns and examples that demonstrate correct Forge component usage. Use this FIRST before generating any Forge UI code to ensure accurate patterns. Can list/search blocks or fetch specific block content.

ParameterTypeDescription
blockIdstringSpecific block ID to fetch the full HTML content for (e.g., "src/blocks/forms/login").
categorystringFilter blocks by category (e.g., "forms", "tables", "application-layout").
componentstringFilter blocks by Forge component usage. Returns all blocks that use the specified component (e.g., "forge-card", "forge-table", "forge-button"). Use this to see how a component is used across differen…
limitnumberMaximum number of blocks to return when listing (default: 20).
querystringDescribe the UI functionality you need (e.g., "form with validation", "data table with sorting", "user profile card"). Searches block descriptions to find matching functionality. Results are ranked by…

generate_ui_plan

Emit a machine-checkable UI plan (scaffold block, regions, typography roles, icons) before writing composition-scale Forge markup. Returns the empty plan template and the enums the plan must use. Call validate_ui_plan on the composed plan before writing any <forge-*> markup. See references/ui-plan.md.

ParameterTypeDescription
description *stringWhat the user is asking you to build. A sentence or two is enough; the plan is composed from the description plus the current session context.
frameworkstringFramework in use (angular, react, vue, svelte, lit, or plain). Optional — only affects framework-specific plan hints.
page_type_hintstringOptional page type if the caller already knows it. Otherwise leave blank and pick during plan composition.

validate_ui_plan

Validate a UI plan produced by generate_ui_plan. Checks: page_type enum, region components exist in the CEM, block IDs exist in the block catalogue, typography roles are legal, spacing_scale is tokens-only, icons exist in @tylertech/tyler-icons, and composition rules (no page_title inside card, no hand-rolled tables). Returns pass/fail with per-error hints. Markup must not be written until this returns valid=true.

ParameterTypeDescription
plan *The plan object emitted by generate_ui_plan, either as an object or a JSON string.