@primevue/mcp 5.0.0-rc.1 → 5.0.0-rc.3

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 (174) hide show
  1. package/README.md +47 -247
  2. package/data/components.json +47339 -0
  3. package/data/llms/components/accordion.md +629 -0
  4. package/data/llms/components/animateonscroll.md +165 -0
  5. package/data/llms/components/autocomplete.md +995 -0
  6. package/data/llms/components/avatar.md +264 -0
  7. package/data/llms/components/badge.md +200 -0
  8. package/data/llms/components/blockui.md +101 -0
  9. package/data/llms/components/breadcrumb.md +269 -0
  10. package/data/llms/components/button.md +902 -0
  11. package/data/llms/components/card.md +209 -0
  12. package/data/llms/components/carousel.md +506 -0
  13. package/data/llms/components/cascadeselect.md +1207 -0
  14. package/data/llms/components/chart.md +1022 -0
  15. package/data/llms/components/checkbox.md +401 -0
  16. package/data/llms/components/chip.md +206 -0
  17. package/data/llms/components/colorpicker.md +213 -0
  18. package/data/llms/components/commandmenu.md +660 -0
  19. package/data/llms/components/compare.md +407 -0
  20. package/data/llms/components/confirmdialog.md +315 -0
  21. package/data/llms/components/confirmpopup.md +252 -0
  22. package/data/llms/components/contextmenu.md +522 -0
  23. package/data/llms/components/datatable.md +5266 -0
  24. package/data/llms/components/dataview.md +569 -0
  25. package/data/llms/components/datepicker.md +966 -0
  26. package/data/llms/components/deferredcontent.md +96 -0
  27. package/data/llms/components/dialog.md +670 -0
  28. package/data/llms/components/divider.md +152 -0
  29. package/data/llms/components/dock.md +488 -0
  30. package/data/llms/components/drawer.md +469 -0
  31. package/data/llms/components/dynamicdialog.md +214 -0
  32. package/data/llms/components/editor.md +204 -0
  33. package/data/llms/components/fieldset.md +253 -0
  34. package/data/llms/components/fileupload.md +463 -0
  35. package/data/llms/components/floatlabel.md +144 -0
  36. package/data/llms/components/fluid.md +104 -0
  37. package/data/llms/components/focustrap.md +59 -0
  38. package/data/llms/components/forms.md +346 -0
  39. package/data/llms/components/galleria.md +1119 -0
  40. package/data/llms/components/gallery.md +1003 -0
  41. package/data/llms/components/iconfield.md +283 -0
  42. package/data/llms/components/iftalabel.md +96 -0
  43. package/data/llms/components/image.md +179 -0
  44. package/data/llms/components/imagecompare.md +108 -0
  45. package/data/llms/components/inplace.md +183 -0
  46. package/data/llms/components/inputcolor.md +869 -0
  47. package/data/llms/components/inputgroup.md +345 -0
  48. package/data/llms/components/inputmask.md +345 -0
  49. package/data/llms/components/inputnumber.md +551 -0
  50. package/data/llms/components/inputotp.md +345 -0
  51. package/data/llms/components/inputpassword.md +738 -0
  52. package/data/llms/components/inputtags.md +431 -0
  53. package/data/llms/components/inputtext.md +569 -0
  54. package/data/llms/components/installation.md +1 -0
  55. package/data/llms/components/keyfilter.md +116 -0
  56. package/data/llms/components/knob.md +318 -0
  57. package/data/llms/components/label.md +151 -0
  58. package/data/llms/components/laravel.md +53 -0
  59. package/data/llms/components/listbox.md +636 -0
  60. package/data/llms/components/mask.md +203 -0
  61. package/data/llms/components/mcp.md +39 -0
  62. package/data/llms/components/megamenu.md +563 -0
  63. package/data/llms/components/menu.md +651 -0
  64. package/data/llms/components/menubar.md +446 -0
  65. package/data/llms/components/message.md +497 -0
  66. package/data/llms/components/metergroup.md +281 -0
  67. package/data/llms/components/multiselect.md +752 -0
  68. package/data/llms/components/orderlist.md +224 -0
  69. package/data/llms/components/organizationchart.md +418 -0
  70. package/data/llms/components/paginator.md +221 -0
  71. package/data/llms/components/panel.md +321 -0
  72. package/data/llms/components/panelmenu.md +703 -0
  73. package/data/llms/components/password.md +657 -0
  74. package/data/llms/components/picklist.md +286 -0
  75. package/data/llms/components/popover.md +145 -0
  76. package/data/llms/components/progressbar.md +242 -0
  77. package/data/llms/components/progressspinner.md +104 -0
  78. package/data/llms/components/radiobutton.md +427 -0
  79. package/data/llms/components/rating.md +312 -0
  80. package/data/llms/components/ripple.md +91 -0
  81. package/data/llms/components/scrollarea.md +700 -0
  82. package/data/llms/components/scrollpanel.md +131 -0
  83. package/data/llms/components/scrolltop.md +87 -0
  84. package/data/llms/components/select.md +1251 -0
  85. package/data/llms/components/selectbutton.md +268 -0
  86. package/data/llms/components/sidebar.md +2232 -0
  87. package/data/llms/components/skeleton.md +302 -0
  88. package/data/llms/components/slider.md +416 -0
  89. package/data/llms/components/speeddial.md +402 -0
  90. package/data/llms/components/splitbutton.md +840 -0
  91. package/data/llms/components/splitter.md +447 -0
  92. package/data/llms/components/stepper.md +551 -0
  93. package/data/llms/components/styleclass.md +226 -0
  94. package/data/llms/components/tabs.md +609 -0
  95. package/data/llms/components/tag.md +178 -0
  96. package/data/llms/components/terminal.md +123 -0
  97. package/data/llms/components/textarea.md +519 -0
  98. package/data/llms/components/tieredmenu.md +578 -0
  99. package/data/llms/components/timeline.md +494 -0
  100. package/data/llms/components/toast.md +472 -0
  101. package/data/llms/components/togglebutton.md +276 -0
  102. package/data/llms/components/toggleswitch.md +271 -0
  103. package/data/llms/components/toolbar.md +140 -0
  104. package/data/llms/components/tooltip.md +160 -0
  105. package/data/llms/components/tree.md +1076 -0
  106. package/data/llms/components/treeselect.md +660 -0
  107. package/data/llms/components/treetable.md +2493 -0
  108. package/data/llms/components/virtualscroller.md +265 -0
  109. package/data/llms/guides/autoimport.md +28 -0
  110. package/data/llms/guides/cdn.md +72 -0
  111. package/data/llms/guides/configuration.md +158 -0
  112. package/data/llms/guides/customicons.md +67 -0
  113. package/data/llms/guides/guides/accessibility.md +27 -0
  114. package/data/llms/guides/guides/animations.md +119 -0
  115. package/data/llms/guides/guides/rtl.md +7 -0
  116. package/data/llms/guides/icons.md +136 -0
  117. package/data/llms/guides/installation.md +3 -0
  118. package/data/llms/guides/laravel.md +66 -0
  119. package/data/llms/guides/llms.md +15 -0
  120. package/data/llms/guides/mcp.md +80 -0
  121. package/data/llms/guides/migration/v4.md +15 -0
  122. package/data/llms/guides/migration/v5.md +15 -0
  123. package/data/llms/guides/nuxt.md +141 -0
  124. package/data/llms/guides/passthrough.md +137 -0
  125. package/data/llms/guides/plugin.md +99 -0
  126. package/data/llms/guides/primeclt.md +43 -0
  127. package/data/llms/guides/tailwind.md +151 -0
  128. package/data/llms/guides/theming/styled.md +497 -0
  129. package/data/llms/guides/theming/unstyled.md +57 -0
  130. package/data/llms/guides/uikit.md +3 -0
  131. package/data/llms/guides/vite.md +90 -0
  132. package/data/llms/llms-full.txt +54417 -0
  133. package/data/llms/llms.txt +133 -0
  134. package/data/llms/pages/accessibility.md +27 -0
  135. package/data/llms/pages/animations.md +119 -0
  136. package/data/llms/pages/autoimport.md +28 -0
  137. package/data/llms/pages/cdn.md +72 -0
  138. package/data/llms/pages/configuration.md +158 -0
  139. package/data/llms/pages/contribution.md +31 -0
  140. package/data/llms/pages/customicons.md +67 -0
  141. package/data/llms/pages/designer.md +79 -0
  142. package/data/llms/pages/dynamicimports.md +7 -0
  143. package/data/llms/pages/forms.md +63 -0
  144. package/data/llms/pages/guides/accessibility.md +27 -0
  145. package/data/llms/pages/guides/animations.md +119 -0
  146. package/data/llms/pages/guides/rtl.md +7 -0
  147. package/data/llms/pages/icons.md +136 -0
  148. package/data/llms/pages/installation.md +3 -0
  149. package/data/llms/pages/introduction.md +23 -0
  150. package/data/llms/pages/laravel.md +66 -0
  151. package/data/llms/pages/llms.md +15 -0
  152. package/data/llms/pages/mcp.md +80 -0
  153. package/data/llms/pages/migration/v4.md +15 -0
  154. package/data/llms/pages/migration/v5.md +15 -0
  155. package/data/llms/pages/nuxt.md +141 -0
  156. package/data/llms/pages/passthrough.md +137 -0
  157. package/data/llms/pages/plugin.md +99 -0
  158. package/data/llms/pages/primeclt.md +43 -0
  159. package/data/llms/pages/rtl.md +7 -0
  160. package/data/llms/pages/setup.md +3 -0
  161. package/data/llms/pages/styled.md +497 -0
  162. package/data/llms/pages/tailwind.md +151 -0
  163. package/data/llms/pages/theming/styled.md +497 -0
  164. package/data/llms/pages/theming/unstyled.md +57 -0
  165. package/data/llms/pages/uikit.md +3 -0
  166. package/data/llms/pages/unstyled.md +57 -0
  167. package/data/llms/pages/v4.md +15 -0
  168. package/data/llms/pages/v5.md +15 -0
  169. package/data/llms/pages/vite.md +90 -0
  170. package/data/manifest.json +11569 -0
  171. package/data/mcp-data.json +56164 -0
  172. package/dist/index.d.ts +8 -1
  173. package/dist/index.js +66929 -41844
  174. package/package.json +7 -5
