Repository navigation
Expand file tree
/
Copy pathai.nix
More file actions
76 lines (70 loc) · 1.81 KB
/
Copy pathai.nix
File metadata and controls
76 lines (70 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
pkgs,
lib,
inputs,
...
}:
let
NVIM_MCP_PKG = inputs.nvim-mcp.packages.${pkgs.system}.default;
in
{
programs = {
# Centralized MCP configurations
mcp = {
enable = true;
servers = {
context7 = {
# Reference the natively packaged binary
command = "${pkgs.context7-mcp}/bin/context7-mcp";
args = [
"--api-key"
"$CONTEXT7_API_KEY" # Pulls safely from your shell environment variables
];
};
neovim = {
# Resolves directly to the stable /nix/store execution binary path
command = lib.getExe NVIM_MCP_PKG;
args = [
"--connect"
"auto"
];
env = {
# Path to your active Neovim session socket
NVIM_SOCKET_PATH = "/tmp/nvim";
ALLOW_SHELL_COMMANDS = "true";
};
};
playwright = {
# Use the native binary from nixpkgs instead of npx
command = "${pkgs.playwright-mcp}/bin/playwright-mcp";
args = [
"--headless"
];
env = {
# Explicitly tell Playwright where to look for the system-patched browser binaries
PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}";
PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS = "true";
};
};
};
};
claude-code = {
enable = true;
package = pkgs.claude-code;
enableMcpIntegration = true;
skills = {
herdr = builtins.readFile ./skills/herdr/skill.md;
};
};
pi-coding-agent = {
enable = true;
settings.packages = [
"npm:pi-permission-system"
"npm:pi-web-access"
"npm:pi-plan-mode"
"npm:pi-subagents"
"npm:pi-mcp-extension"
];
};
};
}