chrome-devtools-mcp-for-extension 0.26.0 → 0.26.1
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 +86 -3
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -169,9 +169,12 @@ vim src/tools/extensions.ts
|
|
|
169
169
|
chrome-devtools-mcp/
|
|
170
170
|
├── src/
|
|
171
171
|
│ ├── tools/ # MCP tool definitions
|
|
172
|
-
│ │ ├──
|
|
172
|
+
│ │ ├── core-tools.ts # Core tool exports (v0.26.0)
|
|
173
|
+
│ │ ├── optional-tools.ts # Web-LLM tool exports (v0.26.0)
|
|
173
174
|
│ │ ├── chatgpt-web.ts # ChatGPT automation
|
|
175
|
+
│ │ ├── gemini-web.ts # Gemini automation
|
|
174
176
|
│ │ └── ...
|
|
177
|
+
│ ├── plugin-api.ts # Plugin architecture (v0.26.0)
|
|
175
178
|
│ ├── browser.ts # Browser/profile management
|
|
176
179
|
│ ├── main.ts # MCP server entry point
|
|
177
180
|
│ └── graceful.ts # Graceful shutdown
|
|
@@ -264,7 +267,8 @@ git push && git push --tags
|
|
|
264
267
|
- 🔧 **Browser Testing**: Test extensions in real user environments
|
|
265
268
|
- 🐛 **Advanced Debugging**: Service worker inspection, console monitoring
|
|
266
269
|
- 📸 **Screenshot Generation**: Auto-create store listing images
|
|
267
|
-
- 🤖 **ChatGPT Integration**: Automated
|
|
270
|
+
- 🤖 **ChatGPT/Gemini Integration**: Automated AI interactions for research
|
|
271
|
+
- 🔌 **Plugin Architecture** (v0.26.0): Extensible tool system with external plugins
|
|
268
272
|
|
|
269
273
|
---
|
|
270
274
|
|
|
@@ -376,6 +380,85 @@ pkill -f mcp-wrapper
|
|
|
376
380
|
|
|
377
381
|
---
|
|
378
382
|
|
|
383
|
+
## 🔌 Plugin Architecture (v0.26.0)
|
|
384
|
+
|
|
385
|
+
### Tool Categories
|
|
386
|
+
|
|
387
|
+
**Core Tools (18)** - Stable, site-independent:
|
|
388
|
+
- Input: click, hover, fill, drag, fill_form, upload_file
|
|
389
|
+
- Navigation: pages, navigate, resize_page, handle_dialog
|
|
390
|
+
- Debugging: list_console_messages, take_screenshot, evaluate_script, take_snapshot, wait_for
|
|
391
|
+
- Analysis: emulate, network, performance
|
|
392
|
+
|
|
393
|
+
**Optional Tools (2)** - Web-LLM, site-dependent (may break with UI changes):
|
|
394
|
+
- `ask_chatgpt_web` - ChatGPT browser automation
|
|
395
|
+
- `ask_gemini_web` - Gemini browser automation
|
|
396
|
+
|
|
397
|
+
### Disable Web-LLM Tools
|
|
398
|
+
|
|
399
|
+
If you don't need ChatGPT/Gemini integration:
|
|
400
|
+
|
|
401
|
+
```json
|
|
402
|
+
{
|
|
403
|
+
"mcpServers": {
|
|
404
|
+
"chrome-devtools-extension": {
|
|
405
|
+
"command": "npx",
|
|
406
|
+
"args": ["chrome-devtools-mcp-for-extension@latest"],
|
|
407
|
+
"env": {
|
|
408
|
+
"MCP_DISABLE_WEB_LLM": "true"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### External Plugins
|
|
416
|
+
|
|
417
|
+
Load custom plugins at startup:
|
|
418
|
+
|
|
419
|
+
```json
|
|
420
|
+
{
|
|
421
|
+
"mcpServers": {
|
|
422
|
+
"chrome-devtools-extension": {
|
|
423
|
+
"command": "npx",
|
|
424
|
+
"args": ["chrome-devtools-mcp-for-extension@latest"],
|
|
425
|
+
"env": {
|
|
426
|
+
"MCP_PLUGINS": "./my-plugin.js,@org/another-plugin"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
**Plugin Interface:**
|
|
434
|
+
```typescript
|
|
435
|
+
// my-plugin.js
|
|
436
|
+
export default {
|
|
437
|
+
id: 'my-plugin',
|
|
438
|
+
name: 'My Custom Plugin',
|
|
439
|
+
version: '1.0.0',
|
|
440
|
+
|
|
441
|
+
async register(ctx) {
|
|
442
|
+
ctx.registry.register({
|
|
443
|
+
name: 'my_custom_tool',
|
|
444
|
+
description: 'Does something useful',
|
|
445
|
+
schema: { /* zod schema */ },
|
|
446
|
+
annotations: { category: 'automation' },
|
|
447
|
+
async handler(input, response, context) {
|
|
448
|
+
// Tool implementation
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
ctx.log('Plugin registered!');
|
|
452
|
+
},
|
|
453
|
+
|
|
454
|
+
async unload() {
|
|
455
|
+
// Cleanup if needed
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
379
462
|
## 🙏 Credits
|
|
380
463
|
|
|
381
464
|
This project is a fork of [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) by Google LLC.
|
|
@@ -393,5 +476,5 @@ This project is a fork of [Chrome DevTools MCP](https://github.com/ChromeDevTool
|
|
|
393
476
|
|
|
394
477
|
Apache-2.0
|
|
395
478
|
|
|
396
|
-
**Version**: 0.
|
|
479
|
+
**Version**: 0.26.0
|
|
397
480
|
**Repository**: https://github.com/usedhonda/chrome-devtools-mcp
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "MCP server for Chrome extension development with Web Store automation. Fork of chrome-devtools-mcp with extension-specific tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./scripts/cli.mjs",
|
|
7
7
|
"main": "index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./plugin-api": "./build/src/plugin-api.js"
|
|
11
|
+
},
|
|
8
12
|
"scripts": {
|
|
9
13
|
"build": "tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts",
|
|
10
14
|
"dev": "MCP_ENV=development node scripts/mcp-wrapper.mjs",
|