@cotestdev/mcp_playwright 0.0.8 → 0.0.9

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/lib/index.d.ts CHANGED
@@ -1,13 +1,23 @@
1
1
  /**
2
- * @cotestdev/mcp_playwright - Playwright MCP Tools
2
+ * Copyright (c) Microsoft Corporation.
3
3
  *
4
- * This package exports Playwright browser automation tools for use with
5
- * Model Context Protocol (MCP) servers.
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
6
7
  *
7
- * Reference implementation: https://github.com/microsoft/playwright-mcp
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @cotestdev/mcp_playwright
18
+ * Standalone MCP package for Playwright browser automation
19
+ * The actual CLI entry point is at lib/mcp/cli.js
8
20
  */
9
- export * from 'playwright/lib/mcp/browser/tools';
10
- export { default } from 'playwright/lib/mcp/browser/tools';
11
- export * from 'playwright/lib/mcp/sdk/exports';
12
- export * from 'playwright/lib/mcp/sdk/server';
21
+ declare const _default: {};
22
+ export default _default;
13
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH;;;;GAIG;;AAEH,wBAAkB"}
package/lib/index.js CHANGED
@@ -1,36 +1,24 @@
1
1
  "use strict";
2
2
  /**
3
- * @cotestdev/mcp_playwright - Playwright MCP Tools
3
+ * Copyright (c) Microsoft Corporation.
4
4
  *
5
- * This package exports Playwright browser automation tools for use with
6
- * Model Context Protocol (MCP) servers.
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
7
8
  *
8
- * Reference implementation: https://github.com/microsoft/playwright-mcp
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * @cotestdev/mcp_playwright
19
+ * Standalone MCP package for Playwright browser automation
20
+ * The actual CLI entry point is at lib/mcp/cli.js
9
21
  */
10
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- var desc = Object.getOwnPropertyDescriptor(m, k);
13
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
- desc = { enumerable: true, get: function() { return m[k]; } };
15
- }
16
- Object.defineProperty(o, k2, desc);
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
- };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
22
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.default = void 0;
29
- // Export MCP browser tools
30
- __exportStar(require("playwright/lib/mcp/browser/tools"), exports);
31
- var tools_1 = require("playwright/lib/mcp/browser/tools");
32
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(tools_1).default; } });
33
- // Export MCP SDK components for server setup
34
- __exportStar(require("playwright/lib/mcp/sdk/exports"), exports);
35
- __exportStar(require("playwright/lib/mcp/sdk/server"), exports);
23
+ exports.default = {};
36
24
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;AAEH,2BAA2B;AAC3B,mEAAiD;AACjD,0DAA2D;AAAlD,iHAAA,OAAO,OAAA;AAEhB,6CAA6C;AAC7C,iEAA+C;AAC/C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AACH;;;;GAIG;;AAEH,kBAAe,EAAE,CAAC"}
package/lib/mcp/cli.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ const { program } = require('./program');
19
+ program.parse(process.argv);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@cotestdev/mcp_playwright",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Playwright MCP (Model Context Protocol) tools for browser automation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "bin": {
8
- "mcp-playwright": "lib/mcp/program.js"
8
+ "mcp-playwright": "lib/mcp/cli.js"
9
9
  },
10
10
  "files": [
11
11
  "lib/**/*.js",
package/lib/cli.d.ts DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @cotestdev/mcp_playwright CLI Entry Point
4
- *
5
- * Provides MCP tools for Playwright browser automation
6
- */
7
- declare const mcp: any;
8
- //# sourceMappingURL=cli.d.ts.map
package/lib/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,QAAA,MAAM,GAAG,KAAqB,CAAC"}
package/lib/cli.js DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @cotestdev/mcp_playwright CLI Entry Point
4
- *
5
- * Provides MCP tools for Playwright browser automation
6
- */
7
- const mcp = require('./index');
8
- console.log('Playwright MCP Tools Loaded Successfully');
9
- console.log('Version: 0.0.2');
10
- console.log('Tools available:', Object.keys(mcp).join(', '));
11
- //# sourceMappingURL=cli.js.map
package/lib/cli.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,MAAM,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAE/B,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AACxD,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC9B,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC"}
package/lib/server.d.ts DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @cotestdev/mcp_playwright Server
4
- *
5
- * Standalone MCP server for Playwright browser automation
6
- */
7
- export {};
8
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAEA;;;;GAIG"}
package/lib/server.js DELETED
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- /**
4
- * @cotestdev/mcp_playwright Server
5
- *
6
- * Standalone MCP server for Playwright browser automation
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- // Start the MCP server
10
- async function main() {
11
- try {
12
- console.log('Starting Playwright MCP Server...');
13
- console.log('Version: 0.0.2');
14
- console.log('MCP Tools: execute_playwright_script, dialogs, tabs, and 15+ more');
15
- console.log('');
16
- console.log('For integration with MCP clients, use:');
17
- console.log(' npx @cotestdev/mcp_playwright');
18
- console.log('');
19
- console.log('Server is ready to accept connections.');
20
- }
21
- catch (error) {
22
- console.error('Failed to start MCP server:', error);
23
- process.exit(1);
24
- }
25
- }
26
- main().catch(console.error);
27
- //# sourceMappingURL=server.js.map
package/lib/server.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;;AAIH,uBAAuB;AACvB,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACjD,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,mEAAmE,CAAC,CAAC;QACjF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;QAC/C,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;IACxD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;QACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}