@mcpc-tech/unplugin-dev-inspector-mcp 0.0.7 → 0.0.8
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 +16 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,23 +71,25 @@ pnpm add -D @mcpc-tech/unplugin-dev-inspector-mcp
|
|
|
71
71
|
yarn add -D @mcpc-tech/unplugin-dev-inspector-mcp
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
// vite.config.ts
|
|
76
|
-
import DevInspector from '@mcpc-tech/unplugin-dev-inspector-mcp';
|
|
77
|
-
import react from '@vitejs/plugin-react'; // or vue()
|
|
74
|
+
Add DevInspector to your Vite config:
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
```diff
|
|
77
|
+
// vite.config.ts
|
|
78
|
+
+import DevInspector from '@mcpc-tech/unplugin-dev-inspector-mcp';
|
|
79
|
+
import react from '@vitejs/plugin-react'; // or vue()
|
|
80
|
+
|
|
81
|
+
export default {
|
|
82
|
+
plugins: [
|
|
83
|
+
+ DevInspector.vite({
|
|
84
|
+
+ enabled: true,
|
|
85
|
+
+ enableMcp: true,
|
|
86
|
+
+ }),
|
|
87
|
+
react(), // or vue()
|
|
88
|
+
],
|
|
89
|
+
};
|
|
88
90
|
```
|
|
89
91
|
|
|
90
|
-
>
|
|
92
|
+
> ⚠️ **Plugin order matters:** Place `DevInspector.vite()` **before** `react()`, `vue()`, or `preact()`. Otherwise source locations may show `unknown:0:0`.
|
|
91
93
|
|
|
92
94
|
Currently supports **Vite**. Webpack, Rollup, esbuild, and Rspack support coming soon.
|
|
93
95
|
|
package/package.json
CHANGED