iosifache/annas-mcp ? reverse-engineered prompt
Reverse engineered prompt
Build me a Go tool that works both as a simple command line app and as an MCP server for Claude Desktop.
I want to be able to search Anna’s Archive for books and articles, then download a book by its MD5 hash or an article by its DOI. Make the commands feel easy to use, like search by title, author, topic, keywords, or DOI, and save downloads to a folder I choose. It should support the usual config from environment variables or an .env file, including the API key, download path, and base mirror URL.
If possible, add automatic mirror selection so it can check for a working Anna’s Archive mirror and fall back safely if one is down. Keep timeouts configurable too, since downloads can take a while. Please make it practical for both direct terminal use and Claude Desktop integration, and look up the current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit