@slexkit/mcp 0.3.2 → 0.4.0

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 CHANGED
@@ -1,58 +1,85 @@
1
- # @slexkit/mcp
2
-
3
- Read-only MCP server for SlexKit docs, component APIs, examples, and source validation.
4
-
5
- ## Configure
6
-
7
- ```json
8
- {
9
- "mcpServers": {
10
- "slexkit": {
11
- "command": "npx",
12
- "args": ["-y", "@slexkit/mcp"]
13
- }
14
- }
15
- }
16
- ```
17
-
18
- The same command shape works in clients such as Codex, Claude Desktop, and other MCP-compatible agent tools:
19
-
20
- ```sh
21
- npx -y @slexkit/mcp
22
- ```
23
-
24
- ## Tools
25
-
26
- The server exposes three read-only tools:
27
-
28
- | Tool | Purpose |
29
- |------|---------|
30
- | `slexkitDocs` | Search or fetch generated Markdown docs, optionally including `std.*` and `api.*` capability metadata. |
31
- | `slexkitExamples` | Return component examples or generated templates such as `status`, `calculator`, `stdlib-calculator`, `secure-network-card`, `toolhost-form`, and `host-integration`. |
32
- | `slexkitValidate` | Parse Slex source and return diagnostics, warnings, component usage, `std.*` usage, and `api.*` usage. |
33
-
34
- Example validation request:
35
-
36
- ```json
37
- {
38
- "name": "slexkitValidate",
39
- "arguments": {
40
- "source": "{ slex: \"0.1\", namespace: \"demo\", layout: { \"text:message\": { text: \"Hello\" } } }"
41
- }
42
- }
43
- ```
44
-
45
- Successful validation returns structured content similar to:
46
-
47
- ```json
48
- {
49
- "ok": true,
50
- "componentUsage": ["text"]
51
- }
52
- ```
53
-
54
- Invalid source returns `ok: false` plus a SlexKit diagnostic with message, location, and excerpt.
55
-
56
- ## Safety
57
-
58
- The MCP server is read-only. It serves bundled docs and generated metadata from the package, validates source text, and writes no project files.
1
+ # @slexkit/mcp
2
+
3
+ Read-only MCP server for SlexKit docs, component APIs, examples, and source validation.
4
+
5
+ ## Configure
6
+
7
+ ```json
8
+ {
9
+ "mcpServers": {
10
+ "slexkit": {
11
+ "command": "npx",
12
+ "args": ["-y", "@slexkit/mcp"]
13
+ }
14
+ }
15
+ }
16
+ ```
17
+
18
+ The same command shape works in clients such as Codex, Claude Desktop, and other MCP-compatible agent tools:
19
+
20
+ ```sh
21
+ npx -y @slexkit/mcp
22
+ ```
23
+
24
+ ## Tools
25
+
26
+ The server exposes three read-only tools:
27
+
28
+ | Tool | Purpose |
29
+ |------|---------|
30
+ | `slexkitDocs` | Search or fetch generated Markdown docs, standard artifact JSON, conformance reports, and optional `std.*` / `api.*` capability metadata. |
31
+ | `slexkitExamples` | Return component examples or generated templates such as `status`, `calculator`, `stdlib-calculator`, `secure-network-card`, `toolhost-form`, and `host-integration`. |
32
+ | `slexkitValidate` | Parse Slex source and return diagnostics, warnings, component usage, `std.*` usage, and `api.*` usage. |
33
+
34
+ Example validation request:
35
+
36
+ ```json
37
+ {
38
+ "name": "slexkitValidate",
39
+ "arguments": {
40
+ "source": "{ slex: \"0.1\", namespace: \"demo\", layout: { \"text:message\": { text: \"Hello\" } } }"
41
+ }
42
+ }
43
+ ```
44
+
45
+ Successful validation returns structured content similar to:
46
+
47
+ ```json
48
+ {
49
+ "ok": true,
50
+ "schemaVersion": "2026-06",
51
+ "protocolVersion": "0.1",
52
+ "logicProfileVersion": "0.1",
53
+ "componentUsage": ["text"]
54
+ }
55
+ ```
56
+
57
+ Invalid source returns `ok: false` plus a SlexKit diagnostic with message, location, and excerpt.
58
+
59
+ Fetch standard artifacts through `slexkitDocs`:
60
+
61
+ ```json
62
+ {
63
+ "name": "slexkitDocs",
64
+ "arguments": {
65
+ "standardArtifact": "slex-standard-manifest.json"
66
+ }
67
+ }
68
+ ```
69
+
70
+ Available standard artifacts include `slex-expression.schema.json`, `slex-component-catalog.json`, `slex-logic-profile.json`, `slex-capabilities.catalog.json`, `slex-conformance.json`, and `slex-standard-manifest.json`.
71
+
72
+ Run the bundled conformance fixtures through `slexkitDocs`:
73
+
74
+ ```json
75
+ {
76
+ "name": "slexkitDocs",
77
+ "arguments": {
78
+ "conformanceReport": true
79
+ }
80
+ }
81
+ ```
82
+
83
+ ## Safety
84
+
85
+ The MCP server is read-only. It serves bundled docs and generated metadata from the package, validates source text, and writes no project files.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use these components inside Markdown `slex` fences. Raw component docs are ordinary `.md` pages that preserve `slex` examples.
4
4
 