package/README.md CHANGED
@@ -1,92 +1,51 @@
1
1
  # @primevue/mcp
2
2
 
3
- Model Context Protocol (MCP) server for PrimeVue component library. Provides AI assistants with comprehensive access to PrimeVue component documentation, props, events, slots, theming, and code examples.
3
+ Model Context Protocol (MCP) server for PrimeVue. The package is a thin public wrapper over the shared `@primeuix/mcp` v2 core and the generated PrimeVue docs artifacts in `packages/mcp/data/mcp-data.json` and `packages/mcp/data/manifest.json`.
4
4
 
5
- ## What is MCP?
5
+ Requires Node.js 22 or newer. Published runtime data is self-contained: normalized JSON lives once under `data/`, while offline Markdown and text resources live under `data/llms/`.
6
6
 
7
- [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) is an open standard that enables AI models to connect with external tools and data sources. By installing this MCP server, your AI assistant gains deep knowledge of PrimeVue components and can provide accurate, up-to-date information while helping you build Vue.js applications.
8
-
9
- ## Installation
10
-
11
- ### Claude Code
12
-
13
- Add the PrimeVue MCP server using the CLI:
7
+ ## Run
14
8
 
15
9
  ```bash
16
- # Add to your user config (available in all projects)
17
- claude mcp add primevue -s user -- npx -y @primevue/mcp
18
-
19
- # Or add to current project only
20
- claude mcp add primevue -- npx -y @primevue/mcp
10
+ npx -y @primevue/mcp@rc
21
11
  ```
