From e6315eb94b1fb4f48623cf53708ed4504ec5baaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 3 Feb 2026 22:21:50 +0100 Subject: [PATCH] docs: fix flake URL and add nix run MCP example - Update flake URL from github:torjus/labmcp to the correct git+https://git.t-juice.club/torjus/labmcp - Add alternative MCP client configuration using nix run with the flake URL directly (no installation required) - Fix NixOS module example to use correct flake URL Co-Authored-By: Claude Opus 4.5 --- README.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 96c60d5..5b81ed9 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ Search and query NixOS configuration options across multiple nixpkgs revisions. ```bash # Build the package -nix build github:torjus/labmcp +nix build git+https://git.t-juice.club/torjus/labmcp # Or run directly -nix run github:torjus/labmcp -- --help +nix run git+https://git.t-juice.club/torjus/labmcp -- --help ``` ### From Source @@ -52,6 +52,22 @@ Configure in your MCP client (e.g., Claude Desktop): } ``` +Alternatively, if you have Nix installed, you can use the flake directly without installing the package: + +```json +{ + "mcpServers": { + "nixos-options": { + "command": "nix", + "args": ["run", "git+https://git.t-juice.club/torjus/labmcp", "--", "serve"], + "env": { + "NIXOS_OPTIONS_DATABASE": "sqlite:///path/to/nixos-options.db" + } + } + } +} +``` + Then start the server: ```bash @@ -178,7 +194,7 @@ A NixOS module is provided for running the MCP server as a systemd service. ```nix { - inputs.labmcp.url = "github:torjus/labmcp"; + inputs.labmcp.url = "git+https://git.t-juice.club/torjus/labmcp"; outputs = { self, nixpkgs, labmcp }: { nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {