@xiaou66/vite-plugin-vue-mcp-next 1.2.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 +41 -0
- package/dist/index.cjs +440 -122
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -926
- package/dist/index.d.ts +5 -926
- package/dist/index.js +412 -94
- package/dist/index.js.map +1 -1
- package/dist/runtime/client.cjs +655 -176
- package/dist/runtime/client.cjs.map +1 -1
- package/dist/runtime/client.d.cts +5 -1
- package/dist/runtime/client.d.ts +5 -1
- package/dist/runtime/client.js +655 -176
- package/dist/runtime/client.js.map +1 -1
- package/dist/types-BKXdHkwk.d.cts +1019 -0
- package/dist/types-BKXdHkwk.d.ts +1019 -0
- package/package.json +3 -1
- package/skills/vite-mcp-next/SKILL.md +9 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiaou66/vite-plugin-vue-mcp-next",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Runtime DevTools MCP plugin for Vite and Vue development.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -80,11 +80,13 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
83
|
+
"@vue/compiler-sfc": "^3.5.34",
|
|
83
84
|
"@vue/devtools-core": "^8.1.2",
|
|
84
85
|
"@vue/devtools-kit": "^8.1.2",
|
|
85
86
|
"chrome-remote-interface": "^0.34.0",
|
|
86
87
|
"debug": "^4.4.0",
|
|
87
88
|
"hookable": "^6.1.1",
|
|
89
|
+
"magic-string": "^0.30.21",
|
|
88
90
|
"nanoid": "^5.1.11",
|
|
89
91
|
"vite-dev-rpc": "^2.0.0",
|
|
90
92
|
"vite-hot-client": "^2.2.0",
|
|
@@ -24,6 +24,7 @@ Do not use it for static code-only questions where reading files is enough.
|
|
|
24
24
|
| Need | Tool |
|
|
25
25
|
| --- | --- |
|
|
26
26
|
| Find available pages and targets | `list_pages` |
|
|
27
|
+
| Inspect a copied element ID | `get_element_context` |
|
|
27
28
|
| Refresh the current page | `reload_page` |
|
|
28
29
|
| Inspect DOM structure | `get_dom_tree` |
|
|
29
30
|
| Find elements by selector | `query_dom` |
|
|
@@ -46,12 +47,13 @@ Do not use it for static code-only questions where reading files is enough.
|
|
|
46
47
|
## Tool Order
|
|
47
48
|
|
|
48
49
|
1. Call `list_pages` first. Confirm the page, runtime connection, and any `cdp:*` target.
|
|
49
|
-
2.
|
|
50
|
-
3. For
|
|
51
|
-
4. For
|
|
52
|
-
5. For
|
|
53
|
-
6. For
|
|
54
|
-
7. For
|
|
50
|
+
2. If the user provides an `elementId` such as `src/App.vue:12:8`, call `get_element_context` before editing source.
|
|
51
|
+
3. For layout or content questions, call `get_dom_tree` or `query_dom`.
|
|
52
|
+
4. For visual verification, call `take_screenshot` and report whether `source` is `cdp` or `snapdom`.
|
|
53
|
+
5. For browser errors, call `get_console_logs`.
|
|
54
|
+
6. For API behavior, call `get_network_requests`, then `get_network_request_detail` for the relevant id.
|
|
55
|
+
7. For storage questions, call `list_storage` first, then `get_storage_item`, `set_storage_item`, `delete_storage_item`, or `clear_storage` for the selected scope.
|
|
56
|
+
8. For Vue-specific behavior, call `get_component_tree`, `get_component_state`, `get_router_info`, `get_pinia_tree`, or `get_pinia_state`.
|
|
55
57
|
|
|
56
58
|
## Channel Boundaries
|
|
57
59
|
|
|
@@ -65,6 +67,7 @@ Do not use it for static code-only questions where reading files is enough.
|
|
|
65
67
|
- `evaluate_script` is disabled unless the project sets `runtime.evaluate.enabled: true`.
|
|
66
68
|
- Prefer `evaluate_script` for read-only diagnosis. Do not mutate page state unless the user asked for it.
|
|
67
69
|
- `edit_component_state` mutates runtime Vue state. Use it only when state editing is the explicit goal.
|
|
70
|
+
- `get_element_context` returns `editable: false` for third-party packages. Do not edit `node_modules`; modify project usage code instead.
|
|
68
71
|
- Storage mutation tools change browser state. Use them only when the user explicitly asks to write, delete, or clear storage.
|
|
69
72
|
- Network data can include token, cookie, or authorization values. Do not write sensitive values into source code, docs, commits, or final replies.
|
|
70
73
|
|