1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/mcp/servers.nix
Thierry Delafontaine 083b20c1a0 mcp: init module
2025-11-03 20:25:16 -06:00

25 lines
539 B
Nix

{
programs.mcp = {
enable = true;
servers = {
everything = {
command = "npx";
args = [
"-y"
"@modelcontextprotocol/server-everything"
];
};
context7 = {
serverUrl = "https://mcp.context7.com/mcp";
headers = {
CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";
};
};
};
};
nmt.script = ''
assertFileExists home-files/.config/mcp/mcp.json
assertFileContent home-files/.config/mcp/mcp.json \
${./mcp.json}
'';
}