deps: migrate to mcp 2.x (lift the <2 pin) (#6)
Image rebuild (skip scrape) / build (push) Successful in 1h31m29s

Co-authored-by: claude <[email protected]>
This commit was merged in pull request #6.
This commit is contained in:
2026-09-10 19:50:11 -04:00
committed by claude
parent 98842d1ed6
commit e390655640
6 changed files with 52 additions and 25 deletions
+7
View File
@@ -156,6 +156,13 @@ jobs:
-t "${REGISTRY_PUSH}/${IMAGE}:${SHA_TAG}" \
-t "${REGISTRY_PUSH}/${IMAGE}:${CORPUS_TAG}" \
.
# Smoke: the image must at least import its server module before we
# publish it. mcp 2.x renamed mcp.server.fastmcp -> mcp.server.mcpserver,
# so an unpinned dep produced a green build that crash-looped in prod.
# Import is side-effect-free here (lazy singletons), so this needs no
# Ollama/Chroma.
docker run --rm --entrypoint python \
"${REGISTRY_PUSH}/${IMAGE}:latest" -c "import docs_mcp.server"
docker push "${REGISTRY_PUSH}/${IMAGE}:latest"
docker push "${REGISTRY_PUSH}/${IMAGE}:${SHA_TAG}"
docker push "${REGISTRY_PUSH}/${IMAGE}:${CORPUS_TAG}"