ExMCP.SpecSync.Metadata (ex_mcp v0.10.0)
View SourceManages sync metadata for MCP specification files.
Tracks per-file SHA256 checksums, ETags, and sync timestamps
in a .sync_metadata.json file within the specs directory.
Summary
Functions
Checks if a file has changed compared to the stored metadata.
Returns the stored ETag for a file, if any.
Loads sync metadata from the given base directory.
Saves sync metadata to the given base directory.
Computes SHA256 checksum of content.
Updates metadata for a specific file after successful sync.
Types
Functions
Checks if a file has changed compared to the stored metadata.
Returns true if the file is new or its content differs from
the stored checksum.
Returns the stored ETag for a file, if any.
Loads sync metadata from the given base directory.
Returns a metadata map with file checksums and sync info. If the file doesn't exist, returns an empty metadata structure.
Saves sync metadata to the given base directory.
Computes SHA256 checksum of content.
Updates metadata for a specific file after successful sync.