Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelcontextprotocol/registry
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.8.2
Choose a base ref
...
head repository: modelcontextprotocol/registry
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.3
Choose a head ref
  • 3 commits
  • 6 files changed
  • 2 contributors

Commits on Oct 23, 2026

  1. chore(deploy): promote production to 1.8.2 (#1729)

    Update the production registry image from 1.8.1 to 1.8.2. Merging this
    PR triggers the production deployment workflow and applies the
    infrastructure code on main, including the production-only backup
    repair, removal of the retired K8up Schedule, and Grafana initial-admin
    cleanup.
    
    Merge only after v1.8.2 has been published and its Release workflow has
    successfully built and pushed
    ghcr.io/modelcontextprotocol/registry:1.8.2. Publishing the release
    alone is not sufficient. Verify staging and CI are green for the chosen
    release commit before promotion; main has received UI changes since the
    earlier release assessment.
    
    Validation: rebased on current main; the diff contains only the
    image-tag change and passes git diff --check. Earlier production
    previews of this image-tag change and the infrastructure repair showed
    no database migrations, database replacements, or backup-bucket changes.
    The K8up follow-up fix is merged.
    
    After deployment, verify the production version, API health/listing
    endpoints, registry and Grafana rollouts, and backup job health.
    Application rollback is to restore imageTag 1.8.1. This PR does not
    publish a release or enable auto-merge.
    rdimitrov authored Oct 23, 2026
    Configuration menu
    Copy the full SHA
    82441f0 View commit details
    Browse the repository at this point in the history
  2. fix(publish): correct misleading org-namespace guidance in 403 and do…

    …cs (#1483)
    
    ## The problem
    
    When a publish is refused for an `io.github.*` namespace, the 403 tells
    you to make your GitHub organization membership public:
    
    > If you're trying to publish to a GitHub organization, you may need to
    make your organization membership public in your GitHub settings:
    https://docs.github.com/...
    
    That advice has been wrong since #1383. It replaced the
    public-membership lookup (`GET /users/{login}/orgs`) with a check on the
    caller's organization **role** (`GET /user/memberships/orgs`). Public
    membership no longer factors into the decision at all.
    
    The cost is not theoretical. In #1468 the reporter *is* an Owner of the
    org, *and* their membership *is* public — confirmed via `GET
    /orgs/qatouch/public_members`. The message sent them, and a maintainer,
    through a week of re-checking GitHub settings that were never the
    problem.
    
    The docs have the mirror-image defect: `authentication.mdx` walks the
    reader through `mcp-publisher login github`, then explains that org
    publishing requires Owner, and qualifies **only** the PAT cases — never
    saying that the interactive flow cannot grant an org namespace at all.
    
    ## Root cause of the underlying limitation
    
    `mcp-publisher login github` authenticates against a **GitHub App**
    (`Iv23liUydBbI7Z2Q9bOZ` → `mcp-registry-login-prod`), not an OAuth App.
    GitHub Apps ignore the OAuth `scope` parameter, so the `read:org
    read:user` requested in `cmd/publisher/auth/github-at.go:144` has no
    effect, and GitHub App user tokens cannot read organization memberships.
    
    Critically, GitHub signals this with **`200 OK` and an empty array**,
    not a 403 — so none of the safeguards #1383 added (rate-limit detection,
    `X-GitHub-SSO`, the deliberate fail-closed path) ever execute. The
    registry simply concludes "owns no organizations."
    
    Verified against production, same account and same request within the
    same hour:
    
    | credential | `GET
    /user/memberships/orgs?state=active&per_page=100&page=1` |
    |---|---|
    | OAuth App token with `read:org` | **16 orgs, 8 as Owner** |
    | GitHub App user token from the prod device flow | **0 orgs** |
    
    The resulting prod JWT carried exactly one permission:
    `io.github.<user>/*`.
    
    Consistent with that timeline: `io.github.qatouch/qatouch` published
    successfully on 2026-07-03, and v1.8.0 (the first release containing
    #1383) reached production 2026-07-13.
    
    ## What this PR changes
    
    **Nothing about authorization.** Message and documentation text only.
    
    - `publish.go` — the org hint now states the two real requirements
    (Owner role, *and* a credential that can read that role) and names the
    credentials that work: GitHub Actions OIDC, or `mcp-publisher login
    github --token <classic PAT with read:org>`. The docs URL is extracted
    to `orgNamespaceDocsURL` and points at
    `modelcontextprotocol.io/registry/authentication` (verified 200).
    - `authentication.mdx` — a `<Warning>` stating plainly that the device
    flow cannot publish to an org namespace, why, that it affects everyone
    regardless of role or membership visibility, and the two paths that do
    work.
    - `publish_internal_test.go` — new in-package tests (`_internal_test.go`
    per the repo convention that satisfies `testpackage`).
    
    ## Tests
    
    Written test-first; both behaviour tests were watched failing against
    the old message before the fix:
    
    ```
    --- FAIL: TestBuildPermissionErrorMessageDoesNotAdvisePublicisingOrgMembership
    --- FAIL: TestBuildPermissionErrorMessageNamesWorkingOrgAuthPaths
    ```
    
    Four tests now cover: the misleading advice is gone; the working auth
    paths are named; the attempted-vs-granted namespaces are still reported
    (the diagnostic core); and the GitHub guidance does not leak onto
    DNS/HTTP-verified namespaces.
    
    `go build ./...`, `go test ./internal/...` (with PostgreSQL up) and
    `gofmt` are clean. `golangci-lint` reports no new findings — the only
    hit in a touched file is the pre-existing `goconst` on `publish.go:35`,
    which is also present on `main`.
    
    ## Deliberately out of scope
    
    - **The actual fix for org publishing.** That needs the login client to
    become a real OAuth App, which requires an Owner of the
    `modelcontextprotocol` org to create it plus a `githubClientId` change
    in the three Pulumi stacks. Still under discussion.
    - **Observability.** `fetchOrgMembershipsPage` returns `nil, nil` on a
    403 with no log line (`github_at.go:270`), which is why this was
    undiagnosable server-side. Worth fixing under any outcome; kept out to
    keep this reviewable, and I'll follow up with a separate PR.
    
    Closes nothing on its own — #1468 stays open until org publishing
    actually works.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-authored-by: Claude <[email protected]>
    rdimitrov and claude authored Oct 23, 2026
    Configuration menu
    Copy the full SHA
    f13bdd6 View commit details
    Browse the repository at this point in the history
  3. fix(database): index server name substring searches (#1730)

    Substring searches use `server_name ILIKE '%term%'`, which was scanning
    the production servers table and contending with ordinary listings. Add
    a GIN trigram index using the existing pg_trgm extension, plus
    instructions for concurrent construction on populated databases.
    
    The index was built concurrently in production on 2026-10-23 and
    verified valid/ready. Migration 015 skips the existing index, creates it
    on fresh databases, and rejects an invalid index left by an interrupted
    build. The transactional migration runner is unchanged. Production
    benefits immediately; a release is not required to activate this index.
    
    ### Validation
    
    - CI build, lint, validation, full unit/integration tests and CodeQL all
    passed for commit `5d358d3`.
    - Applied the migration twice against a fresh isolated staging schema,
    then rolled the test back.
    - Production EXPLAIN ANALYZE uses the new index for a filesystem search:
    96 ms execution.
    - Extended production verification: 38 sequential read-only API checks
    across v0 and v0.1, all HTTP 200 and all response assertions passed; 30
    cache misses. Covers three-page listings, search pagination,
    case-insensitive matching, short/common/missing terms, literal `%`, `_`
    and backslash matching, latest-version filters, limit=100, exact/latest
    details and version lists. Median response 0.77 seconds; maximum 6.8
    seconds on a one-character search.
    - A fresh 65-second sample measured 232 ordinary searches averaging 214
    ms and 28 latest-version searches averaging 59 ms. Pagination averaged
    12–16 ms across 8,952 calls. Earlier pre-change search averages were
    approximately 26 seconds. Traffic/query mixes differ; these are
    operational observations rather than a controlled benchmark.
    - Latest five-minute monitoring window: approximately 39,700 listing
    requests with zero 5xx responses. At an earlier check in the same
    validation session, application-observed mean/p95 were 29/100 ms; these
    exclude client network time and are distinct from the direct API
    timings.
    - Index remains valid/ready; PostgreSQL has not restarted. `git diff
    --check` passed.
    
    ### Remaining limitations
    
    Brief database readiness failures and connection errors occurred during
    the build, and another readiness failure occurred at approximately 17:20
    UTC after completion (18 listing 5xx responses recorded in subsequent
    metrics). The database recovered readiness at 17:20:54 UTC. These later
    failures mean the index must not be described as resolving every
    availability issue.
    
    One- and two-character searches still took 4–7 seconds in some direct
    checks. Keep this PR focused on the index; short-search cost and
    readiness resilience warrant separate investigation. An optional
    read-only comparison against forced sequential scans hit its five-second
    statement timeout and was stopped; result equivalence for that
    additional check was not established. No production records were
    modified or restored by these checks.
    rdimitrov authored Oct 23, 2026
    Configuration menu
    Copy the full SHA
    1a319b0 View commit details
    Browse the repository at this point in the history
Loading