You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polish items deferred out of PRs adcontextprotocol#246/adcontextprotocol#247 during review.
auth.py: SyncTokenValidator + AsyncTokenValidator Protocols replace
the Callable[...] alias (TokenValidator = SyncTokenValidator |
AsyncTokenValidator). Fixes mypy narrowing for async validators.
constant_time_token_match uses TypeVar so return preserves value type.
auth.py: validator_from_token_map helper — takes a raw-token to
Principal map, returns a SyncTokenValidator that hashes at
construction. Plaintext tokens NOT retained in the closure.
migrate/v3_to_v4.py: --apply refuses on dirty git tree,
--allow-dirty overrides. Fails safe when git unavailable or
not-a-repo so CI sandboxes aren't blocked.
migrate/v3_to_v4.py: REPORT_SCHEMA_VERSION=1 module constant;
top-level schema_version key in JSON output. Stable wire contract
for CI scripts/editors.
+10 tests (2008 -> 2055). mypy clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments