# Client Integrations

This folder holds optional configuration (hooks, settings) for specific MCP clients that use the Widgets module.

## Why they are optional

The Widgets module works end to end without client-specific configuration: the `widgets-*` tools and the `widgets-init-project` Prompt are enough to build a widget from scratch. What lives here adds automation where a client supports it.

## Covered clients

| Client | File | What it covers |
|--------|------|----------------|
| Claude Code | `modyo://docs/widgets/_meta-integration-claude-code` | `PostToolUse` hook that validates the widget after each edit |

## Relation with the validator

Validation is available as the `widgets-validate` Tool, which is the main path. The validator's CLI (`npx @modyo/widget-validator@<version>`, with the `version` that a `widgets-validate` report shows) is an alternative when the MCP server is not connected. The CLI applies the validator's rules but not the `stack-alignment` check that `widgets-validate` adds. Rules: `modyo://docs/widgets/reference-validator-rules`.
