js-bridge-mcp 0.1.0 → 0.1.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 +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,18 @@ to write one for a new page.
|
|
|
30
30
|
|
|
31
31
|
## Run it
|
|
32
32
|
|
|
33
|
+
### Via npx
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx js-bridge-mcp
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Starts the MCP + WS + `main.js` server on port 8766. Point an MCP client at
|
|
40
|
+
`http://localhost:8766/mcp`, then serve `legacy-page/hello-world.html` (or
|
|
41
|
+
your own page) with any static file server.
|
|
42
|
+
|
|
43
|
+
### From this repo
|
|
44
|
+
|
|
33
45
|
```bash
|
|
34
46
|
npm run build # bundle src/client/main.ts -> dist/client/main.js
|
|
35
47
|
npm run start:mcp # MCP + WS + main.js server, port 8766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js-bridge-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Generic bridge: exposes MCP tools discovered from a connected page's own JSON tool manifest, dispatched over a cross-origin WebSocket. Ships a hello-world example page under legacy-page/.",
|
|
6
6
|
"repository": {
|