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 {