aipex-mcp-bridge 2.0.1 → 2.0.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 +26 -71
- package/dist/bridge.js +883 -474
- package/package.json +8 -7
- package/dist/chunk-3WJ3TSAN.js +0 -285
- package/dist/chunk-VEZPCHYP.js +0 -33
- package/dist/chunk-YZDMY4WS.js +0 -33
- package/dist/cli-M2UUOVPA.js +0 -407
- package/dist/cli.js +0 -135
- package/dist/native-messaging.js +0 -60
- package/dist/register.js +0 -13
- package/dist/types.js +0 -16
package/README.md
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
# aipex-mcp-bridge
|
|
2
2
|
|
|
3
|
-
MCP bridge that connects AI agents to the [AIPex](https://aipex.ai) browser extension via
|
|
3
|
+
MCP bridge that connects AI agents to the [AIPex](https://aipex.ai) browser extension via WebSocket.
|
|
4
4
|
|
|
5
|
-
Works with **any** MCP client that supports stdio transport
|
|
5
|
+
Works with **any** MCP client that supports stdio transport — Cursor, Claude Desktop, Claude Code, VS Code Copilot, Windsurf, Zed, and more.
|
|
6
6
|
|
|
7
7
|
## How it works
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
AI Agent (MCP client) ──stdio──▶ aipex-mcp-bridge ──
|
|
10
|
+
AI Agent (MCP client) ──stdio──▶ aipex-mcp-bridge ──WebSocket──▶ AIPex Chrome Extension
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
The bridge
|
|
13
|
+
The bridge starts a WebSocket server on `localhost:9223` (configurable) and communicates with your AI agent over stdio using the MCP protocol. The AIPex extension connects to the WebSocket server to expose browser control tools.
|
|
14
14
|
|
|
15
15
|
## Quick start
|
|
16
16
|
|
|
17
|
-
### 1.
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install -g aipex-mcp-bridge
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
The native messaging host is registered automatically during installation. If needed, you can register manually:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
aipex-mcp-bridge register
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### 2. Configure your AI agent
|
|
17
|
+
### 1. Configure your AI agent
|
|
30
18
|
|
|
31
19
|
Add the following to your agent's MCP configuration:
|
|
32
20
|
|
|
@@ -88,76 +76,43 @@ claude mcp add aipex-browser -- npx -y aipex-mcp-bridge
|
|
|
88
76
|
}
|
|
89
77
|
```
|
|
90
78
|
|
|
91
|
-
###
|
|
79
|
+
### 2. Connect AIPex extension
|
|
92
80
|
|
|
93
|
-
|
|
81
|
+
1. Open Chrome → AIPex extension → Options page
|
|
82
|
+
2. Set WebSocket URL to `ws://localhost:9223`
|
|
83
|
+
3. Click **Connect**
|
|
94
84
|
|
|
95
85
|
Your AI agent can now control the browser through AIPex.
|
|
96
86
|
|
|
97
|
-
##
|
|
87
|
+
## Options
|
|
98
88
|
|
|
99
|
-
### Register native messaging host
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
aipex-mcp-bridge register [options]
|
|
103
89
|
```
|
|
104
|
-
|
|
105
|
-
| Option | Description |
|
|
106
|
-
| --- | --- |
|
|
107
|
-
| `--browser <name>` | Browser: `chrome`, `chromium`, `all`, `detect` (default: `detect`) |
|
|
108
|
-
| `--system` | Register system-wide (requires admin) |
|
|
109
|
-
| `--extension-id <id>` | Chrome extension ID (repeatable) |
|
|
110
|
-
|
|
111
|
-
### Run diagnostics
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
aipex-mcp-bridge doctor [--fix]
|
|
90
|
+
npx aipex-mcp-bridge [--port <port>]
|
|
115
91
|
```
|
|
116
92
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
### Remove registration
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
aipex-mcp-bridge unregister
|
|
127
|
-
```
|
|
93
|
+
| Option | Default | Description |
|
|
94
|
+
| ----------------- | ------- | ---------------------------------- |
|
|
95
|
+
| `--port <port>` | `9223` | WebSocket port for AIPex extension |
|
|
96
|
+
| `--help`, `-h` | | Show help message |
|
|
97
|
+
| `--version`, `-v` | | Show version |
|
|
128
98
|
|
|
129
|
-
|
|
99
|
+
### Custom port example
|
|
130
100
|
|
|
101
|
+
```json
|
|
102
|
+
{
|
|
103
|
+
"mcpServers": {
|
|
104
|
+
"aipex-browser": {
|
|
105
|
+
"command": "npx",
|
|
106
|
+
"args": ["-y", "aipex-mcp-bridge", "--port", "8080"]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
131
110
|
```
|
|
132
|
-
aipex-mcp-bridge [--port <port>] [--stdio-only]
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
| Option | Default | Description |
|
|
136
|
-
| --- | --- | --- |
|
|
137
|
-
| `--port <port>` | `12306` | HTTP port for Streamable HTTP transport |
|
|
138
|
-
| `--stdio-only` | | Only serve via stdio, skip HTTP server |
|
|
139
|
-
| `--help`, `-h` | | Show help message |
|
|
140
|
-
| `--version`, `-v` | | Show version |
|
|
141
111
|
|
|
142
112
|
## Requirements
|
|
143
113
|
|
|
144
114
|
- Node.js >= 18
|
|
145
115
|
- AIPex Chrome extension installed
|
|
146
|
-
- Chrome or Chromium browser
|
|
147
|
-
|
|
148
|
-
## Troubleshooting
|
|
149
|
-
|
|
150
|
-
**"Specified native messaging host not found"**
|
|
151
|
-
|
|
152
|
-
Run `aipex-mcp-bridge register` to register the native messaging host, then reload the Chrome extension.
|
|
153
|
-
|
|
154
|
-
**"Permission denied" (macOS/Linux)**
|
|
155
|
-
|
|
156
|
-
Run `aipex-mcp-bridge fix-permissions` to fix file permissions.
|
|
157
|
-
|
|
158
|
-
**General diagnostics**
|
|
159
|
-
|
|
160
|
-
Run `aipex-mcp-bridge doctor --fix` for automated diagnosis and repair.
|
|
161
116
|
|
|
162
117
|
## License
|
|
163
118
|
|