@primeuicom/mcp 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,15 +54,15 @@ Inspect PrimeUI page /pricing components and compare them with my local /pricing
|
|
|
54
54
|
|
|
55
55
|
Available tools:
|
|
56
56
|
|
|
57
|
-
| Tool
|
|
58
|
-
|
|
|
59
|
-
| `get_project_info`
|
|
60
|
-
| `inspect_page`
|
|
61
|
-
| `list_exports`
|
|
62
|
-
| `create_export`
|
|
63
|
-
| `download_export`
|
|
64
|
-
| `copy_page`
|
|
65
|
-
| `clear_temp`
|
|
57
|
+
| Tool | What it does | Input |
|
|
58
|
+
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
|
|
59
|
+
| `get_project_info` | Returns project metadata and page list, including export readiness and source paths. | `projectRoot?` |
|
|
60
|
+
| `inspect_page` | Returns details for one page by slug, raw active-variant components (or `null`), and a formatted component report table for local comparison. | `pageSlug`, `projectRoot?` |
|
|
61
|
+
| `list_exports` | Lists existing exports with ID, status, and creation time. | `projectRoot?` |
|
|
62
|
+
| `create_export` | Starts a new export and returns strict API manifest payload (`pages[].manifest.files` + `export.components`), then saves sidecar manifest `.primeui/temp/exports/<exportId>.manifest.json`. | `projectRoot?` |
|
|
63
|
+
| `download_export` | Downloads and extracts a completed export into `.primeui/temp/exports/<exportId>/` and validates existing local sidecar manifest for this export ID. | `id` (export ID), `projectRoot?` |
|
|
64
|
+
| `copy_page` | Safely copies one page from downloaded export into user project using only `pages[].manifest.files` (new files only, conflicts as diff, add-only missing deps). | `originPageSlug`, `actualPageSlug?`, `projectRoot?` |
|
|
65
|
+
| `clear_temp` | Clears `.primeui/temp/` and recreates baseline temp layout. | `projectRoot?` |
|
|
66
66
|
|
|
67
67
|
## Getting started
|
|
68
68
|
|
|
@@ -211,6 +211,12 @@ Configure these environment variables for local development:
|
|
|
211
211
|
- `PRIMEUI_API_BASE_URL`: PrimeUI API base URL (for example `http://localhost:3020` when testing against local Studio API).
|
|
212
212
|
- `PRIMEUI_PROJECT_ROOT`: explicit project root override for `.primeui/project.json` and `.primeui/temp/` location.
|
|
213
213
|
|
|
214
|
+
**tip** to add it to codex globally use:
|
|
215
|
+
|
|
216
|
+
```console
|
|
217
|
+
codex mcp add primeui --env PRIMEUI_API_BASE_URL=http://localhost:3020 -- npx -y @primeuicom/mcp@latest
|
|
218
|
+
```
|
|
219
|
+
|
|
214
220
|
Run MCP Inspector:
|
|
215
221
|
|
|
216
222
|
```bash
|