One Python MCP server, seven install channels, and what broke on the way

On 28 July 2026 at 13:45 UTC, version 2.0.0 of the MCP SDK reached PyPI. From then until 27 August at 12:14 UTC, about 30 days, a fresh install of any 12.x release of my server failed at start in every channel that resolves dependencies at install time. The cause was one line in the package metadata: the SDK was required as mcp[cli]>=1.0.0, with no upper bound. I have no report from a user who hit it. I found it later, reading my own records.

This article is an experience report about my own open-source project, total-agent-memory (TAM): a local memory server for coding agents, written in Python, MIT licensed. I shipped it through seven install channels from 16 May to 28 September 2026, 135 days. Afterwards I went through the public records (112 commits, 132 CI runs, registry timestamps, every published wheel) and six local verification reports. I coded 25 product defects and 12 test, CI or hosting issues against a written codebook. Everything below describes the state at the time of the study, release 14.6.0 of 28 September 2026.

The seven channels

  • C1, PyPI package. pip, pipx or uvx. It installs the wheel. First published 16 May, under the old name claude-total-memory, then renamed to total-agent-memory.
  • C2, npm wrapper. npx -y total-agent-memory connect <client>. It creates a Python environment with uv and installs the same wheel. 17 npm versions, 0.1.0 to 1.9.0.
  • C3, Homebrew tap. brew install vbcherepanov/tap/total-memory. It installs the wheel into a virtual environment.
  • C4, plugin repository. A separate repository for Claude Code, Cowork and Codex. It pins a version and runs it with uvx. It exists only since 28 September.
  • C5, container image on GHCR. Built for amd64 and arm64 from the repository. It does not install the wheel.
  • C6, source installers. install.sh for macOS and Linux, install.ps1 for Windows, run from a checkout. They also install background services and register the server in MCP clients.
  • C7, Claude Code plugin. A bootstrap script finds or creates a runnable server. In two of its five start-up branches it installs the wheel from PyPI.

The shape that matters: C1 to C4 consume one PyPI wheel. During the study period three of them existed, because C4 came on the last day. C5 and C6 build from the repository and can differ from the wheel. So a defect in the wheel reaches every wheel channel on the same day, and a fix to the wheel fixes them all.

Four design rules

None of these existed on 16 May. Each was written down after a defect.

Rule 1, an artifact-content contract. Every file the server reads at run time is inside every built artifact, and the code finds it relative to the installed package, never relative to a checkout. The data directories (migrations, vocabularies, filters) are Python packages with declared package data. A test builds the wheel and asserts that they are inside. A CI job builds the sdist from a clean checkout, unpacks it in an empty directory and runs the full suite there.

Rule 2, default dependencies by reachability. The default install contains what the default configuration reaches, nothing more. Heavy stacks live in extras (rerank, postgres, all). Fallback libraries are imported on first use. The MCP SDK is bounded on both sides, mcp[cli]>=1.9,<3. A test imports the server in a fresh interpreter and fails if torch, sentence_transformers or chromadb gets loaded.

Rule 3, one artifact behind many channels. Every channel that can install the wheel does. A channel that builds separately must derive its dependency set from the same declaration. A test fails when requirements.txt and pyproject.toml differ.

Rule 4, a container transport contract. The image has an entry mode for every MCP transport its clients use, including standard input and output. Every cache a library fills at run time lives on the data volume.

What broke, and how I found it

The launch-day audit (16 May). Before the multi-channel launch I ran each of the six install commands from the website in a fresh directory, in a session with an AI assistant. Three of six, uvx, pipx and docker run, installed fine and then stopped with Error: server.py not found. The wrapper looked for the runtime by a path that exists only in a Git checkout. The package was not on PyPI yet, so nothing had been published.

Files missing from the artifact. Seven defects had one shape: something the server needed existed in the source tree and was missing from what a user installed.

  • SQL migrations were missing from the wheel. A clean install started without its schema. An outside contributor found it; the pull request waited 46 days and was merged on 27 August. Four published wheels were affected, 11.2.2 to 12.4.0.
  • Tag vocabularies and output filters were missing from the wheel and the image. Normalisation used an empty vocabulary and every save filter did nothing. Same four wheels.
  • Five runtime dependencies (fastembed, starlette, uvicorn, httpx, numpy) were listed only in requirements.txt. This is the least visible one. For five published wheels, 11.2.2 to 13.0.0, wheel users silently embedded with a different, English-only model, while container and source-installer users got FastEmbed. The same release retrieved differently by channel, with no error. I have no user report of this. I found it while investigating an outside report of high memory use. The commit that added the test calls it “the fourth instance of the same class”.
  • A test fixture listed in MANIFEST.in but ignored by Git. A local sdist check showed it as present, because my working tree contained it. The CI gate caught it. That is why the candidate is now built from a clean checkout.

Related metadata defect: wheels 11.2.2 to 13.0.4, nine wheels, declared Python 3.10 support while the code used tomllib and datetime.UTC. They never ran on 3.10. The first run of the new gate showed it on all four runner images.

The SDK bound. I resolved total-agent-memory==12.4.0 with uv, freezing the index at three moments. At 13:00 UTC on 28 July it resolved SDK 1.28.1. At 14:00 UTC it resolved 2.0.0. On 27 August it resolved 2.1.1. With the last resolution the entry point exits with AttributeError: 'Server' object has no attribute 'list_tools', because 2.0.0 dropped the decorator API I used to register tools. Channels C1, C2, C3 and C6 were affected. The published 12.4.0 image had been built on 26 May, before any 2.x release, and was fine; only new image builds would have failed. The fix was an adapter for either registration API plus the <3 bound.

