mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
36 lines
757 B
Nix
36 lines
757 B
Nix
{
|
|
programs.mcp = {
|
|
enable = true;
|
|
servers = {
|
|
everything = {
|
|
command = "npx";
|
|
args = [
|
|
"-y"
|
|
"@modelcontextprotocol/server-everything"
|
|
];
|
|
};
|
|
context7 = {
|
|
url = "https://mcp.context7.com/mcp";
|
|
headers = {
|
|
CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";
|
|
};
|
|
};
|
|
disabled-server = {
|
|
command = "echo";
|
|
args = [ "test" ];
|
|
disabled = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.opencode = {
|
|
enable = true;
|
|
enableMcpIntegration = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/opencode/config.json
|
|
assertFileContent home-files/.config/opencode/config.json \
|
|
${./mcp-integration.json}
|
|
'';
|
|
}
|