5
- Public component count: 29
5
+ Public component count: 28
6
6
 
7
7
  ## Disclosure
8
8
 
@@ -21,11 +21,10 @@ Public component count: 29
21
21
  ## Action
22
22
 
23
23
  - [Button](/docs/components/button.md): `button` - Action trigger.
24
- - [Submit](/docs/components/submit.md): `submit` - ToolHost submit and ignore controls.
25
24
 
26
25
  ## Layout
27
26
 
28
- - [Card](/docs/components/card.md): `card` - Bordered grouping container.
27
+ - [Card](/docs/components/card.md): `card` - Grouping container for related content.
29
28
  - [Column](/docs/components/column.md): `column` - Vertical layout container.
30
29
  - [Grid](/docs/components/grid.md): `grid` - Responsive grid container.
31
30
  - [Row](/docs/components/row.md): `row` - Horizontal layout container.
@@ -168,6 +167,7 @@ Since: 0.1.0
168
167
  - `title` (string; optional; dynamic): Card title.
169
168
  - `icon` (string; optional; static): Icon name shown before the title.
170
169
  - `tone` (string; optional; static; values: info, success, warning, danger, muted): Optional semantic tone for the card surface.
170
+ - `variant` (string; optional; static; values: tool): Use tool for ToolHost input cards with compact chrome.
171
171
 
172
172
  ### Children
173
173
  Nested component fields are rendered as child content in field order.
@@ -446,8 +446,10 @@ Since: 0.1.0
446
446
  - `icon` (string; optional; static): Icon name shown before the group label.
447
447
  - `options` (array; optional; static): Options with label, value, and optional icon.
448
448
  - `options[].icon` (string; optional; static): Icon name shown before a single option label.
449
+ - `options[].description` (string; optional; static): Secondary text shown below the option label.
449
450
  - `disabled` (boolean; optional; dynamic; default: false): Disable every radio option in the group.
450
451
  - `orientation` (string; optional; static; default: "vertical"; values: vertical, horizontal): Radio option layout direction.
452
+ - `variant` (string; optional; static; values: list): Use list for full-row option surfaces in ToolHost decision cards.
451
453
  - `haptic` (boolean; optional; static; default: true): Enable vibration feedback on supported devices.
452
454
  - `haptics` (boolean; optional; static; default: true): Alias for haptic.
453
455
  - `name` (string; optional; static): Native radio group name shared by options.
@@ -469,6 +471,7 @@ Since: 0.1.0
469
471
  - `justify` (string; optional; static; default: "start"; values: start, center, end, space-between, space-around): Main-axis distribution.
470
472
  - `align` (string; optional; static; default: "center"; values: start, center, end, baseline, stretch): Cross-axis alignment.
471
473
  - `gap` (string; optional; dynamic): Spacing between children.
474
+ - `variant` (string; optional; static; values: actions): Use actions for compact ToolHost action rows.
472
475
 
473
476
  ### Children
474
477
  Nested component fields are rendered as child content in field order.
@@ -565,24 +568,6 @@ No child components.
565
568
 
566
569
  ---
567
570
 
568
- ## Submit API (`submit`)
569
-
570
- Category: Action
571
- Status: ready
572
- State mode: none
573
- Since: 0.1.0
574
-
575
- ### Props
576
- - `submitLabel` (string; optional; static; default: "Submit"): Submit button text.
577
- - `ignoreLabel` (string; optional; static; default: "Ignore"): Ignore button text.
578
- - `returnKeys` (string[]; optional; static): State field paths returned to ToolHost.
579
- - `disabled` (boolean; optional; dynamic; default: false): Disable submit action.
580
-
581
- ### Children
582
- No child components.
583
-
584
- ---
585
-
586
571
  ## Switch API (`switch`)
587
572
 
588
573
  Category: Input