adding mcp stuff

This commit is contained in:
2025-06-27 18:44:01 -06:00
parent 20cb133082
commit bc87e99d4f
3 changed files with 18 additions and 4 deletions

1
mcp/.envrc Normal file
View File

@@ -0,0 +1 @@
use nix

View File

@@ -1,5 +1,3 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash python313Packages.pyppeteer python312
uvx mcpo --port 8001 --api-key "thekey" -- npx -y puppeteer-mcp-server
uvx mcpo --port 8001 --api-key "thekey" -- npx -y @modelcontextprotocol/server-puppeteer
# uvx mcpo --port 8001 --api-key "thekey" -- npx -y puppeteer-mcp-server

15
mcp/shell.nix Normal file
View File

@@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.bash
pkgs.python313Packages.pyppeteer
pkgs.python312
pkgs.glib
pkgs.glib.out
pkgs.chromium
];
shellHook = ''
export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium}/bin/chromium
'';
}