ProtectedclassifyClassifies a locally stored server against the registry (for the Installed view).
Classifies a registry entry against the locally stored servers (for the Search view).
ProtectedenvRestores a drifted entry's registry-owned config fields while preserving user-owned ones.
Delegates to the generic editor so both registry installs and install-mcp URL handlers go through the same code path.
Optionaloverrides: MCPInstallOverridesProtectedisTrue when the registry's configHash differs from the locally stored
registryMetadata.configHash. Returns false when the registry has no configHash
to compare against (older payloads) - without a hash we cannot make a confident
"update available" decision and prefer not to nag the user.
Links an existing local server to a registry entry by stamping its registry metadata.
ProtectedmatchesProtectedmetadataRegistry-managed metadata block written onto every linked server entry.
ProtectedreadRemoves an installed server entry by its local preference key.
Drop the registry link from a local server while keeping its config intact. Used to convert a stale-linked entry (registry no longer lists the serverId) into a plain user-added entry without losing the user's running server config.
Applies a newer registry approval to an installed entry, preserving user-supplied additions.
Protectedwrite
Classify a local server that is already linked to a registry entry. Either the registry config matches (eligible for Update when the registry has published a new approval - detected via
configHash) or it has drifted away (fix-config).Update detection uses
registryMetadata.configHashexclusively.registryMetadata.versionis kept on the local entry for display only; the registry may publish a new version without changing the install config, in which case we still want to offer Update.