tools working

This commit is contained in:
2025-07-17 14:03:04 -06:00
parent 4a9af85237
commit 3ed05918bf

View File

@@ -11,7 +11,6 @@
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
bash bash
python313Packages.pyppeteer
glib glib
glib.out glib.out
chromium chromium
@@ -19,13 +18,10 @@
nodejs_22 nodejs_22
opencode opencode
]; ];
shellHook = ''
export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium}/bin/chromium
'';
}; };
packages.run = pkgs.writeShellScriptBin "run_flake" '' packages.run = pkgs.writeShellScriptBin "run_flake" ''
mkdir -p ~/.config/opencode mkdir -p ~/.config/opencode
cp ${self.packages.${system}.config_json}/config.json ~/.config/opencode/opencode.json cp ${self.packages.${system}.config_json} ~/.config/opencode/opencode.json
${pkgs.opencode}/bin/opencode ${pkgs.opencode}/bin/opencode
''; '';
packages.config_json = pkgs.writeTextFile { packages.config_json = pkgs.writeTextFile {
@@ -34,27 +30,25 @@
{ {
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"theme": "github", "theme": "github",
"mcpServers": { "mcp": {
"memory": { "memory": {
"command": "npx", "type": "local",
"args": ["-y", "@modelcontextprotocol/server-memory"] "command": [ "npx", "-y", "@modelcontextprotocol/server-memory" ]
},
"puppeteer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
}, },
"playwright": { "playwright": {
"command": "npx", "type": "local",
"args": [ "command": [
"npx",
"-y", "-y",
"@playwright/mcp@latest", "@playwright/mcp@latest",
"--executable-path", "--executable-path",
"${pkgs.chromium}/bin/chromium" "${pkgs.chromium}/bin/chromium",
"--no-sandbox"
] ]
}, },
"sequential_thinking": { "sequential_thinking": {
"command": "npx", "type": "local",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"] "command": [ "npx", "-y", "@modelcontextprotocol/server-sequential-thinking"]
} }
} }
} }