@dereekb/dbx-components-mcp 13.10.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Hapier Creative LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # @dereekb/dbx-components-mcp
2
+
3
+ MCP server for dbx-components — structured tool access to form fields, Firebase models, server actions, UI components, routes, filters, pipes, and code-scaffolding helpers.
4
+
5
+ ## Tools
6
+
7
+ Tools are clustered by domain. Each cluster exposes lookup, search, examples, and/or scaffold operations.
8
+
9
+ Clusters with the `_m` suffix are **model extensions** — tools that walk a downstream app's source tree to verify end-to-end wiring of a specific dbx-components model type.
10
+
11
+ | Cluster | Tools |
12
+ |----------------|----------------------------------------------------------------------------------------------------------------------------------------|
13
+ | form | `dbx_form_lookup`, `dbx_form_search`, `dbx_form_examples`, `dbx_form_scaffold` |
14
+ | ui | `dbx_ui_lookup`, `dbx_ui_search`, `dbx_ui_examples` |
15
+ | model | `dbx_model_lookup`, `dbx_model_search`, `dbx_model_decode`, `dbx_model_validate`, `dbx_model_validate_api`, `dbx_model_validate_folder`, `dbx_model_store_scaffold` |
16
+ | storagefile_m | `dbx_storagefile_m_validate_app`, `dbx_storagefile_m_list_app`, `dbx_storagefile_m_validate_folder` |
17
+ | notification_m | `dbx_notification_m_validate_app`, `dbx_notification_m_list_app`, `dbx_notification_m_validate_folder` |
18
+ | system_m | `dbx_system_m_validate_folder` |
19
+ | action | `dbx_action_lookup`, `dbx_action_examples`, `dbx_action_scaffold` |
20
+ | route | `dbx_route_tree`, `dbx_route_lookup`, `dbx_route_search` |
21
+ | filter | `dbx_filter_lookup`, `dbx_filter_scaffold` |
22
+ | pipe | `dbx_pipe_lookup` |
23
+ | artifact | `dbx_artifact_scaffold`, `dbx_artifact_file_convention` |
24
+
25
+ ## Resources
26
+
27
+ URIs are namespaced by domain (`dbx://<domain>/...`). Validators, scaffolders, and route trees don't expose resources because their output depends on caller input rather than a fixed catalog.
28
+
29
+ | URI | Description |
30
+ |------------------------------------------------------|--------------------------------------------------------|
31
+ | `dbx://form/fields` | Form field catalog |
32
+ | `dbx://form/fields/{slug}` | Single form field entry |
33
+ | `dbx://form/fields/produces/{produces}` | Form fields by output primitive |
34
+ | `dbx://form/fields/tier/{tier}` | Form fields by tier |
35
+ | `dbx://form/fields/array-output/{arrayOutput}` | Form fields by array-output flag |
36
+ | `dbx://model/firebase` | Firebase model catalog |
37
+ | `dbx://model/firebase/{name}` | Single Firebase model |
38
+ | `dbx://model/firebase/prefix/{prefix}` | Firebase model by collection prefix |
39
+ | `dbx://model/firebase/subcollections/{parent}` | Subcollection models nested under a parent identity |
40
+ | `dbx://action/entries` | Action entries catalog (directives, store, states) |
41
+ | `dbx://action/entries/{slug}` | Single action entry |
42
+ | `dbx://action/entries/role/{role}` | Action entries by role |
43
+ | `dbx://ui/components` | UI component catalog |
44
+ | `dbx://ui/components/{slug}` | Single UI entry |
45
+ | `dbx://ui/components/category/{category}` | UI entries by category |
46
+ | `dbx://ui/components/kind/{kind}` | UI entries by Angular kind |
47
+ | `dbx://pipe/entries` | Angular pipe catalog |
48
+ | `dbx://pipe/entries/{slug}` | Single pipe entry |
49
+ | `dbx://pipe/entries/category/{category}` | Pipes by category |
50
+ | `dbx://filter/entries` | Filter directive / preset catalog |
51
+ | `dbx://filter/entries/{slug}` | Single filter entry |
52
+ | `dbx://filter/entries/kind/{kind}` | Filter entries by kind (directive, pattern) |
53
+
54
+ ## Usage
55
+
56
+ ```json
57
+ {
58
+ "mcpServers": {
59
+ "dbx-components": {
60
+ "command": "npx",
61
+ "args": ["-y", "@dereekb/dbx-components-mcp"]
62
+ }
63
+ }
64
+ }
65
+ ```
66
+
67
+ ## Generated registry data
68
+
69
+ The Firebase model registry (`src/registry/firebase-models.generated.ts`) is produced by `scripts/extract-firebase-models.mjs`, which scans `packages/firebase/src/lib/model/**` for `firestoreModelIdentity(...)` calls, converters, interfaces, and enums. Run it via:
70
+
71
+ ```sh
72
+ npx nx run dbx-components-mcp:generate-firebase-models
73
+ ```
74
+
75
+ The script formats output through Prettier so regenerating produces a byte-equal file when source models haven't changed.