@cascivo/mcp 0.1.1 → 0.1.4
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 +29 -15
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +217 -7
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +360 -318
- package/package.json +4 -4
- package/readme.body.md +13 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cascivo/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "MCP server exposing the cascivo component registry to AI agents",
|
|
6
6
|
"keywords": [
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"react",
|
|
14
14
|
"signals"
|
|
15
15
|
],
|
|
16
|
-
"homepage": "https://github.com/
|
|
17
|
-
"bugs": "https://github.com/
|
|
16
|
+
"homepage": "https://github.com/cascivo/cascivo/tree/main/packages/mcp#readme",
|
|
17
|
+
"bugs": "https://github.com/cascivo/cascivo/issues",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "urbanisierung",
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/
|
|
22
|
+
"url": "git+https://github.com/cascivo/cascivo.git",
|
|
23
23
|
"directory": "packages/mcp"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
package/readme.body.md
CHANGED
|
@@ -17,17 +17,19 @@ The server speaks the MCP stdio transport. By default it reads the `registry.jso
|
|
|
17
17
|
|
|
18
18
|
## Tools
|
|
19
19
|
|
|
20
|
-
| Tool
|
|
21
|
-
|
|
|
22
|
-
| `list_components`
|
|
23
|
-
| `get_component`
|
|
24
|
-
| `search_components`
|
|
25
|
-
| `add_to_project`
|
|
26
|
-
| `create_theme`
|
|
27
|
-
| `scaffold_page`
|
|
28
|
-
| `scaffold_view`
|
|
29
|
-
| `validate_view`
|
|
30
|
-
| `get_view_grammar`
|
|
20
|
+
| Tool | Input | Returns |
|
|
21
|
+
| -------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| `list_components` | `{ category? }` | All component manifests, optionally filtered by category |
|
|
23
|
+
| `get_component` | `{ name }` | The full manifest for one component |
|
|
24
|
+
| `search_components` | `{ query }` | Components matching name, tags, or description |
|
|
25
|
+
| `add_to_project` | `{ name, outputDir? }` | Runs `cascivo add <name>` as a child process |
|
|
26
|
+
| `create_theme` | `{ primary, neutral, accent, name? }` | A custom theme as CSS (semantic token layer) |
|
|
27
|
+
| `scaffold_page` | `{ description, components? }` | A JSX page layout string |
|
|
28
|
+
| `scaffold_view` | `{ description, components? }` | A validated starter `ViewConfig` + the bound-vocabulary `grammar` for its components |
|
|
29
|
+
| `validate_view` | `{ config }` | Validation errors (component, prop type/enum, refs) with exact paths |
|
|
30
|
+
| `get_view_grammar` | `{ components? }` | Bound-vocabulary grammar + generation prompt for valid `ViewConfig` JSON |
|
|
31
|
+
| `get_variant_matrix` | `{ role?, theme? }` | Deterministic intent→token map (role + state slot) + every token resolved per theme |
|
|
32
|
+
| `validate_component` | `{ tsx?, css?, name? }` | Static structural-invariant check of generated source (banned hooks, off-scale breakpoints, missing CSS fallbacks, hallucinated tokens) |
|
|
31
33
|
|
|
32
34
|
`category` is one of `inputs`, `display`, `overlay`, `navigation`, `feedback`.
|
|
33
35
|
|