@szymonrybczak/playwright-mcp 0.0.4 → 0.0.5
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/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
import { env } from 'cloudflare:workers';
|
|
19
19
|
import { McpAgent } from 'agents/mcp';
|
|
20
|
-
import { BrowserEndpoint } from '@szymonrybczak/patchright';
|
|
21
20
|
|
|
22
21
|
type ToolCapability = 'core' | 'tabs' | 'pdf' | 'history' | 'wait' | 'files';
|
|
23
22
|
|
|
@@ -37,5 +36,5 @@ type Options = {
|
|
|
37
36
|
*/
|
|
38
37
|
capabilities?: ToolCapability[];
|
|
39
38
|
};
|
|
40
|
-
export declare function createMcpAgent(endpoint:
|
|
39
|
+
export declare function createMcpAgent(endpoint: string | URL, options?: Options): typeof McpAgent<typeof env, {}, {}>;
|
|
41
40
|
export {};
|
package/lib/cjs/index.js
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const mcp = require('agents/mcp');
|
|
6
|
-
const playwright = require('@szymonrybczak/patchright');
|
|
7
6
|
const index = require('./src/index.js');
|
|
8
7
|
|
|
9
8
|
function createMcpAgent(endpoint, options) {
|
|
10
|
-
const cdpEndpoint =
|
|
9
|
+
const cdpEndpoint = endpoint instanceof URL ? endpoint.toString() : endpoint;
|
|
11
10
|
const connection = index.createConnection({
|
|
12
11
|
capabilities: ["core", "tabs", "pdf", "history", "wait", "files", "testing"],
|
|
13
12
|
browser: {
|
package/lib/esm/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { McpAgent } from 'agents/mcp';
|
|
2
|
-
import { endpointURLString } from '@szymonrybczak/patchright';
|
|
3
2
|
import { createConnection } from './src/index.js';
|
|
4
3
|
|
|
5
4
|
function createMcpAgent(endpoint, options) {
|
|
6
|
-
const cdpEndpoint =
|
|
5
|
+
const cdpEndpoint = endpoint instanceof URL ? endpoint.toString() : endpoint;
|
|
7
6
|
const connection = createConnection({
|
|
8
7
|
capabilities: ["core", "tabs", "pdf", "history", "wait", "files", "testing"],
|
|
9
8
|
browser: {
|