π The fast, Pythonic way to build MCP servers and clients.
Cull expired OAuth state from the default OAuthProxy file store (#6242)
nate nowack9c7995da3ac1
diff --git a/docs/servers/auth/oauth-proxy.mdx b/docs/servers/auth/oauth-proxy.mdxindex 73a26960a..e85f0c055 100644--- a/docs/servers/auth/oauth-proxy.mdx+++ b/docs/servers/auth/oauth-proxy.mdx@@ -815,6 +815,10 @@ On every platform, FastMCP deterministically derives `jwt_signing_key` from `ups**For production:**Configure the following parameters together: provide a unique `jwt_signing_key` (for signing FastMCP JWTs), and a shared `client_storage` backend (for storing tokens). Both are required for production deployments. Use a network-accessible storage backend like Redis or DynamoDB rather than local disk storage. **Wrap your storage in `FernetEncryptionWrapper` to encrypt sensitive OAuth tokens at rest** (see the `client_storage` parameter documentation above for examples). The keys accept any secret string and derive proper cryptographic keys using HKDF. See [OAuth Token Security](/deployment/http#oauth-token-security) and [Storage Backends](/servers/storage-backends) for complete production setup.+#### Expired state cleanup++The default file store accumulates expired entries on disk (authorization transaction state, auth codes, upstream tokens, and JTI mappings). FastMCP reaps them in the background as the proxy handles OAuth traffic, at most once an hour, and the first flow after a restart clears whatever previous runs left behind. Entries without a TTL (e.g. DCR client registrations) are left untouched, and a custom `client_storage` is never culled: expiry there is the backend's job.+### Confused Deputy Attacks<VersionBadge version="2.13.0" />diff --git a/fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py b/fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.pyindex 7c5625f18..fbc8a7bab 100644--- a/fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py+++ b/fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py@@ -18,6 +18,7 @@ production use with enterprise identity providers.from __future__ import annotations+import asyncioimport hashlibimport secretsimport time@@ -187,6 +188,16 @@ def _assertion_granted_scopes(claims: dict[str, Any]) -> list[str]:return []+def _log_cull_failure(task: asyncio.Task[None]) -> None:+ """Log an exception from a background state cull, if any."""+ if not task.cancelled() and (exc := task.exception()) is not None:+ logger.warning("Failed to cull expired OAuth proxy state: %s", exc)+++# Minimum seconds between culls of the default on-disk OAuth state store.+_STATE_CULL_INTERVAL_SECONDS = 3600.0++class OAuthProxy(OAuthProvider, ConsentMixin):"""OAuth provider that presents a DCR-compliant interface while proxying to non-DCR IDPs.@@ -594,6 +605,7 @@ class OAuthProxy(OAuthProvider, ConsentMixin):# keys get isolated directories (e.g. two servers on the same machine with# different keys won't collide). Decryption errors are treated as cache misses# rather than hard failures, so key rotation just causes re-registration.+ default_file_store: FileTreeStore | None = Noneif client_storage is None:storage_encryption_key = derive_jwt_key(high_entropy_material=jwt_signing_key.decode(),@@ -604,7 +616,7 @@ class OAuthProxy(OAuthProvider, ConsentMixin):storage_dir = settings.home / "oauth-proxy" / key_fingerprintstorage_dir.mkdir(parents=True, exist_ok=True)- file_store = FileTreeStore(+ default_file_store = FileTreeStore(data_directory=storage_dir,key_sanitization_strategy=FileTreeV1KeySanitizationStrategy(storage_dir@@ -615,11 +627,16 @@ class OAuthProxy(OAuthProvider, ConsentMixin):)client_storage = FernetEncryptionWrapper(- key_value=file_store,+ key_value=default_file_store,fernet=Fernet(key=storage_encryption_key),raise_on_decryption_error=False,)+ # The store FastMCP created itself, if any. Expired entries are only ever+ # reaped from this store: a user-provided client_storage is never culled.+ self._default_file_store: FileTreeStore | None = default_file_store+ self._cull_task: asyncio.Task[None] | None = None+ self._last_cull_started: float | None = Noneself._client_storage: AsyncKeyValue = client_storage# Cache HTTPS check to avoid repeated logging@@ -741,6 +758,37 @@ class OAuthProxy(OAuthProvider, ConsentMixin):self._upstream_authorization_endpoint,)+ def _maybe_cull_expired_state(self) -> None:+ """Reap expired entries from the default on-disk store, at most hourly.++ Called on the OAuth write paths, so a long-running server keeps its+ state directory bounded without a dedicated scheduler, and the first+ flow after a restart clears what previous runs left behind. The cull+ runs as a background task so it never delays the request that+ triggered it. A custom `client_storage` is never culled: FastMCP only+ reaps the store it created itself, and entries without a TTL (e.g.+ DCR client registrations) are left untouched.++ See https://github.com/PrefectHQ/fastmcp/issues/5718.+ """+ if self._default_file_store is None:+ return+ if self._cull_task is not None and not self._cull_task.done():+ return+ now = time.monotonic()+ if (+ self._last_cull_started is not None+ and now - self._last_cull_started < _STATE_CULL_INTERVAL_SECONDS+ ):+ return+ self._last_cull_started = now+ # Keep a strong reference: the loop only holds tasks weakly.+ self._cull_task = asyncio.get_running_loop().create_task(+ self._default_file_store.cull(),+ name="fastmcp-oauth-proxy-state-cull",+ )+ self._cull_task.add_done_callback(_log_cull_failure)+# -------------------------------------------------------------------------# Scope Management# -------------------------------------------------------------------------@@ -1132,6 +1180,7 @@ class OAuthProxy(OAuthProvider, ConsentMixin):"remember" mode, still route through /consent so the cookie lookup andSec-Fetch-Site gating can run."""+ self._maybe_cull_expired_state()# Security check: validate client's requested resource matches this server# This prevents tokens intended for one server from being used on another#@@ -1311,6 +1360,7 @@ class OAuthProxy(OAuthProvider, ConsentMixin):PKCE validation is handled by the MCP framework before this method is called."""+ self._maybe_cull_expired_state()# Look up stored code datacode_model = await self._code_store.get(key=authorization_code.code)if not code_model:@@ -1793,6 +1843,7 @@ class OAuthProxy(OAuthProvider, ConsentMixin):5. Issue new FastMCP access token6. Keep same FastMCP refresh token (unless upstream rotates)"""+ self._maybe_cull_expired_state()# Verify FastMCP refresh tokentry:refresh_payload = self.jwt_issuer.verify_token(diff --git a/fastmcp_slim/pyproject.toml b/fastmcp_slim/pyproject.tomlindex 405e5aa15..0d4624dcc 100644--- a/fastmcp_slim/pyproject.toml+++ b/fastmcp_slim/pyproject.toml@@ -75,7 +75,7 @@ client = ["fastmcp-slim[mcp]=={{ version }}","authlib>=1.6.11","beartype>=0.23.0rc2; python_version >= '3.15'",- "py-key-value-aio[filetree,memory]>=0.4.4,<0.5.0",+ "py-key-value-aio[filetree,memory]>=0.4.6,<0.5.0",]code-mode = ["pydantic-monty>=1.1,<2"]jev = ["typesafe-sdk>=0.5.7"]@@ -105,7 +105,7 @@ server = ["joserfc>=1.5.0","openapi-pydantic>=0.6.0","packaging>=24.0",- "py-key-value-aio[filetree,memory]>=0.4.4,<0.5.0",+ "py-key-value-aio[filetree,memory]>=0.4.6,<0.5.0","pyperclip>=1.9.0","python-multipart>=0.0.26","pyyaml>=6.0,<7.0",diff --git a/tests/server/auth/test_oauth_proxy_storage.py b/tests/server/auth/test_oauth_proxy_storage.pyindex 2cdac807d..c78320e6a 100644--- a/tests/server/auth/test_oauth_proxy_storage.py+++ b/tests/server/auth/test_oauth_proxy_storage.py@@ -1,5 +1,6 @@"""Tests for OAuth proxy with persistent storage."""+import asyncioimport tempfileimport warningsfrom collections.abc import AsyncGenerator@@ -11,11 +12,14 @@ from inline_snapshot import snapshotfrom key_value.aio.protocols import AsyncKeyValuefrom key_value.aio.stores.filetree import FileTreeStorefrom key_value.aio.stores.memory import MemoryStore+from mcp.server.auth.provider import AuthorizationParamsfrom mcp.shared.auth import OAuthClientInformationFullfrom pydantic import AnyUrl+from fastmcp import settingsfrom fastmcp.server.auth.auth import TokenVerifierfrom fastmcp.server.auth.oauth_proxy import OAuthProxy+from fastmcp.server.auth.oauth_proxy import proxy as proxy_moduleclass TestOAuthProxyStorage:@@ -212,3 +216,131 @@ class TestOAuthProxyStorage:"cimd_fetched_at": None,})+++def _entry_files(directory: Path) -> list[Path]:+ """On-disk entry files, excluding per-collection index files."""+ return [p for p in directory.rglob("*.json") if not p.name.endswith("-info.json")]+++class TestOAuthProxyDefaultStoreCull:+ """Expired entries in the proxy-created default file store must be reaped.++ Regression tests for https://github.com/PrefectHQ/fastmcp/issues/5718:+ the default FileTreeStore was never culled, so expired OAuth state files+ accumulated until the volume ran out of inodes.+ """++ @pytest.fixture+ def jwt_verifier(self):+ verifier = Mock()+ verifier.required_scopes = ["read", "write"]+ verifier.verify_token = AsyncMock(return_value=None)+ return verifier++ @pytest.fixture+ def isolated_home(self, tmp_path, monkeypatch):+ """Point the default storage root at a temp dir for this test."""+ monkeypatch.setattr(settings, "home", tmp_path)+ return tmp_path++ def create_proxy(self, jwt_verifier, storage=None) -> OAuthProxy:+ return OAuthProxy(+ upstream_authorization_endpoint="https://github.com/login/oauth/authorize",+ upstream_token_endpoint="https://github.com/login/oauth/access_token",+ upstream_client_id="test-client-id",+ upstream_client_secret="test-client-secret",+ token_verifier=jwt_verifier,+ base_url="https://myserver.com",+ redirect_path="/auth/callback",+ client_storage=storage,+ jwt_signing_key="test-secret",+ )++ async def _drain_cull(self, proxy: OAuthProxy) -> None:+ if proxy._cull_task is not None:+ await proxy._cull_task++ async def test_cull_reaps_expired_entries_only(self, jwt_verifier, isolated_home):+ proxy = self.create_proxy(jwt_verifier)+ store = proxy._default_file_store+ assert store is not None++ await store.put("expired", {"v": 1}, collection="c", ttl=0.05)+ await store.put("live", {"v": 2}, collection="c", ttl=3600)+ await store.put("no-ttl", {"v": 3}, collection="c")+ await asyncio.sleep(0.2)+ assert len(_entry_files(isolated_home)) == 3++ proxy._maybe_cull_expired_state()+ await self._drain_cull(proxy)++ assert len(_entry_files(isolated_home)) == 2+ assert await store.get("expired", collection="c") is None+ assert await store.get("live", collection="c") == {"v": 2}+ assert await store.get("no-ttl", collection="c") == {"v": 3}++ async def test_cull_is_noop_with_custom_storage(self, jwt_verifier, isolated_home):+ proxy = self.create_proxy(jwt_verifier, storage=MemoryStore())+ assert proxy._default_file_store is None+ proxy._maybe_cull_expired_state()+ assert proxy._cull_task is None++ async def test_construction_does_not_cull(self, jwt_verifier, isolated_home):+ proxy = self.create_proxy(jwt_verifier)+ assert proxy._cull_task is None++ async def test_cull_is_throttled_and_resumes_after_interval(+ self, jwt_verifier, isolated_home+ ):+ """A long-running server keeps culling, but at most once per interval."""+ proxy = self.create_proxy(jwt_verifier)+ store = proxy._default_file_store+ assert store is not None++ proxy._maybe_cull_expired_state()+ await self._drain_cull(proxy)+ first = proxy._cull_task++ await store.put("stale", {"v": 1}, collection="c", ttl=0.05)+ await asyncio.sleep(0.2)++ # Within the interval: no new cull.+ proxy._maybe_cull_expired_state()+ assert proxy._cull_task is first+ assert len(_entry_files(isolated_home)) == 1++ # Once the interval has passed, the next access culls again.+ assert proxy._last_cull_started is not None+ proxy._last_cull_started -= proxy_module._STATE_CULL_INTERVAL_SECONDS+ proxy._maybe_cull_expired_state()+ assert proxy._cull_task is not first+ await self._drain_cull(proxy)+ assert _entry_files(isolated_home) == []++ async def test_authorize_triggers_cull(self, jwt_verifier, isolated_home):+ """The OAuth write path reaps state left behind by a previous run."""+ first = self.create_proxy(jwt_verifier)+ store = first._default_file_store+ assert store is not None+ await store.put("stale", {"v": 1}, collection="c", ttl=0.05)+ await asyncio.sleep(0.2)++ proxy = self.create_proxy(jwt_verifier)+ client = OAuthClientInformationFull(+ client_id="test-client",+ client_secret="test-secret",+ redirect_uris=[AnyUrl("http://localhost:12345/callback")],+ )+ await proxy.register_client(client)+ params = AuthorizationParams(+ redirect_uri=AnyUrl("http://localhost:12345/callback"),+ redirect_uri_provided_explicitly=True,+ state="s",+ code_challenge="c" * 43,+ scopes=["read"],+ )+ await proxy.authorize(client, params)+ await self._drain_cull(proxy)++ assert await store.get("stale", collection="c") is Nonediff --git a/uv.lock b/uv.lockindex b035e84bf..db7df8b48 100644--- a/uv.lock+++ b/uv.lock@@ -43,23 +43,23 @@ members = [[[package]]name = "aiofile"-version = "3.9.0"+version = "3.8.8"source = { registry = "https://pypi.org/simple" }resolution-markers = ["python_full_version < '3.11' and sys_platform == 'win32'","python_full_version < '3.11' and sys_platform != 'win32'",]dependencies = [- { name = "caio" },+ { name = "caio", version = "0.9.25", source = { registry = "https://pypi.org/simple" } },]-sdist = { url = "https://files.pythonhosted.org/packages/67/e2/d7cb819de8df6b5c1968a2756c3cb4122d4fa2b8fc768b53b7c9e5edb646/aiofile-3.9.0.tar.gz", hash = "sha256:e5ad718bb148b265b6df1b3752c4d1d83024b93da9bd599df74b9d9ffcf7919b", size = 17943, upload-time = "2024-10-08T10:39:35.846Z" }+sdist = { url = "https://files.pythonhosted.org/packages/41/6d/e03ef9694346a55da965538f3e28461bd9fc71e21f997269d03b3cfc8755/aiofile-3.8.8.tar.gz", hash = "sha256:41f3dc40bd730459d58610476e82e5efb2f84ae6e9fa088a9545385d838b8a43", size = 19456, upload-time = "2023-08-22T12:48:38.88Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/50/25/da1f0b4dd970e52bf5a36c204c107e11a0c6d3ed195eba0bfbc664c312b2/aiofile-3.9.0-py3-none-any.whl", hash = "sha256:ce2f6c1571538cbdfa0143b04e16b208ecb0e9cb4148e528af8a640ed51cc8aa", size = 19539, upload-time = "2024-10-08T10:39:32.955Z" },+ { url = "https://files.pythonhosted.org/packages/76/ea/b6aae3275bb0991c43fff401e7b8db198047b6f692e8954520ec7aed3652/aiofile-3.8.8-py3-none-any.whl", hash = "sha256:41e8845cce055779cd77713d949a339deb012eab605b857765e8f8e52a5ed811", size = 19866, upload-time = "2023-08-22T12:48:37.144Z" },][[package]]name = "aiofile"-version = "3.11.1"+version = "3.12.3"source = { registry = "https://pypi.org/simple" }resolution-markers = ["python_full_version >= '3.15' and sys_platform == 'win32'",@@ -73,11 +73,11 @@ resolution-markers = ["(python_full_version >= '3.11' and python_full_version < '3.13' and sys_platform != 'emscripten' and sys_platform != 'win32') or (python_full_version == '3.11.*' and sys_platform == 'emscripten')",]dependencies = [- { name = "caio" },+ { name = "caio", version = "0.12.10", source = { registry = "https://pypi.org/simple" } },]-sdist = { url = "https://files.pythonhosted.org/packages/48/41/2fea7e193e061ce54eacc3b7bc0e6a99e4fcff43c78cf0a76dd781ed8334/aiofile-3.11.1.tar.gz", hash = "sha256:1f91912c6643d2a4e49ca4ae3514f0bf3867ce948a36d99a6411b8f4755f4cf9", size = 19342, upload-time = "2026-05-16T08:18:33.538Z" }+sdist = { url = "https://files.pythonhosted.org/packages/14/31/edb06aabd8f8f0b56d659f30800795f40b93cba96be946ce179f6931e3a5/aiofile-3.12.3.tar.gz", hash = "sha256:caa6aa746b5e47e2165f7abd741b6415e49cf4d44fddc0f61844612cc3924d41", size = 21600, upload-time = "2026-08-04T22:59:27.171Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/67/cd/0d76dfc5de72bde52f55f53e925c7d152d9c7906634ec1e0cbc7e8d4ad93/aiofile-3.11.1-py3-none-any.whl", hash = "sha256:ce77d14ac07f77bc2b757834a5c129321f3f705c474593deed5ab209079a52c9", size = 20446, upload-time = "2026-05-16T08:18:32.051Z" },+ { url = "https://files.pythonhosted.org/packages/4e/79/6e45e778c4c3cab39e0937b007b720c15f76c50c6453d153282d0fcc3588/aiofile-3.12.3-py3-none-any.whl", hash = "sha256:5c1bcc9e929c50834608e8cc1a4cc1d7503eb60c15a535b779fd39e2f372c017", size = 22122, upload-time = "2026-08-04T22:59:25.838Z" },][[package]]@@ -314,6 +314,10 @@ wheels = [name = "caio"version = "0.9.25"source = { registry = "https://pypi.org/simple" }+resolution-markers = [+ "python_full_version < '3.11' and sys_platform == 'win32'",+ "python_full_version < '3.11' and sys_platform != 'win32'",+]sdist = { url = "https://files.pythonhosted.org/packages/92/88/b8527e1b00c1811db339a1df8bd1ae49d146fcea9d6a5c40e3a80aaeb38d/caio-0.9.25.tar.gz", hash = "sha256:16498e7f81d1d0f5a4c0ad3f2540e65fe25691376e0a5bd367f558067113ed10", size = 26781, upload-time = "2025-12-26T15:21:36.501Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/6a/80/ea4ead0c5d52a9828692e7df20f0eafe8d26e671ce4883a0a146bb91049e/caio-0.9.25-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ca6c8ecda611478b6016cb94d23fd3eb7124852b985bdec7ecaad9f3116b9619", size = 36836, upload-time = "2025-12-26T15:22:04.662Z" },@@ -339,6 +343,67 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/86/93/1f76c8d1bafe3b0614e06b2195784a3765bbf7b0a067661af9e2dd47fc33/caio-0.9.25-py3-none-any.whl", hash = "sha256:06c0bb02d6b929119b1cfbe1ca403c768b2013a369e2db46bfa2a5761cf82e40", size = 19087, upload-time = "2025-12-26T15:22:00.221Z" },]+[[package]]+name = "caio"+version = "0.12.10"+source = { registry = "https://pypi.org/simple" }+resolution-markers = [+ "python_full_version >= '3.15' and sys_platform == 'win32'",+ "python_full_version >= '3.15' and sys_platform != 'win32'",+ "python_full_version == '3.14.*' and sys_platform == 'win32'",+ "python_full_version == '3.14.*' and sys_platform != 'win32'",+ "python_full_version == '3.13.*' and sys_platform == 'win32'",+ "python_full_version == '3.13.*' and sys_platform != 'win32'",+ "python_full_version == '3.12.*' and sys_platform == 'emscripten'",+ "python_full_version >= '3.11' and python_full_version < '3.13' and sys_platform == 'win32'",+ "(python_full_version >= '3.11' and python_full_version < '3.13' and sys_platform != 'emscripten' and sys_platform != 'win32') or (python_full_version == '3.11.*' and sys_platform == 'emscripten')",+]+sdist = { url = "https://files.pythonhosted.org/packages/66/66/a36d1367bd5ef70b6b97b2fb502f682106555e9e49e229f35c0a49d154d5/caio-0.12.10.tar.gz", hash = "sha256:5cecc44c04d5c6291d98b61bdba999f49a7e58dff2d782b4bb0642dc6f7ecf58", size = 84118, upload-time = "2026-10-22T21:35:06.294Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1b/d0/bad818bd8657b4cce0b9541f2ce85ba60eb6d1de4c16d9d56521a71b89a1/caio-0.12.10-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1140246b2bdd2e46c33826464fee66cc2244345e38462d96b8055081acca213e", size = 41978, upload-time = "2026-10-22T21:34:14.483Z" },+ { url = "https://files.pythonhosted.org/packages/f3/10/a7f34badb62fcfe93e7bf8a3825a2cf1ac5065b5f7bab5f69d4c8e72997f/caio-0.12.10-cp310-cp310-manylinux_2_34_aarch64.whl", hash = "sha256:fbb4da4f763e03838106de1050e0db0d5e477008bab1bb26da1f0928b50d185f", size = 160109, upload-time = "2026-10-22T21:34:15.815Z" },+ { url = "https://files.pythonhosted.org/packages/dd/ec/4609b5e0286a4275e1cf80d4915946a36f12d20c26ef51d96acd2761310b/caio-0.12.10-cp310-cp310-manylinux_2_34_x86_64.whl", hash = "sha256:369008753eb267b77ffec71791e3bf16e4c1db89e77ba176aa13ee83a19ec0b2", size = 156624, upload-time = "2026-10-22T21:34:17.237Z" },+ { url = "https://files.pythonhosted.org/packages/b9/24/f7ce50cd8c90083534db6b5a2438458da04e34317d13de2278e25dce76c0/caio-0.12.10-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:56fa63a876e94f1d52bcc690ef1179ba3d30d7b95fd14284b1ac2ae1e6effc15", size = 157630, upload-time = "2026-10-22T21:34:18.445Z" },+ { url = "https://files.pythonhosted.org/packages/5b/ef/708e2fa732e1cc123249099ddcbe29037cf1d14b0adb9c3b0f7a7366f7d1/caio-0.12.10-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8a31733ad504fb4ce0fbe95625d1017a7aa54148afc13e674d36d0a8144fdf49", size = 156288, upload-time = "2026-10-22T21:34:19.65Z" },+ { url = "https://files.pythonhosted.org/packages/45/ba/f545a34076181400dd0ad2b9883c4a5eeae85d142daf0f5ac2e3b718604f/caio-0.12.10-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f09366a7eaaa23f7dbf19c14802a3ba57b72e9efec463b89a8ff77bcbe3c8c09", size = 48895, upload-time = "2026-10-22T21:34:20.962Z" },+ { url = "https://files.pythonhosted.org/packages/28/e3/fc6c49b78d4168510f183ca502d9f0529b9b26db185e871d5331f3c57d40/caio-0.12.10-cp311-cp311-manylinux_2_34_aarch64.whl", hash = "sha256:9f5add2fea913a7dfc0e196b76c8d16c059b04a6c1651ae0118e86be11ecd9ad", size = 162811, upload-time = "2026-10-22T21:34:22.023Z" },+ { url = "https://files.pythonhosted.org/packages/5e/fa/29d14e56ab9aa18cbacce84cfa2d29c61befce876d24bb818412524c2c64/caio-0.12.10-cp311-cp311-manylinux_2_34_x86_64.whl", hash = "sha256:2d7f65d34a27a0969db7fb810a6beeebea13327a37f7dae3a39da64fd2534b6e", size = 159023, upload-time = "2026-10-22T21:34:23.296Z" },+ { url = "https://files.pythonhosted.org/packages/43/58/5f87b9a03218bdd8abe84f32e815712569ae765f4c635975c563eb0d2eb2/caio-0.12.10-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:ca2fd82729aba943e190aefffd9dc96d49a1a401d466ea9743e6f54fa20f0e2f", size = 160341, upload-time = "2026-10-22T21:34:24.512Z" },+ { url = "https://files.pythonhosted.org/packages/27/fb/96bd3812166292f395a1e8fc217f75aac01eca476b95e13c0b1ed46480e3/caio-0.12.10-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:2786535292cbd7cf1f13fb13d94f7173e71cd353bec4cb2e3de13d94b7615a79", size = 158710, upload-time = "2026-10-22T21:34:25.755Z" },+ { url = "https://files.pythonhosted.org/packages/c5/ba/689a44c2f0d8ea68dfe2d721699fa81601dcc83f238102df22feb31697a0/caio-0.12.10-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:c396c9a850681bf51dcc9943468260f6fa7861498f84b5f3b9413e9d3283cbec", size = 49062, upload-time = "2026-10-22T21:34:27.004Z" },+ { url = "https://files.pythonhosted.org/packages/db/20/21fd0dbf1b2b0211f3a451587b6d63d3ad99385487323f2b9062d6e42ff8/caio-0.12.10-cp312-cp312-manylinux_2_34_aarch64.whl", hash = "sha256:93bb3a3f0bd684ac6b559c33a84817395c4d2c75d98dae2b7c40c57acce83737", size = 164716, upload-time = "2026-10-22T21:34:28.119Z" },+ { url = "https://files.pythonhosted.org/packages/95/00/8900d474b5e3285635865c9d5bdc71ad822f7932a7f90cd800fc837c1e67/caio-0.12.10-cp312-cp312-manylinux_2_34_x86_64.whl", hash = "sha256:70d5032f3e0b2dbeceb12d418951415e936cff7f33132ac9f7759937ff1916f3", size = 162411, upload-time = "2026-10-22T21:34:29.402Z" },+ { url = "https://files.pythonhosted.org/packages/6e/2c/0704c708eb255f2995fc9830a969e883338c3de204e1eac726ec337a7e9c/caio-0.12.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:347ff5321a23675ed3b2396bbc6b7220ec5531303395c6b0135ed6cda04277cd", size = 162211, upload-time = "2026-10-22T21:34:30.617Z" },+ { url = "https://files.pythonhosted.org/packages/67/52/5b9ccb8205c3d3d870540f0ffea07977b68a9b018c91c43fae0bdb780954/caio-0.12.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:bd3cb22b0c5ca195b35c2b7d57892c23cc13d969f24c44fea876af2cfee02e7a", size = 161998, upload-time = "2026-10-22T21:34:31.934Z" },+ { url = "https://files.pythonhosted.org/packages/84/3e/98ddc781ae6d76407b74f33136f838e444df41a1a43d80373da01da47bbb/caio-0.12.10-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6b8e0724415ae86889df59af2d44fd6a531851ebc62c9cfdb1cc8235c929524d", size = 49054, upload-time = "2026-10-22T21:34:33.252Z" },+ { url = "https://files.pythonhosted.org/packages/8b/d6/9851c6b24674ef72054c7b05569bd444f1358955c19ba5b5f7e15fa64be6/caio-0.12.10-cp313-cp313-manylinux_2_34_aarch64.whl", hash = "sha256:4e72602d4c348d105c9e46dd300b85df3fd3e857e2068370847f5e29879181b5", size = 164861, upload-time = "2026-10-22T21:34:34.472Z" },+ { url = "https://files.pythonhosted.org/packages/85/9a/1f6eac05eb23284c834c08c17cc5f39fafe3754f1d2df94bcf5a2cb93179/caio-0.12.10-cp313-cp313-manylinux_2_34_x86_64.whl", hash = "sha256:1d8b6e9275d8f9608b8ecb4b97189e7f1d0b8ed948fb552eb06518d6342a1e53", size = 162592, upload-time = "2026-10-22T21:34:35.566Z" },+ { url = "https://files.pythonhosted.org/packages/1a/be/4bb0538aa4c953c4681c7b309a9cb452eb91640e6b62f250b464f91dfad4/caio-0.12.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cff7a239334b36c4dc82a0ab69aa3244188e5c9e2c30a242d81e4502520f2b1b", size = 162324, upload-time = "2026-10-22T21:34:36.977Z" },+ { url = "https://files.pythonhosted.org/packages/0a/9a/290190821dbc29fccb0ad96e51a7f573394df621da547cb13701de685805/caio-0.12.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a9645aeed1cdeeff34ca78442e6b274c0f801876a6bf0991724d92b7d639655", size = 162171, upload-time = "2026-10-22T21:34:38.173Z" },+ { url = "https://files.pythonhosted.org/packages/39/9d/2a2177a43901f69ef120fb0dfe4a7dc6938e57a086da3ecdeacc12a05635/caio-0.12.10-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:edda39ac24b4cec74486a06afe7499fc9ddb2c3d5cb98494b2c9fdf95ed7aecd", size = 42798, upload-time = "2026-10-22T21:34:39.444Z" },+ { url = "https://files.pythonhosted.org/packages/b9/0a/5e404a09363c71dfb5f7c20234ee31dc9ad75c7072dc868b6cc5be6f9af3/caio-0.12.10-cp314-cp314-macosx_26_0_arm64.whl", hash = "sha256:3b9c6e6355267f2eccd23e1a17ec2f78dce02ab00b10276999ff7a4615512952", size = 42033, upload-time = "2026-10-22T21:34:40.448Z" },+ { url = "https://files.pythonhosted.org/packages/06/94/41549be5a09a0441f1c1313d5eeb8b60b08034c89cd2c0b5cfeb6a9b9111/caio-0.12.10-cp314-cp314-manylinux_2_34_aarch64.whl", hash = "sha256:a2b897245d5e6593a39ea9a52c7b372efc41e5a746c46a2985bdf94622f273fe", size = 165369, upload-time = "2026-10-22T21:34:41.513Z" },+ { url = "https://files.pythonhosted.org/packages/28/47/f272ce0eed9700749934823086434a94d9bea51555724188d8ee660a7fd4/caio-0.12.10-cp314-cp314-manylinux_2_34_x86_64.whl", hash = "sha256:40e84b8679f44bee5c2b7cc7093719e15616b6752560809896dc15a8667cd69f", size = 162620, upload-time = "2026-10-22T21:34:42.671Z" },+ { url = "https://files.pythonhosted.org/packages/65/ae/644e7e72a81c4d8ce31dac9865b2a6b38fdc4c56a1418cc2d4d55591be20/caio-0.12.10-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ccd4efddafd48018d30cd560f7c393d177fe01365ee0dcf0bc88528f220732ed", size = 162986, upload-time = "2026-10-22T21:34:43.801Z" },+ { url = "https://files.pythonhosted.org/packages/63/2a/557a90ae71f8411a2cfa0238ad70bddb60178133b7eb41e3fe8e8c854235/caio-0.12.10-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2138670dd6cab64bd29cfcbd6a7259c0c21646c4dc86a4ec12de907210a2aba9", size = 162258, upload-time = "2026-10-22T21:34:45.271Z" },+ { url = "https://files.pythonhosted.org/packages/78/1a/1ffea8df50383d5bc468e94d2b45d1c458f965b80bb12ad28891d0a55266/caio-0.12.10-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:79a4e0000dd92b1e4e7842fca99fdaa5fd0259dd33a9892741e7126e74656c49", size = 42801, upload-time = "2026-10-22T21:34:46.485Z" },+ { url = "https://files.pythonhosted.org/packages/f0/59/43da115afd82281312166711ceff5b7ca08d53f79a8955d2e22ac9968eca/caio-0.12.10-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:6fff1f609e54a2e007b6c5c0933f4782ecbf8b6f9144e0930e2dcd2e7440c637", size = 186884, upload-time = "2026-10-22T21:34:47.611Z" },+ { url = "https://files.pythonhosted.org/packages/fa/5d/708aed113a2ae829a265b5ce030bab52ff0e41339cc6047f29bb0b15dfdf/caio-0.12.10-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:925b938bcdf09d1c3df2b6ddd534004b616451ef1810e47f6a63257365376b25", size = 182799, upload-time = "2026-10-22T21:34:48.86Z" },+ { url = "https://files.pythonhosted.org/packages/a1/c3/8de2c1c89548902a389406560e67930333984194217d5bcef6129ff7f18a/caio-0.12.10-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1ebcac2a14e045aa0a4f63824264a4a845c6b1ac9074d5d673c52ef564a1ada6", size = 185097, upload-time = "2026-10-22T21:34:50.035Z" },+ { url = "https://files.pythonhosted.org/packages/94/43/98997e24fa52f1e6a2a808e446693702773830a863a036a5e727024e7aa0/caio-0.12.10-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:39e91aab7d0a5f0cac5930562d751e9938ceef1c7ae18477a5689a4e437eada1", size = 182593, upload-time = "2026-10-22T21:34:51.256Z" },+ { url = "https://files.pythonhosted.org/packages/c3/17/78046176bc3572430d03bab1b9e82966bc5b9a28d27c41e6764a20144044/caio-0.12.10-cp315-cp315-macosx_26_0_arm64.whl", hash = "sha256:c0b52bd6fd006d2d07713025f0e1cad61ebd12342f86bfa47e2eff239fbdd01f", size = 42039, upload-time = "2026-10-22T21:34:52.646Z" },+ { url = "https://files.pythonhosted.org/packages/ea/ed/14a90cfe02f14813674a1cc91ff2fad9b0d1bb98260be09b987f579baa28/caio-0.12.10-cp315-cp315-manylinux_2_34_aarch64.whl", hash = "sha256:b7a42ef7379e36e99cc6990aa62465919a3be3fb1f049a40e5aef29fbbd859e1", size = 166510, upload-time = "2026-10-22T21:34:53.703Z" },+ { url = "https://files.pythonhosted.org/packages/c2/b1/9fbeafd6aae00cc0dae96d190cc4fe6e23d20ecd4f26e970878611761fdb/caio-0.12.10-cp315-cp315-manylinux_2_34_x86_64.whl", hash = "sha256:89fe0e3c849a07aba1f76012a50eaf4fb2eaed0398c01bd43912a1bd0f4ab5eb", size = 163501, upload-time = "2026-10-22T21:34:54.988Z" },+ { url = "https://files.pythonhosted.org/packages/34/81/2342f17ab96a7b5d3666cc7dccea59728c4d421e7c954e2937cd817c3be5/caio-0.12.10-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:21b04f6722884e5fb19690743772875b34306e5ba68d9ecabf7454193bb5caab", size = 164139, upload-time = "2026-10-22T21:34:56.201Z" },+ { url = "https://files.pythonhosted.org/packages/17/b3/e15cfdc902a13d885fa16481c7d01ad04de7b50e0195b9dd5e219ce07614/caio-0.12.10-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:a04ac9769fd8eddc1c0ca6308f0f6e668a86cf8d577770c11d85d0aeb584fcf4", size = 163137, upload-time = "2026-10-22T21:34:57.402Z" },+ { url = "https://files.pythonhosted.org/packages/49/ad/7fda5be8557afa8833ea65ebb29feaeeb96cb2b3373fe3220fe1e6899260/caio-0.12.10-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:c8fc80a37f08bba4c2f108277b6eabba564f74963a1a6cab01e50f9ae4434681", size = 42800, upload-time = "2026-10-22T21:34:58.494Z" },+ { url = "https://files.pythonhosted.org/packages/0d/e0/e2692eeb6841614f60ec099eac3c9b10a00dac74adf7321f442a2291ef8d/caio-0.12.10-cp315-cp315t-manylinux_2_34_aarch64.whl", hash = "sha256:3e3799d09b08401e83c30c671f6fa1e1227f6346a3b1336f24cb94c5a8a82b64", size = 187471, upload-time = "2026-10-22T21:34:59.585Z" },+ { url = "https://files.pythonhosted.org/packages/cc/a8/2c3a0cd781732057ab6a8023ef0fe14017b29ef75259295df8f585e3dfba/caio-0.12.10-cp315-cp315t-manylinux_2_34_x86_64.whl", hash = "sha256:ea2e0ea832d36c1e50ab730ba304153f34eb7dc2300b1285fc7cdfae1f1f4075", size = 183526, upload-time = "2026-10-22T21:35:00.764Z" },+ { url = "https://files.pythonhosted.org/packages/62/e2/9f32db16441875afaa2a8a27d9734c2c8421f259163d7d814528160fa6c8/caio-0.12.10-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8d1071f8cb5d23c8aeccffe36c50a17d32257cddbf913b7e9b6fb524ba42d7a8", size = 185740, upload-time = "2026-10-22T21:35:02.059Z" },+ { url = "https://files.pythonhosted.org/packages/0d/7d/17836b477a1e57a648b90f16a27ebd367d686a02e5b2a4e72b53ae5ad7fe/caio-0.12.10-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:2a54ddadb7db4eab50bfc8b34f36fcf6763e9007f86b92f7cd03f07b542e891e", size = 183396, upload-time = "2026-10-22T21:35:03.492Z" },+ { url = "https://files.pythonhosted.org/packages/5c/c3/1c44005ec4d4c3f7c51b707308efe7836ee16c466f4ff2e2a6f2089eceee/caio-0.12.10-py3-none-any.whl", hash = "sha256:b34a5483b987d207348ebbf86921bc42f08abcde833b91e0caa8760c7daa2f03", size = 26166, upload-time = "2026-10-22T21:35:04.842Z" },+]+[[package]]name = "certifi"version = "2026.10.19"@@ -1117,8 +1182,8 @@ requires-dist = [{ name = "packaging", marker = "extra == 'server'", specifier = ">=24.0" },{ name = "platformdirs", specifier = ">=4.0.0" },{ name = "prefab-ui", marker = "extra == 'apps'", specifier = ">=0.18.0" },- { name = "py-key-value-aio", extras = ["filetree", "memory"], marker = "extra == 'client'", specifier = ">=0.4.4,<0.5.0" },- { name = "py-key-value-aio", extras = ["filetree", "memory"], marker = "extra == 'server'", specifier = ">=0.4.4,<0.5.0" },+ { name = "py-key-value-aio", extras = ["filetree", "memory"], marker = "extra == 'client'", specifier = ">=0.4.6,<0.5.0" },+ { name = "py-key-value-aio", extras = ["filetree", "memory"], marker = "extra == 'server'", specifier = ">=0.4.6,<0.5.0" },{ name = "pydantic", extras = ["email"], specifier = ">=2.12.0" },{ name = "pydantic-monty", marker = "extra == 'code-mode'", specifier = ">=1.1,<2" },{ name = "pydantic-settings", specifier = ">=2.0.0" },@@ -2142,22 +2207,22 @@ wheels = [[[package]]name = "py-key-value-aio"-version = "0.4.5"+version = "0.4.6"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "beartype", version = "0.22.9", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" },{ name = "beartype", version = "0.23.0rc2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" },{ name = "typing-extensions" },]-sdist = { url = "https://files.pythonhosted.org/packages/fb/e2/d689d922894a7ecde73b6daeaf9b13dab5aae06fe6aaaf7514722644d382/py_key_value_aio-0.4.5.tar.gz", hash = "sha256:c6563a2c6abe5da5e20f4f9e875c2a9b425a2244a54fadbf46cf140a9eea45d7", size = 107547, upload-time = "2026-05-27T16:37:08.107Z" }+sdist = { url = "https://files.pythonhosted.org/packages/ca/99/c346e3474853801ec5ecf4c3ee60cfc6060327ebc31424df4e346620dde4/py_key_value_aio-0.4.6.tar.gz", hash = "sha256:267c03c3e24cb99d3097612f8a5cfd8e11785c6a2975e272db0e303ea1850bfd", size = 112876, upload-time = "2026-09-18T15:29:52.002Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/f6/95/b8ba862968712caa12a19666175334fa979e1f198b896a430adb3bacfe87/py_key_value_aio-0.4.5-py3-none-any.whl", hash = "sha256:ab862adbcb8c72547d1c57821f22cbbb71ab86509039c96f36e914e0336c8dd7", size = 170005, upload-time = "2026-05-27T16:37:06.629Z" },+ { url = "https://files.pythonhosted.org/packages/9a/46/12871550fb0613d149144bb9d41f22680d5f46717bc45a76eb5798c20c3f/py_key_value_aio-0.4.6-py3-none-any.whl", hash = "sha256:820b30c7959fc738ea3d00160cdb10cd258f51e38737b2add530defeea1ded77", size = 171289, upload-time = "2026-09-18T15:29:50.665Z" },][package.optional-dependencies]filetree = [- { name = "aiofile", version = "3.9.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },- { name = "aiofile", version = "3.11.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },+ { name = "aiofile", version = "3.8.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },+ { name = "aiofile", version = "3.12.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },{ name = "anyio" },]memory = [