@mcp-b/extension-tools 0.2.4-beta.1 → 0.2.4-beta.3
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 +93 -6
- package/package.json +27 -9
package/README.md
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
# @mcp-b/extension-tools
|
|
2
2
|
|
|
3
|
-
Chrome Extension API tools for Model Context Protocol
|
|
3
|
+
> 62+ Chrome Extension API tools for Model Context Protocol - Let Claude, ChatGPT, and Gemini control your browser
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@mcp-b/extension-tools)
|
|
6
|
+
[](https://www.npmjs.com/package/@mcp-b/extension-tools)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://www.typescriptlang.org/)
|
|
9
|
+
[](https://developer.chrome.com/docs/extensions/reference/)
|
|
10
|
+
|
|
11
|
+
📖 **[Full Documentation](https://docs.mcp-b.ai/packages/extension-tools)** | 🚀 **[Quick Start](https://docs.mcp-b.ai/quickstart)**
|
|
12
|
+
|
|
13
|
+
**@mcp-b/extension-tools** exposes Chrome Extension APIs as MCP tools, enabling AI agents like Claude, ChatGPT, Gemini, Cursor, and Copilot to control browser tabs, manage bookmarks, access history, execute scripts, and more.
|
|
14
|
+
|
|
15
|
+
## Why Use @mcp-b/extension-tools?
|
|
16
|
+
|
|
17
|
+
| Feature | Benefit |
|
|
18
|
+
|---------|---------|
|
|
19
|
+
| **62+ Chrome APIs** | Comprehensive coverage of Chrome Extension APIs |
|
|
20
|
+
| **AI-Ready** | Built for MCP, the standard for AI tool integration |
|
|
21
|
+
| **Granular Control** | Enable only the APIs your extension needs |
|
|
22
|
+
| **Permission Aware** | Automatic permission checking and clear error messages |
|
|
23
|
+
| **Manifest V3** | Full support for Chrome's latest extension platform |
|
|
24
|
+
| **TypeScript** | Complete type definitions for all 62+ APIs |
|
|
25
|
+
|
|
26
|
+
## Use Cases
|
|
27
|
+
|
|
28
|
+
- **AI Browser Assistants**: Let AI agents manage tabs, bookmarks, and browsing history
|
|
29
|
+
- **Automated Testing**: AI-driven browser automation and testing
|
|
30
|
+
- **Research Tools**: AI can search history, manage reading lists, and organize bookmarks
|
|
31
|
+
- **Productivity Extensions**: AI helps with tab management, session saving, and workflow automation
|
|
32
|
+
- **Enterprise Tools**: AI-powered browser management and policy enforcement
|
|
4
33
|
|
|
5
34
|
## Overview
|
|
6
35
|
|
|
@@ -513,12 +542,70 @@ This package is written in TypeScript and includes full type definitions for all
|
|
|
513
542
|
|
|
514
543
|
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
515
544
|
|
|
516
|
-
##
|
|
545
|
+
## Frequently Asked Questions
|
|
546
|
+
|
|
547
|
+
### Which AI agents can use these tools?
|
|
548
|
+
|
|
549
|
+
Any MCP-compatible client, including:
|
|
550
|
+
- **Claude Desktop** and Claude.ai
|
|
551
|
+
- **Cursor** IDE
|
|
552
|
+
- **VS Code Copilot**
|
|
553
|
+
- **Gemini** applications
|
|
554
|
+
- **Windsurf**, **Cline**, and other MCP clients
|
|
555
|
+
|
|
556
|
+
### Do I need to enable all 62 APIs?
|
|
557
|
+
|
|
558
|
+
No! Each API tool class accepts configuration options. Enable only what you need:
|
|
559
|
+
|
|
560
|
+
```typescript
|
|
561
|
+
new TabsApiTools(server, {
|
|
562
|
+
listActiveTabs: true, // Only enable tab listing
|
|
563
|
+
createTab: false, // Disable tab creation
|
|
564
|
+
});
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
### Is Manifest V3 supported?
|
|
568
|
+
|
|
569
|
+
Yes! All tools are compatible with Chrome's Manifest V3 extension platform.
|
|
570
|
+
|
|
571
|
+
### How do AI agents connect to my extension?
|
|
572
|
+
|
|
573
|
+
Use `@mcp-b/transports` for in-browser communication, or expose a WebSocket server for desktop AI agents.
|
|
574
|
+
|
|
575
|
+
### What about Firefox and Edge?
|
|
576
|
+
|
|
577
|
+
The APIs target Chrome, but many also work in Firefox (via WebExtensions) and Edge (Chromium-based). Check browser compatibility for specific APIs.
|
|
578
|
+
|
|
579
|
+
## Comparison with Alternatives
|
|
517
580
|
|
|
518
|
-
|
|
581
|
+
| Feature | @mcp-b/extension-tools | Raw Chrome APIs | Puppeteer |
|
|
582
|
+
|---------|------------------------|-----------------|-----------|
|
|
583
|
+
| MCP Protocol Support | Yes | No | No |
|
|
584
|
+
| Type Safety | Full TypeScript | Partial | Full |
|
|
585
|
+
| Permission Handling | Automatic | Manual | N/A |
|
|
586
|
+
| Error Formatting | Structured | Raw | Varies |
|
|
587
|
+
| AI Agent Ready | Yes | Manual | Manual |
|
|
519
588
|
|
|
520
|
-
##
|
|
589
|
+
## Related Packages
|
|
521
590
|
|
|
522
|
-
- [
|
|
591
|
+
- [`@mcp-b/transports`](https://docs.mcp-b.ai/packages/transports) - Browser-specific MCP transports
|
|
592
|
+
- [`@mcp-b/global`](https://docs.mcp-b.ai/packages/global) - W3C Web Model Context API polyfill
|
|
593
|
+
- [`@mcp-b/chrome-devtools-mcp`](https://docs.mcp-b.ai/packages/chrome-devtools-mcp) - Connect desktop AI agents to browser
|
|
594
|
+
- [`@modelcontextprotocol/sdk`](https://www.npmjs.com/package/@modelcontextprotocol/sdk) - Official MCP SDK
|
|
595
|
+
|
|
596
|
+
## Resources
|
|
597
|
+
|
|
598
|
+
- [WebMCP Documentation](https://docs.mcp-b.ai)
|
|
599
|
+
- [Model Context Protocol Spec](https://modelcontextprotocol.io)
|
|
523
600
|
- [Chrome Extension APIs](https://developer.chrome.com/docs/extensions/reference/)
|
|
524
|
-
- [MCP
|
|
601
|
+
- [MCP GitHub Repository](https://github.com/modelcontextprotocol)
|
|
602
|
+
|
|
603
|
+
## License
|
|
604
|
+
|
|
605
|
+
MIT - see [LICENSE](../../LICENSE) for details
|
|
606
|
+
|
|
607
|
+
## Support
|
|
608
|
+
|
|
609
|
+
- [GitHub Issues](https://github.com/WebMCP-org/npm-packages/issues)
|
|
610
|
+
- [Documentation](https://docs.mcp-b.ai)
|
|
611
|
+
- [Discord Community](https://discord.gg/a9fBR6Bw)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/extension-tools",
|
|
3
|
-
"version": "0.2.4-beta.
|
|
4
|
-
"description": "Chrome Extension API tools for Model Context Protocol (MCP) -
|
|
3
|
+
"version": "0.2.4-beta.3",
|
|
4
|
+
"description": "62+ Chrome Extension API tools for Model Context Protocol (MCP) - Let AI agents control tabs, bookmarks, history, storage, and more",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
7
7
|
"model-context-protocol",
|
|
@@ -12,16 +12,34 @@
|
|
|
12
12
|
"tabs-api",
|
|
13
13
|
"bookmarks-api",
|
|
14
14
|
"storage-api",
|
|
15
|
-
"browser-automation"
|
|
15
|
+
"browser-automation",
|
|
16
|
+
"ai-agents",
|
|
17
|
+
"llm",
|
|
18
|
+
"claude",
|
|
19
|
+
"chatgpt",
|
|
20
|
+
"openai",
|
|
21
|
+
"anthropic",
|
|
22
|
+
"cursor",
|
|
23
|
+
"copilot",
|
|
24
|
+
"gemini",
|
|
25
|
+
"webmcp",
|
|
26
|
+
"chrome-tabs",
|
|
27
|
+
"chrome-history",
|
|
28
|
+
"chrome-cookies",
|
|
29
|
+
"chrome-scripting",
|
|
30
|
+
"ai-browser-control",
|
|
31
|
+
"manifest-v3",
|
|
32
|
+
"browser-control",
|
|
33
|
+
"automation"
|
|
16
34
|
],
|
|
17
|
-
"homepage": "https://
|
|
35
|
+
"homepage": "https://docs.mcp-b.ai/packages/extension-tools",
|
|
18
36
|
"bugs": {
|
|
19
|
-
"url": "https://github.com/
|
|
37
|
+
"url": "https://github.com/WebMCP-org/npm-packages/issues"
|
|
20
38
|
},
|
|
21
39
|
"repository": {
|
|
22
40
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
24
|
-
"directory": "
|
|
41
|
+
"url": "git+https://github.com/WebMCP-org/npm-packages.git",
|
|
42
|
+
"directory": "extension-tools"
|
|
25
43
|
},
|
|
26
44
|
"license": "MIT",
|
|
27
45
|
"author": "Alex Nahas",
|
|
@@ -40,10 +58,10 @@
|
|
|
40
58
|
"README.md"
|
|
41
59
|
],
|
|
42
60
|
"dependencies": {
|
|
43
|
-
"@modelcontextprotocol/sdk": "1.
|
|
61
|
+
"@modelcontextprotocol/sdk": "1.24.3",
|
|
44
62
|
"zod": "3.25.76",
|
|
45
63
|
"zod-to-json-schema": "^3.24.5",
|
|
46
|
-
"@mcp-b/smart-dom-reader": "1.0.3-beta.
|
|
64
|
+
"@mcp-b/smart-dom-reader": "1.0.3-beta.3"
|
|
47
65
|
},
|
|
48
66
|
"devDependencies": {
|
|
49
67
|
"@anthropic-ai/sdk": "^0.60.0",
|