# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=hatchling PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 pypi systemd DESCRIPTION="MCP server covering the Redmine REST API (issues, projects, wiki, time entries)" HOMEPAGE=" https://github.com/runekaagaard/mcp-redmine https://pypi.org/project/mcp-redmine/ " LICENSE="MPL-2.0" SLOT="0" KEYWORDS="~amd64" # Upstream pins exact versions; the API it uses is stable across them. RDEPEND=" acct-user/mcp-redmine dev-python/httpx[${PYTHON_USEDEP}] >=dev-python/mcp-2[${PYTHON_USEDEP}] (My account -> API access key)" elog " REDMINE_REQUEST_INSTRUCTIONS=/path/to/instructions.md (optional)" elog " REDMINE_ALLOWED_DIRECTORIES=/tmp (optional, for attachments)" elog " REDMINE_READ_ONLY=1 (optional, refuses non-GET requests)" elog "Register it in your MCP client, e.g. for Claude Code:" elog " claude mcp add redmine -e REDMINE_URL=... -e REDMINE_API_KEY=... -- mcp-redmine" elog elog "To run it as a shared service (streamable HTTP on 127.0.0.1:8000):" elog " 1. Set REDMINE_URL in /etc/${PN}/${PN}.conf" elog " 2. systemctl enable --now ${PN}, or rc-update add ${PN} default" elog "Each client then sends its own Redmine API key:" elog " claude mcp add --transport http redmine http://127.0.0.1:8000/mcp \\" elog " --header 'X-Redmine-API-Key: '" }