@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: BrowserEndpoint, options?: Options): typeof McpAgent<typeof env, {}, {}>;
39
+ export declare function createMcpAgent(endpoint: string | URL, options?: Options): typeof McpAgent<typeof env, {}, {}>;
41
40
  export {};
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
4
 
5
- const version = "0.0.4";
5
+ const version = "0.0.5";
6
6
  const json = {
7
7
  version};
8
8
 
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 = typeof endpoint === "string" ? endpoint : endpoint instanceof URL ? endpoint.toString() : playwright.endpointURLString(endpoint);
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: {
@@ -1,4 +1,4 @@
1
- const version = "0.0.4";
1
+ const version = "0.0.5";
2
2
  const json = {
3
3
  version};
4
4
 
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 = typeof endpoint === "string" ? endpoint : endpoint instanceof URL ? endpoint.toString() : endpointURLString(endpoint);
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szymonrybczak/playwright-mcp",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Cloudflare Playwright Tools for MCP",
5
5
  "type": "module",
6
6
  "repository": {