@cobwds/mcp-server 1.19.4 → 1.23.1

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.
Files changed (35) hide show
  1. package/README.md +6 -15
  2. package/data/cem/custom-elements.json +10058 -6738
  3. package/data/frameworks.json +14 -0
  4. package/data/guides/form-validation.md +1 -1
  5. package/data/guides/frameworks/angular.md +184 -26
  6. package/data/guides/frameworks/react-additions.md +69 -0
  7. package/data/guides/frameworks/react.md +209 -27
  8. package/data/guides/frameworks/vue.md +356 -0
  9. package/data/tokens/tokens.css +2 -2
  10. package/data/tokens/tokens.json +3 -3
  11. package/dist/lib/cem-parser.d.ts +12 -0
  12. package/dist/lib/cem-parser.d.ts.map +1 -1
  13. package/dist/lib/framework-snippets.d.ts +36 -0
  14. package/dist/lib/framework-snippets.d.ts.map +1 -0
  15. package/dist/lib/framework-snippets.js +55 -0
  16. package/dist/lib/framework-usage.d.ts +20 -0
  17. package/dist/lib/framework-usage.d.ts.map +1 -0
  18. package/dist/lib/framework-usage.js +50 -0
  19. package/dist/lib/frameworks-data.d.ts +19 -0
  20. package/dist/lib/frameworks-data.d.ts.map +1 -0
  21. package/dist/lib/frameworks-data.js +40 -0
  22. package/dist/resources/frameworks.d.ts +15 -0
  23. package/dist/resources/frameworks.d.ts.map +1 -0
  24. package/dist/resources/frameworks.js +104 -0
  25. package/dist/resources/guides.d.ts.map +1 -1
  26. package/dist/resources/guides.js +12 -1
  27. package/dist/resources/index.d.ts.map +1 -1
  28. package/dist/resources/index.js +2 -0
  29. package/dist/tools/component-tools.d.ts.map +1 -1
  30. package/dist/tools/component-tools.js +20 -5
  31. package/dist/tools/guide-tools.js +1 -1
  32. package/dist/tools/utility-tools.d.ts +48 -0
  33. package/dist/tools/utility-tools.d.ts.map +1 -1
  34. package/dist/tools/utility-tools.js +236 -71
  35. package/package.json +6 -4
package/README.md CHANGED
@@ -17,19 +17,6 @@ Jump to the configuration for your assistant:
17
17
  - [Cursor](#cursor)
18
18
  - [Gemini CLI](#gemini-cli)
19
19
 
20
- ### Using the Next Channel
21
-
22
- To pull in the latest bleeding-edge changes before they hit the stable release, point to the `next` dist-tag by replacing `@cobwds/mcp-server` with `@cobwds/mcp-server@next` in any of the configurations below. For example:
23
-
24
- ```json
25
- "args": ["-y", "@cobwds/mcp-server@next"]
26
- ```
27
-
28
- To go back to stable, just remove `@next`.
29
-
30
- > [!NOTE]
31
- > Next releases may include breaking changes, incomplete features, or components not fully supported. They're useful for previewing upcoming work, but stick with the stable channel for production use.
32
-
33
20
  ### Optional: Local Installation
34
21
 
35
22
  If you prefer to install the server locally — for example, to use the [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) or to pin a specific version — you can install it globally:
@@ -154,7 +141,7 @@ See the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli)
154
141
  | Tool | Description |
155
142
  | ------------------------ | ------------------------------------------------------------------------------------------- |
156
143
  | `find_components` | Search for components by name/description, or list all (omit query) |
157
- | `get_component` | Full documentation for a specific component. Use `includeExamples: true` for code examples. |
144
+ | `get_component` | Full documentation for a specific component. Use `includeExamples: true` for code examples (each carries `html`, `react`, and `angular` snippets). Pass `framework: "react"` or `"angular"` for that framework's import line, event-prop naming, and forms guidance. |
158
145
  | `validate_component_api` | Validate that attributes/properties are valid for a component |
159
146
 
160
147
  ### Design Tokens
@@ -171,7 +158,7 @@ See the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli)
171
158
  | Tool | Description |
172
159
  | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
173
160
  | `get_utility_classes` | Grid, flexbox, spacing, display, and typography utility classes |
174
- | `get_guide` | Guides for installation, forms, styles, fonts, page structure, or framework setup (angular, react, dotnet, drupal, vanilla). Angular, React, .NET, and Drupal guides are currently untested. |
161
+ | `get_guide` | Guides for installation, forms, styles, fonts, page structure, or framework setup (angular, react, vue, dotnet, drupal, vanilla). The angular, react, and vue guides are the `@cobwds/angular`, `@cobwds/react`, and `@cobwds/vue` package READMEs. |
175
162
 
176
163
  ## Available Resources
177
164
 
@@ -187,6 +174,10 @@ See the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli)
187
174
  | `cobwds://tokens/space` | Spacing tokens |
188
175
  | `cobwds://tokens/size` | Size tokens |
189
176
  | `cobwds://installation` | Installation guide |
177
+ | `cobwds://frameworks` | Index of framework packages (`@cobwds/react`, `@cobwds/vue`, `@cobwds/angular`) with version and guide URI |
178
+ | `cobwds://frameworks/react` | `@cobwds/react` install, usage, forms, SSR, and troubleshooting guide |
179
+ | `cobwds://frameworks/vue` | `@cobwds/vue` install, usage, `v-model` forms, SSR, and troubleshooting guide |
180
+ | `cobwds://frameworks/angular` | `@cobwds/angular` install, usage, forms, SSR, and troubleshooting guide |
190
181
 
191
182
  ## Prompts
192
183