@cotestdev/mcp_playwright 0.0.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 +40 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @cotestdeve/mcp_playwright
|
|
2
|
+
|
|
3
|
+
Playwright MCP (Model Context Protocol) tools for browser automation.
|
|
4
|
+
|
|
5
|
+
This package provides a standalone, published version of Playwright's MCP tools that can be integrated with MCP-compatible applications and AI assistants.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @cotestdeve/mcp_playwright
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **execute_playwright_script**: Execute arbitrary Playwright scripts within the MCP context
|
|
16
|
+
- **Browser Dialogs**: Handle dialog boxes with automatic code recording
|
|
17
|
+
- **Tab Management**: Manage browser tabs and windows with code generation
|
|
18
|
+
- **Network Monitoring**: Capture and analyze network requests
|
|
19
|
+
- **Page Verification**: Verify page states and elements
|
|
20
|
+
- **Form Automation**: Fill and submit forms automatically
|
|
21
|
+
- **And 15+ more tools** for complete browser automation
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import * as mcp_tools from '@cotestdeve/mcp_playwright';
|
|
27
|
+
|
|
28
|
+
// Use Playwright MCP tools in your MCP server
|
|
29
|
+
const tools = mcp_tools.browserTools;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Related
|
|
33
|
+
|
|
34
|
+
- [Official Playwright MCP](https://github.com/microsoft/playwright-mcp)
|
|
35
|
+
- [Playwright Documentation](https://playwright.dev)
|
|
36
|
+
- [Model Context Protocol](https://modelcontextprotocol.io)
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
Apache-2.0
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @cotest/mcp_playwright - Playwright MCP Tools
|
|
3
|
+
*
|
|
4
|
+
* This package exports Playwright browser automation tools for use with
|
|
5
|
+
* Model Context Protocol (MCP) servers.
|
|
6
|
+
*
|
|
7
|
+
* Reference implementation: https://github.com/microsoft/playwright-mcp
|
|
8
|
+
*/
|
|
9
|
+
declare const mcp: any;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,QAAA,MAAM,GAAG,KAA8C,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @cotest/mcp_playwright - Playwright MCP Tools
|
|
3
|
+
*
|
|
4
|
+
* This package exports Playwright browser automation tools for use with
|
|
5
|
+
* Model Context Protocol (MCP) servers.
|
|
6
|
+
*
|
|
7
|
+
* Reference implementation: https://github.com/microsoft/playwright-mcp
|
|
8
|
+
*/
|
|
9
|
+
// Re-export all MCP tools from the compiled Playwright package
|
|
10
|
+
const mcp = require('playwright/lib/mcp/browser/tools');
|
|
11
|
+
module.exports = mcp;
|
|
12
|
+
module.exports.default = mcp;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,+DAA+D;AAC/D,MAAM,GAAG,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAExD,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC;AACrB,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cotestdev/mcp_playwright",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Playwright MCP (Model Context Protocol) tools for browser automation",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"publish": "npm publish --access public"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"playwright",
|
|
16
|
+
"mcp",
|
|
17
|
+
"browser-automation",
|
|
18
|
+
"model-context-protocol"
|
|
19
|
+
],
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"playwright": "workspace:*"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^20.0.0",
|
|
27
|
+
"typescript": "^5.0.0"
|
|
28
|
+
}
|
|
29
|
+
}
|