Files
mcp-servers/packages/annas-mcp/package.nix
T
luis 67c7e829f3
NixOS Configuration CI / Nix Flake Check (push) Successful in 8s
annas-mcp: repoint to SokolskyNikita fork v0.0.14
Upstream iosifache/annas-mcp is unmaintained since 2026-06-26 and returns HTTP 403 on all requests because Anna's Archive added a DDoS-Guard browser check. The fork is 24 commits ahead, passes DDoS-Guard via ANNAS_ACCOUNT_COOKIE, fixes pagination/filters, and updates the MCP SDK.
2026-09-25 18:06:13 +02:00

36 lines
848 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
makeWrapper,
}:
buildGoModule rec {
pname = "annas-mcp";
version = "0.0.14";
src = fetchFromGitHub {
owner = "SokolskyNikita";
repo = "annas-mcp";
rev = "9e720ad93df0fdfb25d4de6afcba11a920b34af4";
hash = "sha256-LcnWYpvSpSHYo1zMcLGTZgxZgo7JOXF4dESD4l+qVhI=";
};
vendorHash = "sha256-SCTznvZ8DvDN+iPDcTxiqpNYJwRLS8zIomz7f8S1eD0=";
nativeBuildInputs = [ makeWrapper ];
# The MCP server mode is invoked with "mcp" subcommand
postInstall = ''
wrapProgram $out/bin/annas-mcp \
--add-flags "mcp"
'';
meta = with lib; {
description = "MCP server and CLI tool for searching and downloading documents from Anna's Archive";
homepage = "https://github.com/SokolskyNikita/annas-mcp";
mainProgram = "annas-mcp";
platforms = platforms.all;
};
}