From 9dbdaaf20fda05c4631b767a71cf2a85cc1cb254 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 15:44:57 +0000 Subject: [PATCH] fix(deps): declare jsonschema as a runtime dependency server/tools.py imports jsonschema to validate lean_verify's result against the schema it advertises, but no runtime dependency declared it. It installed only because mcp requires it. The contract extra, which #547 removes, was the one place it was ever named. Declare it explicitly, at the >=4.20 floor mcp already requires, as the project does for jinja2 and python-multipart. uv.lock gains only the jsonschema lines; `uv lock --check` passes. --- pyproject.toml | 5 +++++ uv.lock | 2 ++ 2 files changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 351b0ea..1b9718d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -245,6 +245,11 @@ dependencies = [ # >=0.0.18 to close CVE-2024-53981 (DoS via crafted multipart). # License: Apache-2.0. "python-multipart>=0.0.18", + # jsonschema: validates lean_verify's result against the schema it + # advertises (``server/tools.py``), at import time of the server. + # Already a transitive dep via mcp, at the same >=4.20 floor; + # declared explicitly. License: MIT. + "jsonschema>=4.20", # faiss-cpu: in-process flat ANN index for the Tier-2 semantic- # query cache (E08_S03). ``IndexFlatIP`` over L2-normalized # BGE-M3 vectors yields cosine via inner product. ~1000-entry diff --git a/uv.lock b/uv.lock index f0d6dc8..da1a657 100644 --- a/uv.lock +++ b/uv.lock @@ -48,6 +48,7 @@ dependencies = [ { name = "faiss-cpu" }, { name = "fastapi" }, { name = "jinja2" }, + { name = "jsonschema" }, { name = "kuzu" }, { name = "lancedb" }, { name = "latex2mathml" }, @@ -96,6 +97,7 @@ requires-dist = [ { name = "fastapi", specifier = ">=0.115" }, { name = "httpx", marker = "extra == 'dev'", specifier = ">=0.27" }, { name = "jinja2", specifier = ">=3.1.3" }, + { name = "jsonschema", specifier = ">=4.20" }, { name = "jsonschema", marker = "extra == 'contract'", specifier = ">=4.18" }, { name = "kuzu", specifier = "==0.11.3" }, { name = "lancedb", specifier = ">=0.30.2,<0.35" },