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 <noreply@anthropic.com>
This commit is contained in:
22
README.md
22
README.md
@@ -20,10 +20,10 @@ Search and query NixOS configuration options across multiple nixpkgs revisions.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Build the package
|
# Build the package
|
||||||
nix build github:torjus/labmcp
|
nix build git+https://git.t-juice.club/torjus/labmcp
|
||||||
|
|
||||||
# Or run directly
|
# Or run directly
|
||||||
nix run github:torjus/labmcp -- --help
|
nix run git+https://git.t-juice.club/torjus/labmcp -- --help
|
||||||
```
|
```
|
||||||
|
|
||||||
### From Source
|
### 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:
|
Then start the server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -178,7 +194,7 @@ A NixOS module is provided for running the MCP server as a systemd service.
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs.labmcp.url = "github:torjus/labmcp";
|
inputs.labmcp.url = "git+https://git.t-juice.club/torjus/labmcp";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, labmcp }: {
|
outputs = { self, nixpkgs, labmcp }: {
|
||||||
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
|
||||||
|
|||||||
Reference in New Issue
Block a user