1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

mcp: init module

This commit is contained in:
Thierry Delafontaine 2025-10-27 12:15:04 +01:00 committed by Austin Horstman
parent 1f34c2c855
commit 083b20c1a0
5 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{
mcp-servers = ./servers.nix;
mcp-empty-servers = ./empty-servers.nix;
}

View file

@ -0,0 +1,9 @@
{
programs.mcp = {
enable = true;
servers = { };
};
nmt.script = ''
assertPathNotExists home-files/.config/mcp/mcp.json
'';
}

View file

@ -0,0 +1,17 @@
{
"mcpServers": {
"context7": {
"headers": {
"CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"
},
"serverUrl": "https://mcp.context7.com/mcp"
},
"everything": {
"args": [
"-y",
"@modelcontextprotocol/server-everything"
],
"command": "npx"
}
}
}

View file

@ -0,0 +1,25 @@
{
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}
'';
}