@santi020k/lumen-mcp 1.1.0 → 1.3.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
@@ -3,7 +3,7 @@
3
3
  A [Model Context Protocol](https://modelcontextprotocol.io) server for the Lumen
4
4
  multi-framework primitive UI system. It gives AI agents structured access to
5
5
  components, real framework contracts, recipes, design tokens, accessibility
6
- behavior, runtime events, and Lumen's generation rules.
6
+ behavior, runtime events, native platform contracts, and Lumen's generation rules.
7
7
 
8
8
  The published server ships a self-contained catalog snapshot, so consumers do
9
9
  not need a checkout of the Lumen repository.
@@ -14,12 +14,14 @@ not need a checkout of the Lumen repository.
14
14
  | --- | --- |
15
15
  | `lumen_list_components` | List components with descriptions, categories, framework availability, collections, and recipe membership. Filter by `framework`, `recipe`, or natural-language `query`. |
16
16
  | `lumen_get_component` | Get a component for `astro`, `react`, or `elements` at `summary`, `usage`, or `source` detail. Usage includes imports, styles, props or attributes, examples, accessibility, guidance, and events. |
17
+ | `lumen_list_native_components` | List native components and filter them by `react-native`, `swiftui`, or `compose`. |
18
+ | `lumen_get_native_component` | Get native installation, setup, import, API, example, accessibility guidance, and optional adapter source for one platform. |
17
19
  | `lumen_get_recipe` | Get a recipe or component set with its purpose, components, files, categories, and framework-specific install command. |
18
- | `lumen_search` | Rank tolerant natural-language matches across component descriptions, curated collections, framework contracts, props, attributes, recipes, tokens, and agent rules. Optionally filter component contracts by framework. |
20
+ | `lumen_search` | Rank natural-language matches across web and native contracts, recipes, tokens, and agent rules. Optionally filter by web framework or native platform. |
19
21
  | `lumen_get_meta` | Return deterministic snapshot provenance, package versions, schema version, component count, and catalog hash. |
20
- | `lumen_get_catalog_manifest` | Return stable per-component and per-recipe fingerprints that clients can retain between upgrades. |
22
+ | `lumen_get_catalog_manifest` | Return stable web component, native component, and recipe fingerprints that clients can retain between upgrades. |
21
23
  | `lumen_diff_catalog` | Compare a retained manifest with the current snapshot and report added, changed, removed, and unchanged entries. |
22
- | `lumen_diagnose` | Verify snapshot integrity and report framework coverage when testing a connection. |
24
+ | `lumen_diagnose` | Verify snapshot integrity and report web framework plus native platform coverage when testing a connection. |
23
25
  | `lumen_get_tokens` | Return semantic token names, base colors, glass tokens, and the theme attribute. |
24
26
  | `lumen_get_rules` | Return the Lumen agent rules from `llms.txt`. |
25
27
 
@@ -36,6 +38,8 @@ Every tool returns both readable text and validated `structuredContent`.
36
38
  | `lumen://tokens` | Structured design tokens. |
37
39
  | `lumen://components` | Compact component catalog. |
38
40
  | `lumen://components/{name}` | Component metadata and default Astro usage. |
41
+ | `lumen://native-components` | Compact native component catalog with platform availability. |
42
+ | `lumen://native-components/{name}` | Native component metadata and usage for an available platform. |
39
43
  | `lumen://recipes/{name}` | Recipe metadata and install commands. |
40
44
 
41
45
  ## Install and connect
@@ -137,8 +141,8 @@ package does not provide those infrastructure controls.
137
141
 
138
142
  1. Read `lumen://meta` and call `lumen_diagnose` to identify and verify the bundled snapshot.
139
143
  2. Read `lumen://rules`.
140
- 3. Call `lumen_search` with the requested use case and target framework.
141
- 4. Call `lumen_get_component` with `detail: "usage"`.
144
+ 3. Call `lumen_search` with the requested use case and target framework or platform.
145
+ 4. For web, call `lumen_get_component`; for native, call `lumen_get_native_component` with `detail: "usage"`.
142
146
  5. Follow the returned framework behavior section: mount Astro `UIPrimitives` once, use the named React hook/controller, or register custom elements once.
143
147
  6. Inspect a related recipe with `lumen_get_recipe` when the UI needs multiple primitives.
144
148
  7. Request `detail: "source"` only when the usage contract is insufficient.
@@ -172,6 +176,17 @@ Example calls:
172
176
  }
173
177
  ```
174
178
 
179
+ ```json
180
+ {
181
+ "name": "lumen_get_native_component",
182
+ "arguments": {
183
+ "name": "Settings row",
184
+ "platform": "swiftui",
185
+ "detail": "usage"
186
+ }
187
+ }
188
+ ```
189
+
175
190
  ## Local repository usage
176
191
 
177
192
  This repository includes a project-scoped Codex configuration that launches:
@@ -204,6 +219,7 @@ The reusable handlers return readable text plus typed data:
204
219
  import {
205
220
  getComponent,
206
221
  getMeta,
222
+ getNativeComponent,
207
223
  getRecipe,
208
224
  search
209
225
  } from '@santi020k/lumen-mcp/tools'
@@ -217,6 +233,12 @@ const component = getComponent({
217
233
  name: 'DateRangePicker'
218
234
  }).data.component
219
235
 
236
+ const nativeComponent = getNativeComponent({
237
+ detail: 'usage',
238
+ name: 'Settings row',
239
+ platform: 'react-native'
240
+ }).data.component
241
+
220
242
  const recipe = getRecipe({
221
243
  framework: 'react',
222
244
  name: 'advanced-fields'
@@ -238,6 +260,8 @@ const server = createLumenServer()
238
260
  - The shared component catalog and registry metadata.
239
261
  - Astro and React component declarations.
240
262
  - The Web Component definition registry.
263
+ - The native registry and React Native, SwiftUI, and Compose adapter sources.
264
+ - Native documentation examples, API rows, accessibility, and platform guidance.
241
265
  - Documentation examples, API rows, guidance, keyboard interactions, and runtime events.
242
266
  - Design tokens, recipes, `docs/ai-usage.md`, and `llms.txt`.
243
267