validate_before_generation
Pre-generation validation check.
Reference
Parameters
- Name
intent- Type
- string · required
- Description
What you are trying to build
- Name
filePath- Type
- string · optional
- Description
Current file path
Returns
{
proceed boolean - whether the approach is valid
constraints array of constraints to follow
suggestedApproach the design-system-compliant way to build this
recommendedComponents components to use
}
Description
Pre-generation validation check. Call BEFORE writing code.
Parameters:
- intent: What you're trying to build
- filePath: Current file being edited (optional)
This prevents generating incorrect code that needs to be fixed later.
Source
Defined in packages/mcp/src/tools.ts.
The request handler lives alongside its registration in packages/mcp/src/tools/.
Last reviewed by @jschuyler