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(storage): persist registry origin/provenance on UpstreamRecord (MCP-866)
CI caught the new ServerConfig fields tripping the storage field-coverage
canary (TestSaveServerSyncFieldCoverage) — they were unpersisted. Persist them
so a server's registry origin survives a restart; otherwise a reloaded
custom-origin server would lose its provenance and the skip_quarantine guard
plus the approval/quarantine view would silently stop working.
- Add SourceRegistryID + SourceRegistryProvenance to UpstreamRecord.
- Carry them through every config<->record conversion (async saveServerSync,
Manager.SaveUpstreamServer, GetUpstreamServer, ListUpstreamServers,
ListQuarantinedUpstreamServers).
- Extend the field-coverage canary's expectedFields; add a save->reload
round-trip test (incl. via the quarantine listing).
Fixes the Unit Tests / E2E / Build Binaries CI failures on #573 (all ran
go test ./... and hit the same storage canary). storage suite green with -race;
go build ./... clean; gofmt clean.
Related MCP-866
Co-Authored-By: Paperclip <noreply@paperclip.ing>
Copy file name to clipboardExpand all lines: internal/storage/models.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,11 @@ type UpstreamRecord struct {
101
101
LauncherWaitTimeout config.Duration`json:"launcher_wait_timeout,omitempty"`// Spec 046: max wait for locally-launched HTTP/SSE upstream URL to become reachable
102
102
EnabledTools []string`json:"enabled_tools,omitempty"`// Allowlist: only these tools are exposed
103
103
DisabledTools []string`json:"disabled_tools,omitempty"`// Denylist: these tools are hidden
104
+
// MCP-866: persist a server's registry origin + provenance so the
105
+
// approval/quarantine view and the custom-origin skip_quarantine guard
0 commit comments