From d7ee6048e10276d95193096ad84523911dc492ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 4 Feb 2026 17:31:05 +0100 Subject: [PATCH] chore: update dev config for nixpkgs-search - Update .mcp.json to use nixpkgs-search options/packages servers - Update CLAUDE.md example to use nixpkgs-search Co-Authored-By: Claude Opus 4.5 --- .mcp.json | 20 +++++++++++++++++--- CLAUDE.md | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.mcp.json b/.mcp.json index 3d89edc..4705ce8 100644 --- a/.mcp.json +++ b/.mcp.json @@ -1,15 +1,29 @@ { "mcpServers": { - "nixos-options": { + "nixpkgs-options": { "command": "nix", "args": [ "run", - ".", + ".#nixpkgs-search", "--", + "options", "serve" ], "env": { - "NIXOS_OPTIONS_DATABASE": "sqlite://:memory:" + "NIXPKGS_SEARCH_DATABASE": "sqlite://:memory:" + } + }, + "nixpkgs-packages": { + "command": "nix", + "args": [ + "run", + ".#nixpkgs-search", + "--", + "packages", + "serve" + ], + "env": { + "NIXPKGS_SEARCH_DATABASE": "sqlite://:memory:" } } } diff --git a/CLAUDE.md b/CLAUDE.md index 6b7205d..414fe05 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -223,7 +223,7 @@ hm-options --version # Show version ### Development Workflow - **Always run `go fmt ./...` before committing Go code** - **Run Go commands using `nix develop -c`** (e.g., `nix develop -c go test ./...`) -- **Use `nix run` to run binaries** (e.g., `nix run .#nixos-options -- serve`) +- **Use `nix run` to run binaries** (e.g., `nix run .#nixpkgs-search -- options serve`) - File paths in responses should use format `path/to/file.go:123` ### Linting