An unreachable stack in the default install. Four reranking libraries were default dependencies. None was reachable in the default configuration, and each pulls in PyTorch, which on Linux means the NVIDIA CUDA wheels. I measured it again with deposited scripts, resolving for CPython 3.12 on manylinux x86_64:

  • requirements-rerank.txt: 150 packages, 3109 MiB of wheels.
  • requirements.txt alone: 100 packages, 113 MiB.
  • Seventeen of the 50 extra packages, PyTorch, Triton and the NVIDIA libraries, account for 2853 MiB.

Moving the stack to the rerank extra changed the image. Compressed download: 3061 MB (amd64) and 3187 MB (arm64) for 13.0.1, then 191 MB and 187 MB for 13.0.2. Unpacked, as Docker reports it, the arm64 image went from 5.68 GB to 0.62 GB. According to the commit message, a third-party MCP catalogue that builds servers in a sandbox had run out of disk on a CUDA wheel. I have no log of that build, so I report it as the commit says.

A related defect: the server imported chromadb and sentence_transformers at module scope, although the default configuration does not use them. An outside user reported about 1.5 GB of memory and sent a patch. Five runs of import server, before and after: median 482 MB with PyTorch loaded, 123 MB without.

The container. Two defects on 7 September, after the image workflow had passed, because it only probed HTTP. The image started only the HTTP supervisor, so a client that runs the container and talks MCP over stdio got a server that never answered. And the embedding library reads its own cache variable, so the ONNX model landed in the temporary directory and was downloaded again on every start, 240 MB per run according to the commit. The fixes were a stdio entry mode and TAM_MODEL_CACHE=/data/models.

Homebrew and Windows. The Homebrew formula needed 6 fixes from 16 May to 21 September. Homebrew rewrites install names of native libraries, and prebuilt Rust extensions had no header room for the longer name. Relocation aborted halfway and left patched libraries with invalid signatures, so the embedding runtime was killed on load. Only my own machine showed it. On 15 September a native run on Windows found five defects that no container showed: files read with the default code page, a lock file read before it was locked, an installer upgrading pip by running pip.exe, task arguments that lost paths with spaces or Cyrillic letters, and a dashboard task denied to a normal user.

A redaction rule that ate UUIDs. Release 14.6.0 extended credential redaction to every write path. One rule treated any 16 digits in four groups as a card number. Inside a random version-4 UUID this matches about once in 770; a simulation over four million UUIDs gave 5205 matches. The team server then rejected memory_save with HTTP 400. The gate went red twice on 28 September, each time on one macOS job out of 12. Two runs are all the evidence for the link, and I do not claim the rate explains them. 14.6.0 was published that morning with the defect. The fix, a standalone match plus a Luhn check, shipped in 14.7.0.

The instrument

Most of these were found by installing a built artifact somewhere clean. The test setup grew in three steps: a manual audit on 16 May, smoke tests from 26 May to 7 September (median 2.6 minutes over 15 successful runs), and a release gate from 15 September. The gate builds the candidate wheel and sdist once, then 12 native jobs install that exact wheel on Ubuntu 24.04, Windows Server 2022 and macOS 15 (Intel and Apple silicon) with Python 3.11, 3.12 and 3.13, and run an end-to-end script. Median 15.8 minutes over 31 successful runs.

Where the 25 product defects were first recorded: 14 only on my machine, seven of those in AI-assisted verification sessions. Six first in CI. Four from outside: two pull requests, one report with a patch, one third-party build service. Of 132 CI runs, 101 succeeded, 27 failed and 4 waited for approval. The 27 failures group into 14 incidents.

Lessons as a checklist

  • Treat the shared wheel as an interface. If several channels install one artifact, its contents and metadata are what every one of them depends on.
  • Test the built artifact from a clean checkout. A local build hid one defect, and the same class recurred four times before a test existed.
  • If a container has its own dependency list, compare it with the wheel metadata. Without that, my wheel and container users ran different embedding models.
  • Draw the default install by reachability. Keep optional stacks off the import path, and put an upper bound on the SDK your server registers tools through.
  • Give the container an entry point for each transport its clients use, and test that path. An HTTP-only image passes every HTTP probe and fails every stdio client.
  • Check pattern rules against identifiers your own system generates. Treat a rare red run on an unrelated change as a possible defect.

Limits and what is still open

This is one project, one maintainer and 135 days. The numbers describe this history and are not estimates for other projects. Four rules came out of it. Whether they hold for other projects needs data from other projects.

  • I coded every entry myself. I wrote the codebook first and coded all 37 entries again against it, which changed seven entries. That is a second pass by the same person, not an inter-rater check.
  • I have no telemetry. I can say which published versions held a defect and over which window, not how many people installed them.
  • Logs of 5 failed CI runs had expired. Memory figures were measured on one Apple silicon machine.
  • Open risks at 14.6.0: the image has its own file list and dependency list, only the SDK has an upper bound, no CI job starts the image in stdio mode, and the gate does not exercise C2, C3 or C4.

Paper, data and code

This is an experience report, not peer reviewed.

AI disclosure: I develop TAM with Claude Code and Codex, and the same tools helped me draft this text and run the measurement scripts. The measurements, code and conclusions are mine, and I checked the numbers against the raw data.