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 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 17:31:05 +01:00
parent 75addb5a28
commit d7ee6048e1
2 changed files with 18 additions and 4 deletions

View File

@@ -1,15 +1,29 @@
{ {
"mcpServers": { "mcpServers": {
"nixos-options": { "nixpkgs-options": {
"command": "nix", "command": "nix",
"args": [ "args": [
"run", "run",
".", ".#nixpkgs-search",
"--", "--",
"options",
"serve" "serve"
], ],
"env": { "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:"
} }
} }
} }

View File

@@ -223,7 +223,7 @@ hm-options --version # Show version
### Development Workflow ### Development Workflow
- **Always run `go fmt ./...` before committing Go code** - **Always run `go fmt ./...` before committing Go code**
- **Run Go commands using `nix develop -c`** (e.g., `nix develop -c go test ./...`) - **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` - File paths in responses should use format `path/to/file.go:123`
### Linting ### Linting