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 CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * botbrowser-mcp CLI
4
- * 转发所有参数到 @playwright/mcp
5
4
  */
6
- declare const spawn: any;
7
- declare const child: any;
5
+ export {};
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
- const { spawn } = require('child_process');
7
- // 使用 mcp-server-playwright 命令(@playwright/mcp 的 bin)
8
- const child = spawn('npx', ['mcp-server-playwright', ...process.argv.slice(2)], {
9
- stdio: 'inherit'
10
- });
11
- child.on('exit', (code) => {
12
- process.exit(code || 0);
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":";AACA;;;GAGG;AAEH,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAE3C,qDAAqD;AACrD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,uBAAuB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;IAC9E,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC;AAEH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botbrowser-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Enhanced browser automation MCP server based on Playwright",
5
5
  "author": "tonwe",
6
6
  "license": "Apache-2.0",
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