fix playwright mcp browser runtime
This commit is contained in:
parent
87f519e42f
commit
d8af6b1afa
1 changed files with 9 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
};
|
||||
};
|
||||
homeManager.ai =
|
||||
{ inputs, pkgs, ... }:
|
||||
{ config, inputs, pkgs, ... }:
|
||||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
|
|
@ -35,7 +35,14 @@
|
|||
mcp = {
|
||||
playwright = {
|
||||
type = "local";
|
||||
command = [ "mcp-server-playwright" ];
|
||||
command = [
|
||||
"${pkgs.coreutils}/bin/env"
|
||||
"PLAYWRIGHT_BROWSERS_PATH=${config.xdg.cacheHome}/playwright-mcp"
|
||||
"${pkgs.nodejs}/bin/node"
|
||||
"${pkgs.playwright-mcp}/lib/node_modules/playwright-mcp-internal/cli.js"
|
||||
"--executable-path"
|
||||
"/run/current-system/sw/bin/chromium"
|
||||
];
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue