Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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.3
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: modelcontextprotocol/registry
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.4
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 2 commits
- 5 files changed
- 2 contributors
Commits on Oct 23, 2026
-
chore(deploy): promote production to 1.8.3 (#1731)
Promote production from `1.8.2` to `1.8.3` by changing only the production image tag. Merging triggers the production deployment workflow. The release points to `1a319b0a1611eddc267ae3710db8d64d0db43747`, which deployed successfully to staging. Staging has migration 015 recorded, a valid trigram index, two healthy replicas, and passing v0/v0.1 listing, pagination and search checks. This release also includes the publishing-error guidance correction from #1483. Production already has the valid `idx_servers_name_trgm` index. Migration 015 should skip its creation and record the migration on startup. No restore or data import is needed. Production preview succeeded: 3 updates and 183 unchanged. The application Deployment changes its image and deployment-commit annotation. The other two updates are existing Grafana Role/ClusterRole `rules: null` versus `rules: []` normalization; old and new inputs are identical and neither grants permissions. No resources are created, replaced or deleted, and database and backup resources are unchanged. Release workflow succeeded, including GoReleaser and the multi-platform container-image build: https://github.com/modelcontextprotocol/registry/actions/runs/40008265873. The `1.8.3` image has been published. Required reviews/checks must be satisfied before merging. After promotion, verify the running version, migration 015, replica health and listing/search endpoints. Short-search latency and intermittent database readiness remain separate follow-ups; this promotion is not a claim that those are fully resolved.
Configuration menu - View commit details
-
Copy full SHA for 8d89c49 - Browse repository at this point
Copy the full SHA 8d89c49View commit details -
fix(publish): validate registries outside the transaction and time th…
…e pool wait (#1562) ## Why Publish latency has been the only alert firing in production — 1,285 times since 2025-09-11, while the read-path rules fired 6 times in total (last one 2025-09-14). Digging into where that time actually goes turned up a contradiction: | Layer | Publishes (7d) | Over 10s | Max | |---|---|---|---| | HTTP histogram (`/v0/publish`) | 9,939 | **17** | 45.5s observed | | Per-phase publish log (`createServerInTransaction`) | 7,845 | **0** | **6.5s** | `validate_ms` — the external registry calls — peaks at 3.9s (p50 18ms, p99 1.1s). So the slow requests were spending their time somewhere the phase log could not see. **The log had a blind spot exactly where the problem is.** `InTransaction` calls `pool.Begin` and *then* invokes the transaction body, but the timing started inside that body. A publish that waited 40s for a free connection logged `total_ms=200` and looked healthy. ## What **Time the pool wait.** The gap between a timestamp taken before `InTransactionT` and the first line of its callback is exactly how long `pool.Begin` blocked. Reported as `pool_wait_ms`. **Move registry-ownership validation ahead of the transaction.** It fans out to npm, PyPI, NuGet, Cargo, OCI and MCPB with a 10s timeout per host. Running it inside the transaction pinned a pgxpool connection for the duration of those round-trips — so under a publish burst (up to 276 in a 4-minute window) connections are held by requests doing no database work at all, starving a pool already sitting at 150 of 200 connections and stalling unrelated requests in `pool.Begin`. The check reads none of our own state, so hoisting it introduces no race, and the per-server advisory lock was already acquired *after* validation. To keep one log event per publish, timing and logging move up into `CreateServer` via a shared `publishTimings`; `createServerInTransaction` fills in the phases that still run inside. ## Note on `total_ms` `total_ms` now covers the whole `CreateServer` call rather than just the transaction body, so the residual after the named phases is commit plus overhead. Nothing consumes these log fields — all four Grafana rules are built on `mcp_registry_*` metrics. ## Out of scope The **edit path** keeps its validation inside the transaction, with a comment explaining why: `skipRegistryValidation` is derived from a read inside that transaction, so hoisting needs a second read before it opens plus a decision about the resulting race. It carries a fraction of publish traffic — worth revisiting if it shows up in `pool_wait_ms`. ## Testing New tests in `internal/service/registry_service_publish_transaction_test.go`, using a small `database.Database` double to observe the transaction boundary (which a real database cannot): - **validation failure opens no transaction** — the invariant this change introduces - **`pool_wait_ms` covers time `pool.Begin` blocked** — via a double whose `InTransaction` sleeps - a validation failure still emits one `publish failed` naming `failed_phase=validate` - a failure raised *inside* the transaction is still captured by the now-outer deferred logger Existing tests pass unchanged. `go test ./...` (12 packages), `-race` clean on the service package, `golangci-lint` 0 issues. ## Verifying this in production The payoff is only visible once deployed: `pool_wait_ms` will either confirm pool starvation as the mechanism or rule it out. If it comes back near zero on the slow publishes, the remaining suspects are JWT validation, body decode, and the per-request JSON schema compile (`schema.go:196-210` builds a fresh compiler per call — measured at 676µs and 882KB per call, deliberately not touched here). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 65ee4b2 - Browse repository at this point
Copy the full SHA 65ee4b2View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.8.3...v1.8.4