fix(update): preserve disabled client registrations
This commit is contained in:
@@ -7,6 +7,7 @@ import { isOwnedClientRegistrationCommand } from "./ClientRegistrationIdentity.j
|
||||
import { readClientRegistrationStatuses } from "./ClientRegistrationStatus.js";
|
||||
import {
|
||||
clientServerForcedEnabled,
|
||||
clientServerListedDisabled,
|
||||
effectiveClientServer,
|
||||
parseClientConfiguration,
|
||||
} from "./ClientConfigurationDocument.js";
|
||||
@@ -77,11 +78,12 @@ export const existingMaintenanceScope = async (
|
||||
disabled: z.boolean().optional(),
|
||||
})
|
||||
.parse(effectiveClientServer(parsed, PRODUCT_IDENTITY.mcpServerKey));
|
||||
// OMP's enabledServers allowlist runs an entry marked `enabled: false`.
|
||||
// Root disable lists override enabled entries and OMP's force-on allowlist.
|
||||
if (
|
||||
(enabled.enabled !== false ||
|
||||
clientServerForcedEnabled(parsed, PRODUCT_IDENTITY.mcpServerKey)) &&
|
||||
enabled.disabled !== true
|
||||
enabled.disabled !== true &&
|
||||
!clientServerListedDisabled(parsed, PRODUCT_IDENTITY.mcpServerKey)
|
||||
)
|
||||
clients.push(client.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user