@mcpc-tech/unplugin-dev-inspector-mcp 0.1.19 → 0.1.21
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 +27 -0
- package/client/dist/inspector.css +71 -0
- package/client/dist/inspector.js +108 -37
- package/dist/config-updater.cjs +78 -46
- package/dist/config-updater.js +78 -46
- package/dist/index.cjs +11 -9
- package/dist/index.d.cts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +11 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ Works with any MCP-compatible AI client. Supports ACP agents: **Claude Code**, *
|
|
|
23
23
|
- [Auto-Update MCP Config](#auto-update-mcp-config)
|
|
24
24
|
- [Agent Installation](#agent-installation)
|
|
25
25
|
- [Custom Agents](#custom-agents)
|
|
26
|
+
- [MCP Servers Configuration](#mcp-servers-configuration)
|
|
26
27
|
- [What It Does](#what-it-does)
|
|
27
28
|
- [Two Workflow Modes](#two-workflow-modes)
|
|
28
29
|
- [MCP Tools](#mcp-tools)
|
|
@@ -489,6 +490,32 @@ export default {
|
|
|
489
490
|
- **`defaultAgent`**: Sets which agent is selected on startup
|
|
490
491
|
- If no custom agents provided, defaults are: Claude Code, Codex CLI, Gemini CLI, Kimi CLI, Goose, Opencode, Cursor Agent, Droid, CodeBuddy Code
|
|
491
492
|
|
|
493
|
+
### MCP Servers Configuration
|
|
494
|
+
|
|
495
|
+
You can configure external MCP servers for agents to access additional tools.
|
|
496
|
+
|
|
497
|
+
```typescript
|
|
498
|
+
DevInspector.vite({
|
|
499
|
+
mcpServers: [
|
|
500
|
+
// HTTP/SSE Server
|
|
501
|
+
{
|
|
502
|
+
name: 'remote-server',
|
|
503
|
+
type: 'sse', // or 'http'
|
|
504
|
+
url: 'https://api.example.com/sse',
|
|
505
|
+
headers: [{ name: 'Authorization', value: process.env.MCP_TOKEN ?? '' }]
|
|
506
|
+
},
|
|
507
|
+
// Local Stdio Server
|
|
508
|
+
{
|
|
509
|
+
name: 'local-server',
|
|
510
|
+
command: 'npx',
|
|
511
|
+
args: ['-y', '@modelcontextprotocol/server-memory'],
|
|
512
|
+
env: { MY_VAR: 'value' }
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
})
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
|
|
492
519
|
## What It Does
|
|
493
520
|
|
|
494
521
|
**Click element → Describe issue → AI analyzes → Get fix**
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
--animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
|
|
151
151
|
--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
|
|
152
152
|
--blur-sm: 8px;
|
|
153
|
+
--blur-md: 12px;
|
|
153
154
|
--blur-xl: 24px;
|
|
154
155
|
--default-transition-duration: .15s;
|
|
155
156
|
--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
@@ -527,6 +528,10 @@
|
|
|
527
528
|
position: relative;
|
|
528
529
|
}
|
|
529
530
|
|
|
531
|
+
.static {
|
|
532
|
+
position: static;
|
|
533
|
+
}
|
|
534
|
+
|
|
530
535
|
.sticky {
|
|
531
536
|
position: sticky;
|
|
532
537
|
}
|
|
@@ -1272,6 +1277,10 @@
|
|
|
1272
1277
|
transform-origin: var(--radix-tooltip-content-transform-origin);
|
|
1273
1278
|
}
|
|
1274
1279
|
|
|
1280
|
+
.origin-bottom-left {
|
|
1281
|
+
transform-origin: 0 100%;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1275
1284
|
.-translate-x-1\/2 {
|
|
1276
1285
|
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
|
|
1277
1286
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2437,6 +2446,10 @@
|
|
|
2437
2446
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
2438
2447
|
}
|
|
2439
2448
|
|
|
2449
|
+
.text-\[0\.8rem\] {
|
|
2450
|
+
font-size: .8rem;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2440
2453
|
.text-\[8px\] {
|
|
2441
2454
|
font-size: 8px;
|
|
2442
2455
|
}
|
|
@@ -2828,6 +2841,12 @@
|
|
|
2828
2841
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
2829
2842
|
}
|
|
2830
2843
|
|
|
2844
|
+
.backdrop-blur-md {
|
|
2845
|
+
--tw-backdrop-blur: blur(var(--blur-md));
|
|
2846
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
2847
|
+
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2831
2850
|
.backdrop-blur-sm {
|
|
2832
2851
|
--tw-backdrop-blur: blur(var(--blur-sm));
|
|
2833
2852
|
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
@@ -2960,6 +2979,14 @@
|
|
|
2960
2979
|
color: var(--color-primary-foreground);
|
|
2961
2980
|
}
|
|
2962
2981
|
|
|
2982
|
+
.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled ~ *) {
|
|
2983
|
+
cursor: not-allowed;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
.peer-disabled\:opacity-70:is(:where(.peer):disabled ~ *) {
|
|
2987
|
+
opacity: .7;
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2963
2990
|
.selection\:bg-primary ::selection {
|
|
2964
2991
|
background-color: var(--color-primary);
|
|
2965
2992
|
}
|
|
@@ -3012,6 +3039,13 @@
|
|
|
3012
3039
|
}
|
|
3013
3040
|
|
|
3014
3041
|
@media (hover: hover) {
|
|
3042
|
+
.hover\:scale-105:hover {
|
|
3043
|
+
--tw-scale-x: 105%;
|
|
3044
|
+
--tw-scale-y: 105%;
|
|
3045
|
+
--tw-scale-z: 105%;
|
|
3046
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3015
3049
|
.hover\:scale-110:hover {
|
|
3016
3050
|
--tw-scale-x: 110%;
|
|
3017
3051
|
--tw-scale-y: 110%;
|
|
@@ -3019,6 +3053,16 @@
|
|
|
3019
3053
|
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
3020
3054
|
}
|
|
3021
3055
|
|
|
3056
|
+
.hover\:border-accent-foreground\/20:hover {
|
|
3057
|
+
border-color: color-mix(in srgb, hsl(var(--accent-foreground)) 20%, transparent);
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3061
|
+
.hover\:border-accent-foreground\/20:hover {
|
|
3062
|
+
border-color: color-mix(in oklab, var(--color-accent-foreground) 20%, transparent);
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3022
3066
|
.hover\:border-blue-300:hover {
|
|
3023
3067
|
border-color: var(--color-blue-300);
|
|
3024
3068
|
}
|
|
@@ -3282,6 +3326,13 @@
|
|
|
3282
3326
|
outline-width: 1px;
|
|
3283
3327
|
}
|
|
3284
3328
|
|
|
3329
|
+
.active\:scale-95:active {
|
|
3330
|
+
--tw-scale-x: 95%;
|
|
3331
|
+
--tw-scale-y: 95%;
|
|
3332
|
+
--tw-scale-z: 95%;
|
|
3333
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3285
3336
|
.disabled\:pointer-events-none:disabled {
|
|
3286
3337
|
pointer-events: none;
|
|
3287
3338
|
}
|
|
@@ -3557,6 +3608,10 @@
|
|
|
3557
3608
|
max-width: 425px;
|
|
3558
3609
|
}
|
|
3559
3610
|
|
|
3611
|
+
.sm\:max-w-\[600px\] {
|
|
3612
|
+
max-width: 600px;
|
|
3613
|
+
}
|
|
3614
|
+
|
|
3560
3615
|
.sm\:flex-row {
|
|
3561
3616
|
flex-direction: row;
|
|
3562
3617
|
}
|
|
@@ -4021,6 +4076,22 @@
|
|
|
4021
4076
|
.animate-panel-in {
|
|
4022
4077
|
animation: .15s ease-out forwards panel-in;
|
|
4023
4078
|
}
|
|
4079
|
+
|
|
4080
|
+
@keyframes prompt-fade-in {
|
|
4081
|
+
from {
|
|
4082
|
+
opacity: 0;
|
|
4083
|
+
transform: translateY(8px)scale(.95);
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
to {
|
|
4087
|
+
opacity: 1;
|
|
4088
|
+
transform: translateY(0)scale(1);
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
.animate-prompt-in {
|
|
4093
|
+
animation: .3s ease-out forwards prompt-fade-in;
|
|
4094
|
+
}
|
|
4024
4095
|
}
|
|
4025
4096
|
|
|
4026
4097
|
*, :before, :after, ::backdrop, :host, :root {
|