chore: allow passing cdp endpoint (#86)
Fixes https://github.com/microsoft/playwright-mcp/issues/84
This commit is contained in:
parent
88fbf50841
commit
a7392fc266
6 changed files with 63 additions and 17 deletions
|
|
@ -66,6 +66,7 @@ const resources: Resource[] = [
|
|||
type Options = {
|
||||
userDataDir?: string;
|
||||
launchOptions?: LaunchOptions;
|
||||
cdpEndpoint?: string;
|
||||
vision?: boolean;
|
||||
};
|
||||
|
||||
|
|
@ -80,5 +81,6 @@ export function createServer(options?: Options): Server {
|
|||
resources,
|
||||
userDataDir: options?.userDataDir ?? '',
|
||||
launchOptions: options?.launchOptions,
|
||||
cdpEndpoint: options?.cdpEndpoint,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue