rae-playwright-mcp 0.0.6 → 0.0.8
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 +12 -1
- package/config.d.ts +6 -0
- package/lib/common/config.js +0 -1
- package/lib/common/configLoader.js +0 -1
- package/lib/common/esmLoaderHost.js +0 -1
- package/lib/common/expectBundle.js +0 -1
- package/lib/common/expectBundleImpl.js +258 -15632
- package/lib/common/fixtures.js +0 -1
- package/lib/common/globals.js +0 -1
- package/lib/common/ipc.js +0 -1
- package/lib/common/poolBuilder.js +0 -1
- package/lib/common/process.js +0 -1
- package/lib/common/suiteUtils.js +0 -1
- package/lib/common/test.js +0 -1
- package/lib/common/testLoader.js +0 -1
- package/lib/common/testType.js +0 -1
- package/lib/common/validators.js +0 -1
- package/lib/mcp/browser/actions.d.js +0 -1
- package/lib/mcp/browser/browserContextFactory.js +7 -7
- package/lib/mcp/browser/browserServerBackend.js +0 -1
- package/lib/mcp/browser/config.js +3 -2
- package/lib/mcp/browser/context.js +17 -1
- package/lib/mcp/browser/response.js +0 -1
- package/lib/mcp/browser/sessionLog.js +0 -1
- package/lib/mcp/browser/tab.js +0 -1
- package/lib/mcp/browser/tools/common.js +4 -1
- package/lib/mcp/browser/tools/console.js +0 -1
- package/lib/mcp/browser/tools/dialogs.js +0 -1
- package/lib/mcp/browser/tools/evaluate.js +0 -1
- package/lib/mcp/browser/tools/files.js +0 -1
- package/lib/mcp/browser/tools/form.js +0 -1
- package/lib/mcp/browser/tools/install.js +0 -1
- package/lib/mcp/browser/tools/keyboard.js +0 -1
- package/lib/mcp/browser/tools/mouse.js +0 -1
- package/lib/mcp/browser/tools/navigate.js +0 -1
- package/lib/mcp/browser/tools/network.js +0 -1
- package/lib/mcp/browser/tools/pdf.js +0 -1
- package/lib/mcp/browser/tools/runCode.js +0 -1
- package/lib/mcp/browser/tools/screenshot.js +0 -1
- package/lib/mcp/browser/tools/snapshot.js +0 -1
- package/lib/mcp/browser/tools/tabs.js +0 -1
- package/lib/mcp/browser/tools/tool.js +0 -1
- package/lib/mcp/browser/tools/tracing.js +0 -1
- package/lib/mcp/browser/tools/utils.js +0 -1
- package/lib/mcp/browser/tools/verify.js +0 -1
- package/lib/mcp/browser/tools/wait.js +0 -1
- package/lib/mcp/browser/tools.js +0 -1
- package/lib/mcp/browser/watchdog.js +0 -1
- package/lib/mcp/config.d.js +0 -1
- package/lib/mcp/extension/cdpRelay.js +0 -1
- package/lib/mcp/extension/extensionContextFactory.js +0 -1
- package/lib/mcp/extension/protocol.js +0 -1
- package/lib/mcp/index.js +0 -1
- package/lib/mcp/log.js +0 -1
- package/lib/mcp/program.js +1 -2
- package/lib/mcp/sdk/exports.js +0 -1
- package/lib/mcp/sdk/http.js +0 -1
- package/lib/mcp/sdk/inProcessTransport.js +0 -1
- package/lib/mcp/sdk/server.js +0 -1
- package/lib/mcp/sdk/tool.js +0 -1
- package/lib/mcp/test/browserBackend.js +0 -1
- package/lib/mcp/test/generatorTools.js +0 -1
- package/lib/mcp/test/plannerTools.js +0 -1
- package/lib/mcp/test/seed.js +0 -1
- package/lib/mcp/test/streams.js +0 -1
- package/lib/mcp/test/testBackend.js +0 -1
- package/lib/mcp/test/testContext.js +0 -1
- package/lib/mcp/test/testTool.js +0 -1
- package/lib/mcp/test/testTools.js +0 -1
- package/lib/third_party/pirates.js +0 -1
- package/lib/third_party/tsconfig-loader.js +0 -1
- package/lib/transform/babelBundle.js +0 -1
- package/lib/transform/babelBundleImpl.js +432 -68697
- package/lib/transform/babelHighlightUtils.js +0 -1
- package/lib/transform/compilationCache.js +0 -1
- package/lib/transform/esmLoader.js +0 -1
- package/lib/transform/portTransport.js +0 -1
- package/lib/transform/transform.js +0 -1
- package/lib/util.js +0 -1
- package/lib/utilsBundle.js +0 -1
- package/lib/utilsBundleImpl.js +50 -13072
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -320,7 +320,8 @@ Playwright MCP server supports following arguments. They can be provided in the
|
|
|
320
320
|
|
|
321
321
|
This fork includes additional features beyond the original Playwright MCP:
|
|
322
322
|
|
|
323
|
-
- **`--run-id <id>`**: Specify a custom UUID for HAR file organization. HAR files are saved to `~/.reverse-api/runs/har/{run-id}/
|
|
323
|
+
- **`--run-id <id>`**: Specify a custom UUID for HAR file organization. HAR files are saved to `{save-har-path}/{run-id}/recording.har` (or `~/.reverse-api/runs/har/{run-id}/recording.har` by default). If not provided, a UUID is automatically generated.
|
|
324
|
+
- **`--save-har-path <path>`**: Specify a custom directory path where HAR files should be saved. HAR files will be saved to `{path}/{run-id}/recording.har`. If not provided, defaults to `~/.reverse-api/runs/har`.
|
|
324
325
|
- **Automatic HAR Recording**: All browser sessions automatically record network traffic in HAR format. The HAR file path is logged when the server starts.
|
|
325
326
|
- **Default Tracing**: Tracing capabilities are enabled by default with source code capture (`sources: true`)
|
|
326
327
|
- **Self-contained Package**: All MCP code is bundled in the package, no dependency on the Playwright monorepo
|
|
@@ -331,6 +332,7 @@ This is a fork of the official [Playwright MCP](https://github.com/microsoft/pla
|
|
|
331
332
|
|
|
332
333
|
- HAR recording enabled by default for all browser contexts
|
|
333
334
|
- Custom `--run-id` CLI option for organizing HAR files
|
|
335
|
+
- Custom `--save-har-path` CLI option for specifying HAR file directory
|
|
334
336
|
- Tracing enabled by default with source code capture
|
|
335
337
|
- Self-contained package (all code bundled, no monorepo dependency)
|
|
336
338
|
|
|
@@ -448,6 +450,9 @@ Options:
|
|
|
448
450
|
--run-id <id> External UUID to use for HAR directory.
|
|
449
451
|
If not provided, a UUID will be
|
|
450
452
|
generated.
|
|
453
|
+
--save-har-path <path> path to the directory where HAR files
|
|
454
|
+
should be saved. HAR files will be saved
|
|
455
|
+
to {path}/{run-id}/recording.har
|
|
451
456
|
```
|
|
452
457
|
|
|
453
458
|
<!--- End of options generated section -->
|
|
@@ -718,6 +723,12 @@ npx rae-playwright-mcp@latest --config path/to/config.json
|
|
|
718
723
|
* External UUID to use for HAR directory. If not provided, a UUID will be generated.
|
|
719
724
|
*/
|
|
720
725
|
runId?: string;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Path to the directory where HAR files should be saved. HAR files will be saved to {saveHarPath}/{runId}/recording.har.
|
|
729
|
+
* If not provided, defaults to ~/.reverse-api/runs/har/{runId}/recording.har.
|
|
730
|
+
*/
|
|
731
|
+
saveHarPath?: string;
|
|
721
732
|
}
|
|
722
733
|
```
|
|
723
734
|
|
package/config.d.ts
CHANGED
|
@@ -194,4 +194,10 @@ export type Config = {
|
|
|
194
194
|
* External UUID to use for HAR directory. If not provided, a UUID will be generated.
|
|
195
195
|
*/
|
|
196
196
|
runId?: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Path to the directory where HAR files should be saved. HAR files will be saved to {saveHarPath}/{runId}/recording.har.
|
|
200
|
+
* If not provided, defaults to ~/.reverse-api/runs/har/{runId}/recording.har.
|
|
201
|
+
*/
|
|
202
|
+
saveHarPath?: string;
|
|
197
203
|
};
|
package/lib/common/config.js
CHANGED