Repository navigation
fix(run/mcp-server): pin uv image, update to Python 3.14 & fastmcp 4.2.6, cast PORT to int - #15000
Open
wietsevenema wants to merge 1 commit into
Open
wietsevenema wants to merge 1 commit into
wietsevenema wants to merge 1 commit into
Conversation
Contributor
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
…2.6, cast PORT to int
- Pin uv in Dockerfile to ghcr.io/astral-sh/uv:0.13.10 instead of :latest.
- Update pyproject.toml and README.md from EOL Python 3.10 to >=3.14 (matching FROM python:3.14-slim).
- Bump fastmcp to 4.2.6 (and required opentelemetry-* to 1.45.2) and regenerate uv.lock.
- Cast PORT to int in server.py (int(os.getenv('PORT', 8080))) to fix uvicorn's %d startup logging TypeError.
wietsevenema
force-pushed
the
fix/run-mcp-server-deps
branch
from
November 27, 2026 15:22
e5ceac0 to
3565169
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates the Cloud Run remote MCP server sample (
run/mcp-server/) to keep its dependencies current, pinned, and aligned with the Dockerfile and tutorial:uvinDockerfile: Replaceghcr.io/astral-sh/uv:latestwithghcr.io/astral-sh/uv:0.13.10.>=3.14: Alignpyproject.tomlandREADME.mdwithFROM python:3.14-slim(moving off EOL Python 3.10).fastmcpto4.2.6: Updatefastmcp(and its requiredopentelemetry-*==1.45.2dependency) inpyproject.tomland regenerateuv.lock.PORTtointinserver.py: Passport=int(os.getenv("PORT", 8080))so uvicorn logs cleanly on startup without a%dformatTypeError.Testing
run/mcp-server/from source to Cloud Run (--no-allow-unauthenticated).python:3.14-slim,uv:0.13.10,fastmcp==4.2.6) and startup logs (Uvicorn running on http://0.0.0.0:8080, no logging errors).addandsubtracttool calls viagcloud run services proxyanduv run test_server.py.