my nixos/home-manager configuration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(claude): add context7, github and gitlab mcps for claude-code

Signed-off-by: Youn Mélois <youn@melois.dev>

+26
+26
home-manager/modules/dev/claude-code.nix
··· 8 8 9 9 let 10 10 cfg = config.programs.claude-code; 11 + secretPaths = config.programs.onepassword-secrets.secretPaths; 11 12 in 12 13 { 13 14 config = lib.mkIf cfg.enable { 14 15 programs.claude-code = { 15 16 package = pkgs.claude-code; 17 + mcpServers = { 18 + context7 = { 19 + command = pkgs.writeShellScript "context7-mcp" '' 20 + export PATH="${lib.makeBinPath [ pkgs.nodejs ]}:$PATH" 21 + export CONTEXT7_API_KEY="$(cat ${secretPaths.context7ApiKey})" 22 + exec ${pkgs.nodejs}/bin/npx -y @upstash/context7-mcp 23 + ''; 24 + type = "stdio"; 25 + }; 26 + github = { 27 + command = pkgs.writeShellScript "github-mcp" '' 28 + export GITHUB_PERSONAL_ACCESS_TOKEN="$(cat ${secretPaths.githubPersonalAccessToken})" 29 + exec ${lib.getExe pkgs.unstable.github-mcp-server} stdio 30 + ''; 31 + type = "stdio"; 32 + }; 33 + gitlab = { 34 + command = "${lib.getExe pkgs.unstable.glab}"; 35 + args = [ 36 + "mcp" 37 + "serve" 38 + ]; 39 + type = "stdio"; 40 + }; 41 + }; 16 42 }; 17 43 18 44 home.file.".claude/rules" = {