# 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 DESCRIPTION="Fast framework for building Model Context Protocol servers" HOMEPAGE=" https://github.com/PrefectHQ/fastmcp https://pypi.org/project/fastmcp/ " # Build the bundled implementation instead of the empty root metapackage. S="${WORKDIR}/${P}/fastmcp_slim" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64" # Ship the union of fastmcp-slim's base, mcp, client, and server groups; provider # extras are outside the root metapackage and depend on unpackaged integrations. # Audit bundled fastmcp_slim/pyproject.toml, not root Requires-Dist, which only # pins slim extras. These groups are unchanged since 4.0.0. # verified 2026-09-05 RDEPEND=" >=dev-python/mcp-types-2.0.0[${PYTHON_USEDEP}] =dev-python/platformdirs-4.0.0[${PYTHON_USEDEP}] >=dev-python/pydantic-2.12.0[${PYTHON_USEDEP}] dev-python/email-validator[${PYTHON_USEDEP}] >=dev-python/pydantic-settings-2.0.0[${PYTHON_USEDEP}] >=dev-python/python-dotenv-1.1.0[${PYTHON_USEDEP}] >=dev-python/rich-13.9.4[${PYTHON_USEDEP}] >=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}] >=dev-python/exceptiongroup-1.2.2[${PYTHON_USEDEP}] >=dev-python/httpx2-2.5.0[${PYTHON_USEDEP}] >=dev-python/mcp-2.0.0[${PYTHON_USEDEP}] =dev-python/opentelemetry-api-1.28.0[${PYTHON_USEDEP}] >=dev-python/starlette-1.0.1[${PYTHON_USEDEP}] >=dev-python/authlib-1.6.11[${PYTHON_USEDEP}] >=dev-python/py-key-value-aio-0.4.4[${PYTHON_USEDEP}] =dev-python/cyclopts-4.0.0[${PYTHON_USEDEP}] >=dev-python/griffelib-2.0.0[${PYTHON_USEDEP}] >=dev-python/jsonref-1.1.0[${PYTHON_USEDEP}] >=dev-python/jsonschema-path-0.3.4[${PYTHON_USEDEP}] >=dev-python/joserfc-1.5.0[${PYTHON_USEDEP}] >=dev-python/openapi-pydantic-0.5.1[${PYTHON_USEDEP}] >=dev-python/packaging-24.0[${PYTHON_USEDEP}] >=dev-python/pyperclip-1.9.0[${PYTHON_USEDEP}] >=dev-python/python-multipart-0.0.26[${PYTHON_USEDEP}] >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}] =dev-python/uncalled-for-0.4.0[${PYTHON_USEDEP}] >=dev-python/uvicorn-0.35[${PYTHON_USEDEP}] >=dev-python/watchfiles-1.0.0[${PYTHON_USEDEP}] >=dev-python/websockets-15.0.1[${PYTHON_USEDEP}] " BDEPEND=" dev-python/hatchling[${PYTHON_USEDEP}] >=dev-python/uv-dynamic-versioning-0.7.0[${PYTHON_USEDEP}] " # The plain py-key-value-aio atom already supplies the requested filetree, # keyring, and memory extras. # verified 2026-09-01 # The upstream suite requires its full development workspace and live service # integrations, including Node-based MCP conformance tests. RESTRICT="test" export UV_DYNAMIC_VERSIONING_BYPASS=${PV}