Add Ply components
add_componentsInstalls named Ply UI registry components into a project with ply-ui.json, with optional overwrite and Pro license support.
Instructions
Install named registry components into a project that already has ply-ui.json (ply-ui-cli add --yes). init_project creates that file; update_components refreshes tracked copies. --yes leaves an existing folder in place; pass overwrite to replace it. Hosts that can ask confirm that overwrite first. Pro names require PLY_LICENSE_KEY (or licenseKey). structuredContent includes missingPackages and installCommand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project root containing ply-ui.json (defaults to MCP process cwd / PLY_CWD / BASE_UI_CWD) | |
| names | Yes | One or more registry component names to install (aliases like sheet → drawer are resolved) | |
| overwrite | No | Overwrite existing component folders (maps to CLI --overwrite) | |
| licenseKey | No | Ply Pro license. Prefer PLY_LICENSE_KEY (or BASE_UI_LICENSE_KEY) in the MCP server env instead of putting a key in chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| installCommand | No | ||
| missingPackages | Yes |