botbrowser-mcp 0.1.2 → 0.1.4
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/dist/cli.d.ts +1 -3
- package/dist/cli.js +10 -9
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +22 -3
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
2
3
|
/**
|
|
3
4
|
* botbrowser-mcp CLI
|
|
4
|
-
* 转发所有参数到 @playwright/mcp
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
8
|
+
const index_1 = require("./index");
|
|
9
|
+
(async () => {
|
|
10
|
+
// 直接使用 @playwright/mcp 的 createConnection
|
|
11
|
+
const server = await (0, index_1.createConnection)();
|
|
12
|
+
const transport = new stdio_js_1.StdioServerTransport();
|
|
13
|
+
await server.connect(transport);
|
|
14
|
+
})();
|
|
14
15
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AACA;;GAEG;;AAEH,wEAAiF;AACjF,mCAA2C;AAE3C,CAAC,KAAK,IAAI,EAAE;IACV,0CAA0C;IAC1C,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAgB,GAAE,CAAC;IACxC,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC,CAAC,EAAE,CAAC"}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -5,24 +5,43 @@ A wrapper around [@playwright/mcp](https://www.npmjs.com/package/@playwright/mcp
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install botbrowser-mcp
|
|
8
|
+
npm install -g botbrowser-mcp
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Add to your MCP client configuration:
|
|
13
|
+
Add to your MCP client configuration (e.g., Claude Desktop config):
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"botbrowser": {
|
|
19
|
+
"command": "botbrowser-mcp"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or use with npx (no installation needed):
|
|
14
26
|
|
|
15
27
|
```json
|
|
16
28
|
{
|
|
17
29
|
"mcpServers": {
|
|
18
30
|
"botbrowser": {
|
|
19
31
|
"command": "npx",
|
|
20
|
-
"args": ["botbrowser-mcp"]
|
|
32
|
+
"args": ["-y", "botbrowser-mcp"]
|
|
21
33
|
}
|
|
22
34
|
}
|
|
23
35
|
}
|
|
24
36
|
```
|
|
25
37
|
|
|
38
|
+
## Troubleshooting
|
|
39
|
+
|
|
40
|
+
If you get "Connection closed" error:
|
|
41
|
+
1. Make sure you're using the latest version: `npm install -g botbrowser-mcp@latest`
|
|
42
|
+
2. Try with full path: `"command": "/usr/local/bin/botbrowser-mcp"`
|
|
43
|
+
3. Check Node.js is installed: `node --version`
|
|
44
|
+
|
|
26
45
|
## License
|
|
27
46
|
|
|
28
47
|
Apache-2.0
|