Backend: mcp 1.30, uv 0.13 and dnspython 2.9 for their advisories; MCP tokens checked against the resource URL

This commit is contained in:
2026-10-28 08:42:07 +01:00
parent 9ed2f5fbea
commit 439daf5655
3 changed files with 34 additions and 30 deletions
+4
View File
@@ -71,6 +71,9 @@ class _JWTVerifier:
client_id=client_id,
scopes=[security.MCP_SCOPE],
subject=str(payload.get("sub", "")),
# `decode_oauth_token` has checked the audience; the SDK compares
# this against its own resource URL as well.
resource=settings.mcp_resource,
)
@@ -170,6 +173,7 @@ def build_http_app(app: object) -> ASGIApp:
issuer_url=AnyHttpUrl(settings.oauth_issuer),
resource_server_url=AnyHttpUrl(settings.mcp_resource),
required_scopes=None,
validate_token_resource=True,
)
server.mcp.settings.transport_security = _transport_security()
# The SDK only takes a verifier through its constructor, and the instance is
+2 -2
View File
@@ -65,12 +65,12 @@ dependencies = [
# The `inject` node's cron. Imported where it is used, behind a message
# that cannot fire while this line is here.
"croniter>=1.3.0",
"mcp>=1.29,<2",
"mcp>=1.30,<2",
"fluksio-worker>=0.1,<0.2",
# The Modules screen installs node code's packages with it, into a venv of
# the user's own. Present in the image; a pip install would otherwise have
# to find one on PATH, and quietly fall back to the engine's interpreter.
"uv>=0.5",
"uv>=0.13.4",
# `fluksio status` draws with it, and textual is built on it — named
# anyway, because a command that imports it should say so.
"rich>=13",