6 Commits

Author SHA1 Message Date
hermes-agent 8dc25624ff add: annas-mcp package (Go, fakeHash placeholders)
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 20s
2026-07-12 18:58:19 +00:00
hermes-agent 676d06f8ca audiobookshelf-mcp: fix vendorHash (from CI)
NixOS Configuration CI / Nix Flake Check (pull_request) Successful in 46s
2026-07-12 11:16:46 +00:00
hermes-agent 4856b98429 fix: remove committed pyc, add to gitignore
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 14s
2026-07-12 11:14:52 +00:00
hermes-agent d009717854 audiobookshelf-mcp: fix src hash (from CI), still need vendorHash
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 14s
2026-07-12 11:14:43 +00:00
hermes-agent 617bb9cab5 pinchflat-mcp: add pagination, downloaded filter, and delete_media tool
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 21s
- list_media: add offset and downloaded params for API pagination
- delete_media: new tool to delete downloaded files (with prevent_download option)
- Bump timeout on delete to 120s
2026-07-12 11:09:19 +00:00
hermes-agent 15906893c0 Add audiobookshelf-mcp package
Go binary from michaeldvinci/audiobookshelf-mcp (v0.0.5).
Covers libraries, audiobooks, podcasts, authors, collections,
playlists, and users. Uses buildGoModule with fakeHash placeholders
to be filled on first nix build.
2026-07-04 22:24:46 +00:00
5 changed files with 78 additions and 11 deletions
+1
View File
@@ -27,3 +27,4 @@ result-*
# Local environment overrides # Local environment overrides
.envrc.local .envrc.local
/.dir-locals.el /.dir-locals.el
__pycache__/
+15 -8
View File
@@ -2,28 +2,35 @@
lib, lib,
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
makeWrapper,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "annas-mcp"; pname = "annas-mcp";
version = "0.0.5"; version = "0.1.0-unstable-2026-06-26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "iosifache"; owner = "iosifache";
repo = "annas-mcp"; repo = "annas-mcp";
rev = "v${version}"; rev = "c095963ad5d10d33da3c614495246b6ec7f680d4";
hash = "sha256-XicM7tU5jD8B8n7JJDQ/84koBiLb8XF4+WBQ4LCUoRU="; hash = lib.fakeHash;
}; };
vendorHash = "sha256-2NdG5p2XfrhVgi388dRDBUSGwg6ybnzfn9495TWNGsA="; vendorHash = lib.fakeHash;
subPackages = [ "cmd/annas-mcp" ]; nativeBuildInputs = [ makeWrapper ];
# The MCP server mode is invoked with "mcp" subcommand
postInstall = ''
wrapProgram $out/bin/annas-mcp \
--add-flags "mcp"
'';
meta = with lib; { meta = with lib; {
description = "MCP server and CLI for searching and downloading documents from Anna's Archive"; description = "MCP server and CLI tool for searching and downloading documents from Anna's Archive";
homepage = "https://github.com/iosifache/annas-mcp"; homepage = "https://github.com/iosifache/annas-mcp";
license = licenses.mit; license = licenses.mit;
mainProgram = "annas-mcp"; mainProgram = "annas-mcp";
platforms = platforms.all; platforms = platforms.linux;
}; };
} }
+27
View File
@@ -0,0 +1,27 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "audiobookshelf-mcp";
version = "unstable-2026-06-27";
src = fetchFromGitHub {
owner = "michaeldvinci";
repo = "audiobookshelf-mcp";
rev = "e790d9c75085772180c95f2ec1376acc98e9282c";
hash = "sha256-vQR+Ej3Qtg8ehIUWnXkSayNYpqnOZPWV0TpTVPYh+io=";
};
vendorHash = "sha256-W8hlCGf4QdFbKc3QFc9pa4MWBhnp5A5GvWFNzg0BEhw=";
meta = with lib; {
description = "MCP server for Audiobookshelf libraries, audiobooks, podcasts, authors, collections, playlists";
homepage = "https://github.com/michaeldvinci/audiobookshelf-mcp";
license = licenses.gpl3Only;
mainProgram = "abs-mcp";
platforms = platforms.all;
};
}
+1
View File
@@ -20,5 +20,6 @@
mcp-score = pkgs.callPackage ./mcp-score/package.nix { }; mcp-score = pkgs.callPackage ./mcp-score/package.nix { };
applemusic-mcp = pkgs.callPackage ./applemusic-mcp/package.nix { }; applemusic-mcp = pkgs.callPackage ./applemusic-mcp/package.nix { };
pinchflat-mcp = pkgs.callPackage ./pinchflat-mcp/package.nix { }; pinchflat-mcp = pkgs.callPackage ./pinchflat-mcp/package.nix { };
audiobookshelf-mcp = pkgs.callPackage ./audiobookshelf-mcp/package.nix { };
# example-mcp-server = pkgs.callPackage ./example-mcp-server/package.nix { }; # example-mcp-server = pkgs.callPackage ./example-mcp-server/package.nix { };
} }
+34 -3
View File
@@ -150,11 +150,25 @@ def force_metadata_refresh(source_id: int) -> dict:
# --- Media Items --- # --- Media Items ---
@mcp.tool() @mcp.tool()
def list_media(source_id: Optional[int] = None, limit: int = 50) -> dict: def list_media(
"""List media items. Optionally filter by source_id.""" source_id: Optional[int] = None,
params = {} limit: int = 50,
offset: int = 0,
downloaded: Optional[bool] = None,
) -> dict:
"""List media items with pagination. Optionally filter by source_id or download status.
Args:
source_id: Filter to a specific source
limit: Max items to return (default 50)
offset: Skip first N items for pagination (default 0)
downloaded: If True, only return downloaded media; if False, only undownloaded
"""
params = {"limit": limit, "offset": offset}
if source_id: if source_id:
params["source_id"] = source_id params["source_id"] = source_id
if downloaded is not None:
params["downloaded"] = "true" if downloaded else "false"
return _get("/media", params=params) return _get("/media", params=params)
@@ -176,6 +190,23 @@ def force_download_media(media_id: int) -> dict:
return _post(f"/media/{media_id}/force_download") return _post(f"/media/{media_id}/force_download")
@mcp.tool()
def delete_media(media_id: int, prevent_download: bool = False) -> dict:
"""Delete a media item's downloaded files from disk.
Args:
media_id: The media item ID to delete
prevent_download: If True, prevent the item from being re-downloaded in the future
"""
params = {}
if prevent_download:
params["prevent_download"] = "true"
with httpx.Client(timeout=120) as client:
r = client.delete(f"{BASE}/media/{media_id}", headers=HEADERS, params=params)
r.raise_for_status()
return r.json()
# --- Media Profiles --- # --- Media Profiles ---
@mcp.tool() @mcp.tool()