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
Fix pre-commit pyright and the failing build_server_card test, and address
the cubic-dev-ai review threads validated against the SEP-2127 discovery spec.
- _ServerIdentity: declare members read-only so the invariant writable-attr
protocol stops rejecting Server.version: str vs version: str | None (pyright).
- build_server_card: treat empty version as unset (Server.version defaults to
"" not None), so the required-version check fires; fix the stale test comment.
- Discovery CORS (spec MUST): allow If-None-Match, expose ETag, and answer the
OPTIONS preflight browsers send before a cross-origin conditional GET; add
"OPTIONS" to both discovery routes; update the docs table and add preflight
tests.
- Docs/tutorials: tutorial001 configures TransportSecuritySettings for the
advertised public host (default localhost protection would 421); tutorial002
creates the output directory before writing; tutorial004 resolves relative
entry URLs against the catalog URL; CatalogEntry.identifier docstring uses the
correct urn:air:{publisher}:mcp:{name} form; clarify the auth-middleware
caveat for globally-applied ASGI middleware.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 23994aca-a562-4387-b723-5c4fd4f9a1ca
0 commit comments