@mcpc-tech/unplugin-dev-inspector-mcp 0.0.37 → 0.0.39
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 +117 -9
- package/client/dist/inspector.iife.js +366 -420
- package/dist/config-updater.cjs +173 -30
- package/dist/config-updater.js +169 -26
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +36 -4
- package/dist/index.d.ts +32 -0
- package/dist/index.js +3 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ Works with any MCP-compatible AI client. Supports ACP agents: **Claude Code**, *
|
|
|
20
20
|
- [Quick Start](#-quick-start)
|
|
21
21
|
- [Framework Support](#framework-support)
|
|
22
22
|
- [Configuration](#-configuration)
|
|
23
|
+
- [Agent Installation](#agent-installation)
|
|
23
24
|
- [How It Works](#-what-it-does)
|
|
24
25
|
- [Workflow Modes](#-two-workflow-modes)
|
|
25
26
|
- [MCP Tools](#-mcp-tools)
|
|
@@ -54,17 +55,22 @@ Switch between agents (Claude Code, Goose) and track their debugging progress vi
|
|
|
54
55
|
### Installation
|
|
55
56
|
|
|
56
57
|
```bash
|
|
57
|
-
# npm
|
|
58
|
+
# npm - basic installation
|
|
58
59
|
npm i -D @mcpc-tech/unplugin-dev-inspector-mcp
|
|
59
60
|
|
|
60
|
-
# pnpm
|
|
61
|
+
# pnpm - basic installation
|
|
61
62
|
pnpm add -D @mcpc-tech/unplugin-dev-inspector-mcp
|
|
62
63
|
|
|
63
|
-
# yarn
|
|
64
|
+
# yarn - basic installation
|
|
64
65
|
yarn add -D @mcpc-tech/unplugin-dev-inspector-mcp
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
> **Note:** If you don't need the ACP agents (Inspector Bar mode), add `--no-optional` to skip installing agent packages:
|
|
69
|
+
> ```bash
|
|
70
|
+
> npm i -D @mcpc-tech/unplugin-dev-inspector-mcp --no-optional
|
|
71
|
+
> pnpm add -D @mcpc-tech/unplugin-dev-inspector-mcp --no-optional
|
|
72
|
+
> yarn add -D @mcpc-tech/unplugin-dev-inspector-mcp --no-optional
|
|
73
|
+
> ```
|
|
68
74
|
|
|
69
75
|
### ⚡ Automated Setup (Recommended)
|
|
70
76
|
|
|
@@ -289,6 +295,90 @@ DevInspector.vite({
|
|
|
289
295
|
})
|
|
290
296
|
```
|
|
291
297
|
|
|
298
|
+
### Agent Installation
|
|
299
|
+
|
|
300
|
+
DevInspector supports multiple AI agents via [ACP](https://agentclientprotocol.com).
|
|
301
|
+
|
|
302
|
+
**For npm-based agents** (Claude Code, Codex CLI, Cursor Agent, Droid), you can pre-install them as dev dependencies for faster loading.
|
|
303
|
+
|
|
304
|
+
**For system-level agents**, install globally:
|
|
305
|
+
|
|
306
|
+
#### Gemini CLI
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
npm install -g @google/gemini-cli
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
[Documentation →](https://github.com/google-gemini/gemini-cli)
|
|
313
|
+
|
|
314
|
+
#### Kimi CLI
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
uv tool install --python 3.13 kimi-cli
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
[Documentation →](https://github.com/MoonshotAI/kimi-cli)
|
|
321
|
+
|
|
322
|
+
#### Goose
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
pipx install goose-ai
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
[Documentation →](https://block.github.io/goose/docs/guides/acp-clients)
|
|
329
|
+
|
|
330
|
+
#### Opencode
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
curl -fsSL https://opencode.ai/install | bash
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
[Documentation →](https://github.com/sst/opencode)
|
|
337
|
+
|
|
338
|
+
#### CodeBuddy Code
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
npm install -g @tencent-ai/codebuddy-code
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
[Documentation →](https://copilot.tencent.com/docs/cli/acp)
|
|
345
|
+
|
|
346
|
+
> **Note:** If you don't pre-install npm-based agents, they will be launched via `npx` on first use (slower startup).
|
|
347
|
+
|
|
348
|
+
#### Pre-installing npm-based Agents (Recommended)
|
|
349
|
+
|
|
350
|
+
The recommended way is to install agents during initial setup (see [Installation](#installation) above).
|
|
351
|
+
|
|
352
|
+
Alternatively, install them later as dev dependencies:
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
# npm
|
|
356
|
+
npm i -D @zed-industries/claude-code-acp
|
|
357
|
+
|
|
358
|
+
# pnpm
|
|
359
|
+
pnpm add -D @zed-industries/claude-code-acp
|
|
360
|
+
|
|
361
|
+
# Or add directly to package.json
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
```json
|
|
365
|
+
{
|
|
366
|
+
"devDependencies": {
|
|
367
|
+
"@zed-industries/claude-code-acp": "^0.12.4",
|
|
368
|
+
"@zed-industries/codex-acp": "^0.7.1",
|
|
369
|
+
"@blowmage/cursor-agent-acp": "^0.1.0",
|
|
370
|
+
"@yaonyan/droid-acp": "^0.0.8"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
> **About optionalDependencies:** Agent packages are installed by default. If you don't need them, use `--no-optional` when installing.
|
|
376
|
+
|
|
377
|
+
**Why install as `devDependencies`?**
|
|
378
|
+
- Ensures faster startup (uses local package via `require.resolve` instead of `npx`)
|
|
379
|
+
- Won't affect production bundle (tree-shaken out unless imported)
|
|
380
|
+
- Standard practice for development tools
|
|
381
|
+
|
|
292
382
|
### Custom Agents
|
|
293
383
|
|
|
294
384
|
This plugin uses the [Agent Client Protocol (ACP)](https://agentclientprotocol.com) to connect with AI agents.
|
|
@@ -297,7 +387,7 @@ This plugin uses the [Agent Client Protocol (ACP)](https://agentclientprotocol.c
|
|
|
297
387
|
|
|
298
388
|
Default agents: [View configuration →](https://github.com/mcpc-tech/dev-inspector-mcp/blob/main/packages/unplugin-dev-inspector/client/constants/agents.ts)
|
|
299
389
|
|
|
300
|
-
You can customize available AI agents and set a default agent:
|
|
390
|
+
You can customize available AI agents, filter visible agents, and set a default agent:
|
|
301
391
|
|
|
302
392
|
```typescript
|
|
303
393
|
// vite.config.ts
|
|
@@ -305,7 +395,11 @@ export default {
|
|
|
305
395
|
plugins: [
|
|
306
396
|
DevInspector.vite({
|
|
307
397
|
enabled: true,
|
|
308
|
-
|
|
398
|
+
|
|
399
|
+
// Option 1: Only show specific agents (filters merged agents)
|
|
400
|
+
visibleAgents: ['Claude Code', 'Gemini CLI', 'Goose'],
|
|
401
|
+
|
|
402
|
+
// Option 2: Add custom agents (merges with defaults)
|
|
309
403
|
agents: [
|
|
310
404
|
{
|
|
311
405
|
name: "Claude Code", // Matches default - auto-fills icon and env
|
|
@@ -320,6 +414,19 @@ export default {
|
|
|
320
414
|
meta: { icon: "https://example.com/icon.svg" }
|
|
321
415
|
}
|
|
322
416
|
],
|
|
417
|
+
|
|
418
|
+
// Option 3: Combine both - add custom agents and filter visibility
|
|
419
|
+
agents: [
|
|
420
|
+
{
|
|
421
|
+
name: "My Custom Agent",
|
|
422
|
+
command: "my-agent-cli",
|
|
423
|
+
args: ["--mode", "acp"],
|
|
424
|
+
env: [{ key: "MY_API_KEY", required: true }],
|
|
425
|
+
meta: { icon: "https://example.com/icon.svg" }
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
visibleAgents: ['Claude Code', 'My Custom Agent'], // Only show these
|
|
429
|
+
|
|
323
430
|
// Set default agent to show on startup
|
|
324
431
|
defaultAgent: "Claude Code"
|
|
325
432
|
}),
|
|
@@ -329,9 +436,10 @@ export default {
|
|
|
329
436
|
|
|
330
437
|
**Key Features:**
|
|
331
438
|
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
-
|
|
439
|
+
- **`agents`**: Merges your custom agents with defaults. Agents with the **same name** as [default agents](https://agentclientprotocol.com/overview/agents) automatically inherit missing properties (icons, env)
|
|
440
|
+
- **`visibleAgents`**: Filters which agents appear in the UI (applies after merging). Great for limiting options to only what your team uses
|
|
441
|
+
- **`defaultAgent`**: Sets which agent is selected on startup
|
|
442
|
+
- If no custom agents provided, defaults are: Claude Code, Codex CLI, Gemini CLI, Kimi CLI, Goose, Opencode, Cursor Agent, Droid, CodeBuddy Code
|
|
335
443
|
|
|
336
444
|
## What It Does
|
|
337
445
|
|