mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
programs = {
|
|
github-copilot-cli = {
|
|
enable = true;
|
|
enableMcpIntegration = true;
|
|
# user-defined server takes precedence over the integrated one
|
|
mcpServers.filesystem = {
|
|
type = "local";
|
|
command = "npx";
|
|
args = [
|
|
"-y"
|
|
"@modelcontextprotocol/server-filesystem"
|
|
"/tmp"
|
|
];
|
|
tools = [ "*" ];
|
|
};
|
|
};
|
|
mcp = {
|
|
enable = true;
|
|
servers = {
|
|
filesystem = {
|
|
command = "npx";
|
|
args = [
|
|
"-y"
|
|
"@modelcontextprotocol/server-filesystem"
|
|
"/other-tmp"
|
|
];
|
|
};
|
|
database = {
|
|
command = "npx";
|
|
args = [
|
|
"-y"
|
|
"@bytebase/dbhub"
|
|
];
|
|
env = {
|
|
DATABASE_URL = "postgresql://user:pass@localhost:5432/db";
|
|
};
|
|
};
|
|
disabled-server = {
|
|
command = "disabled-cmd";
|
|
disabled = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.copilot/mcp-config.json
|
|
assertFileContent home-files/.copilot/mcp-config.json ${./expected-mcp-integration-config.json}
|
|
'';
|
|
}
|