22
12
 
23
- Alternatively, use the JSON format for more control:
13
+ The public bin command is also available as:
24
14
 
25
15
  ```bash
26
- claude mcp add-json primevue '{"command":"npx","args":["-y","@primevue/mcp"]}' -s user
16
+ primevue-mcp
27
17
  ```
28
18
 
29
- **Useful commands:**
19
+ ## Setup
20
+
21
+ ### Claude Code
30
22
 
31
23
  ```bash
32
- claude mcp list # List all MCP servers
33
- claude mcp get primevue # Get server details
34
- claude mcp remove primevue # Remove the server
24
+ claude mcp add primevue -s user -- npx -y @primevue/mcp@rc
35
25
  ```
36
26
 
37
- After adding, start a new Claude Code session and use `/mcp` to verify the connection.
38
-
39
- > **Reference:** [Claude Code MCP Documentation](https://code.claude.com/docs/en/mcp)
40
-
41
- ---
27
+ Project-local configuration:
42
28
 
43
- ### Cursor
44
-
45
- **Option 1: Project Configuration**
46
-
47
- Create `.cursor/mcp.json` in your project:
48
-
49
- ```json
50
- {
51
- "mcpServers": {
52
- "primevue": {
53
- "command": "npx",
54
- "args": ["-y", "@primevue/mcp"]
55
- }
56
- }
57
- }
29
+ ```bash
30
+ claude mcp add primevue -- npx -y @primevue/mcp@rc
58
31
  ```
59
32
 
60
- **Option 2: Global Configuration**
33
+ ### Cursor
61
34
 
62
- Create or edit `~/.cursor/mcp.json` in your home directory:
35
+ Create `.cursor/mcp.json` in your project or edit `~/.cursor/mcp.json`:
63
36
 
64
37
  ```json
65
38
  {
66
39
  "mcpServers": {
67
40
  "primevue": {
68
41
  "command": "npx",
69
- "args": ["-y", "@primevue/mcp"]
42
+ "args": ["-y", "@primevue/mcp@rc"]
70
43
  }
71
44
  }
72
45
  }
73
46
  ```
74
47
 
75
- **Option 3: Via Settings UI**
76
-
77
- 1. Go to **Cursor Settings** > **Tools & Integrations**
78
- 2. Click **New MCP Server**
79
- 3. Add the configuration above
80
-
81
- After adding, go to **Settings > MCP** and click the refresh button. The Composer Agent will automatically use PrimeVue tools when relevant.
82
-
83
- > **Reference:** [Cursor MCP Documentation](https://docs.cursor.com/context/model-context-protocol)
84
-
85
- ---
86
-
87
- ### VS Code (GitHub Copilot)
88
-
89
- **Option 1: Project Configuration**
48
+ ### VS Code
90
49
 
91
50
  Create `.vscode/mcp.json` in your project:
92
51
 
@@ -95,220 +54,61 @@ Create `.vscode/mcp.json` in your project:
95
54
  "servers": {
96
55
  "primevue": {
97
56
  "command": "npx",
98
- "args": ["-y", "@primevue/mcp"]
99
- }
100
- }
101
- }
102
- ```
103
-
104
- **Option 2: User Configuration (Global)**
105
-
106
- Create or edit the MCP configuration file in your VS Code user data directory:
107
-
108
- - **macOS**: `~/Library/Application Support/Code/User/mcp.json`
109
- - **Windows**: `%APPDATA%\Code\User\mcp.json`
110
- - **Linux**: `~/.config/Code/User/mcp.json`
111
-
112
- ```json
113
- {
114
- "servers": {
115
- "primevue": {
116
- "command": "npx",
117
- "args": ["-y", "@primevue/mcp"]
57
+ "args": ["-y", "@primevue/mcp@rc"]
118
58
  }
119
59
  }
120
60
  }
121
61
  ```
122
62
 
123
- **Option 3: Via Command Palette**
124
-
125
- 1. Open Command Palette (`Cmd+Shift+P` / `Ctrl+Shift+P`)
126
- 2. Type "MCP: Add Server"
127
- 3. Select "Command (stdio)"
128
- 4. Enter `primevue` as the server ID
129
- 5. Enter `npx` as the command
130
- 6. Enter `-y,@primevue/mcp` as the arguments
131
-
132
- After adding, use Copilot in **Agent mode** to access PrimeVue tools. The MCP server will be available in GitHub Copilot Chat.
63
+ For user-level setup, place the same `servers` object in your VS Code user MCP configuration.
133
64
 
134
- > **Reference:** [VS Code MCP Documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)
135
-
136
- ---
137
-
138
- ### OpenAI Codex CLI
139
-
140
- **Option 1: Using the CLI**
65
+ ### Codex
141
66
 
142
67
  ```bash
143
- codex mcp add primevue -- npx -y @primevue/mcp
68
+ codex mcp add primevue -- npx -y @primevue/mcp@rc
144
69
  ```
145
70
 
146
- **Option 2: Direct Configuration**
147
-
148
- Edit `~/.codex/config.toml`:
71
+ Or edit `~/.codex/config.toml`:
149
72
 
150
73
  ```toml
151
74
  [mcp_servers.primevue]
152
75
  command = "npx"
153
- args = ["-y", "@primevue/mcp"]
76
+ args = ["-y", "@primevue/mcp@rc"]
154
77
  ```
155
78
 
156
- After adding, the MCP server will be available in both the Codex CLI and VS Code extension.
79
+ ## MCP Surface
157
80
 
158
- > **Reference:** [OpenAI Codex MCP Documentation](https://developers.openai.com/codex/mcp/)
81
+ The server exposes only the compact shared v2 tool surface:
159
82
 
160
- ---
83
+ | Tool | Purpose |
84
+ | ---------------- | --------------------------------------------------------------------------- |
85
+ | `list` | List generated components, guides, examples, resources, or modes. |
86
+ | `search` | Search generated component, guide, section, API, and example text. |
87
+ | `get_component` | Read component docs and metadata. |
88
+ | `get_guide` | Read generated guide docs and metadata. |
89
+ | `get_example` | Return one source-backed example from generated component docs. |
90
+ | `get_setup` | Return setup guidance from generated installation docs. |
91
+ | `validate_usage` | Validate component usage against generated API metadata. |
92
+ | `version` | Return server, docs data, tool, resource, and known manual metadata status. |
161
93
 
162
- ### Windsurf
94
+ Generated docs are exposed through resources and templates:
163
95
 
164
- **Option 1: Via Settings UI**
96
+ - Static resources: `primeui://primevue/index.json`, `primeui://primevue/llms.txt`, `primeui://primevue/llms-full.txt`
97
+ - Resource templates: `component-docs`, `component-api`, `example-docs`, `guide-docs`
165
98
 
166
- 1. Click **Windsurf - Settings** (bottom right) or press `Cmd+Shift+P` / `Ctrl+Shift+P`
167
- 2. Type "Open Windsurf Settings"
168
- 3. Navigate to **Cascade** section
169
- 4. Click **Manage MCPs** > **View raw config**
99
+ Workflow prompts:
170
100
 
171
- **Option 2: Direct Configuration**
101
+ - `use_component`
102
+ - `build_form`
103
+ - `theme_component`
104
+ - `migrate_primeui`
105
+ - `audit_component_usage`
172
106
 
173
- Edit `~/.codeium/windsurf/mcp_config.json`:
107
+ ## Data and Release Assumption
174
108
 
175
- ```json
176
- {
177
- "mcpServers": {
178
- "primevue": {
179
- "command": "npx",
180
- "args": ["-y", "@primevue/mcp"]
181
- }
182
- }
183
- }
184
- ```
185
-
186
- After adding, the MCP server will be available in Cascade.
187
-
188
- > **Reference:** [Windsurf MCP Documentation](https://docs.windsurf.com/windsurf/cascade/mcp)
189
-
190
- ---
191
-
192
- ### Zed
193
-
194
- Add to your Zed settings (`~/.config/zed/settings.json` on Linux, `~/Library/Application Support/Zed/settings.json` on macOS):
195
-
196
- ```json
197
- {
198
- "context_servers": {
199
- "primevue": {
200
- "command": {
201
- "path": "npx",
202
- "args": ["-y", "@primevue/mcp"]
203
- }
204
- }
205
- }
206
- }
207
- ```
109
+ `@primevue/mcp` does not vendor the shared core. Its RC dependency on `@primeuix/mcp` is pinned exactly to `2.0.0-rc.1`; keep the dependency exact throughout the RC cycle so installed behavior remains reproducible.
208
110
 
209
- After adding, restart Zed. Check the Agent Panel's settings view - a green indicator dot next to "primevue" confirms the server is active.
210
-
211
- > **Reference:** [Zed MCP Documentation](https://zed.dev/docs/ai/mcp)
212
-
213
- ---
214
-
215
- ## Available Tools
216
-
217
- ### Component Information
218
-
219
- | Tool | Description |
220
- | ----------------------- | -------------------------------------------- |
221
- | `list_components` | List all PrimeVue components with categories |
222
- | `get_component` | Get detailed info about a specific component |
223
- | `search_components` | Search components by name or description |
224
- | `get_component_props` | Get all props for a component |
225
- | `get_component_events` | Get all events for a component |
226
- | `get_component_methods` | Get all methods for a component |
227
- | `get_component_slots` | Get all slots for a component |
228
- | `compare_components` | Compare two components side by side |
229
- | `get_categories` | Get all component categories |
230
-
231
- ### Code Examples
232
-
233
- | Tool | Description |
234
- | ----------------------------- | ----------------------------------------------- |
235
- | `get_usage_example` | Get code examples for a component |
236
- | `list_examples` | List all available code examples |
237
- | `get_example` | Get a specific example by component and section |
238
- | `generate_component_template` | Generate a basic component template |
239
-
240
- ### Theming & Styling
241
-
242
- | Tool | Description |
243
- | ----------------------- | ---------------------------------------------- |
244
- | `get_component_pt` | Get Pass Through options for DOM customization |
245
- | `get_component_tokens` | Get design tokens (CSS variables) |
246
- | `get_component_styles` | Get CSS class names |
247
- | `get_theming_info` | Get theming information |
248
- | `get_theming_guide` | Get detailed theming guide |
249
- | `get_passthrough_guide` | Get Pass Through customization guide |
250
- | `get_tailwind_guide` | Get Tailwind CSS integration guide |
251
-
252
- ### Documentation & Guides
253
-
254
- | Tool | Description |
255
- | ------------------------- | --------------------------------------- |
256
- | `list_guides` | List all guides and documentation pages |
257
- | `get_guide` | Get a specific guide by name |
258
- | `get_configuration` | Get PrimeVue configuration options |
259
- | `get_installation` | Get installation instructions |
260
- | `get_icons_guide` | Get icons usage guide |
261
- | `get_accessibility_guide` | Get accessibility guide |
262
- | `get_accessibility_info` | Get accessibility info for a component |
263
-
264
- ### Search & Discovery
265
-
266
- | Tool | Description |
267
- | ------------------------------ | ------------------------------------------- |
268
- | `search_all` | Search across components, guides, and props |
269
- | `suggest_component` | Suggest components based on use case |
270
- | `find_by_prop` | Find components with a specific prop |
271
- | `find_by_event` | Find components that emit a specific event |
272
- | `find_components_with_feature` | Find components supporting a feature |
273
- | `get_related_components` | Find related components |
274
-
275
- ### Utilities
276
-
277
- | Tool | Description |
278
- | ------------------------ | ----------------------------------------- |
279
- | `get_component_url` | Get the official documentation URL |
280
- | `get_component_import` | Get the correct import statement |
281
- | `get_component_sections` | Get all sections/features for a component |
282
- | `validate_props` | Validate props for a component |
283
- | `export_component_docs` | Export documentation in markdown |
284
- | `get_form_components` | Get all form input components |
285
- | `get_data_components` | Get all data display components |
286
- | `get_overlay_components` | Get all overlay/popup components |
287
- | `get_performance_tips` | Get performance optimization tips |
288
- | `get_version_info` | Get version and compatibility info |
289
-
290
- ### Vue Composables
291
-
292
- | Tool | Description |
293
- | ------------------ | --------------------------------------- |
294
- | `list_composables` | List all PrimeVue composables |
295
- | `get_composable` | Get details about a specific composable |
296
-
297
- ## Example Prompts
298
-
299
- Once installed, try asking your AI assistant:
300
-
301
- - "What are all the props available for the DataTable component?"
302
- - "Show me how to implement row selection in DataTable"
303
- - "How do I customize Button styles using Pass Through?"
304
- - "What design tokens are available for the Card component?"
305
- - "Find me a component for selecting multiple items from a list"
306
- - "Compare AutoComplete and Select components"
307
-
308
- ## Requirements
309
-
310
- - Node.js 18+
311
- - One of the supported AI tools (Claude Code, VS Code + Copilot, Cursor, Windsurf, Claude Desktop)
111
+ The bundled package docs are copied from the generated public `/llms` Markdown files during `build:prebuild`. The public `/llms` files remain the canonical web compatibility surface.
312
112
 
313
113
  ## Links
314
114