No description
- Go 96.8%
- Nix 3.2%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| docs/superpowers | ||
| channel_test.go | ||
| config.go | ||
| docs_sources_test.go | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| http.go | ||
| main.go | ||
| main_test.go | ||
| nixhub_test.go | ||
| opencode.json | ||
| README.md | ||
| routing_test.go | ||
| server.go | ||
| server_test.go | ||
| sources.go | ||
| util.go | ||
| util_test.go | ||
| version.go | ||
mcp-nixos
mcp-nixos is a Go Model Context Protocol server for accurate NixOS, nixpkgs, Home Manager, nix-darwin, FlakeHub, Nixvim, Noogle, NixHub, nix.dev, NixOS Wiki, binary cache, and /nix/store queries.
This is a Go rewrite of the Python mcp-nixos server, using github.com/mark3labs/mcp-go like mcp-godoc.
Usage
go run .
Transport flags:
mcp-nixos --transport stdio
mcp-nixos --transport sse --addr 127.0.0.1:8000
mcp-nixos --transport http --addr 127.0.0.1:8000
Python-compatible environment defaults are also supported:
MCP_NIXOS_TRANSPORT=http MCP_NIXOS_HOST=127.0.0.1 MCP_NIXOS_PORT=8000 mcp-nixos
Tools
nix
Unified query tool:
nix(action, query, source, type, channel, limit, version, system)
Actions: search, info, stats, browse, channels, flake-inputs, cache, store.
Sources: nixos, home-manager, darwin, flakes, flakehub, nixvim, wiki, nix-dev, noogle, nixhub.
nix_versions
Package version history from NixHub:
nix_versions(package, version, limit)
Development
go test ./...
go run . --transport stdio
nix build
nix flake check
License
MIT. See LICENSE if present in downstream packaging.