Skip to main content

Module version

Module version 

Source
Expand description

Version reporting for the HyperDB MCP server.

Exposes two version strings used by status and the hyper://workspace resource so LLMs and humans alike can correlate a running server with a specific point in source control:

Both are postfixed with the short git commit hash of the workspace they were built from, formatted as .r<8-char-hash>. When the working tree had uncommitted changes at build time the suffix is extended to .r<hash>-dirty-<YYYYMMDDTHHMMSSZ> — a literal -dirty marker plus an ISO 8601 basic UTC build timestamp, so iterative dirty rebuilds of the same commit can still be told apart by their version string alone. The hash and timestamp are captured by build.rs at compile time. For source trees without a working git binary the suffix falls back to .runknown.

Constants§

GIT_HASH
Short git hash of the workspace HEAD at build time. When the tree was dirty at build time the value is extended to <hash>-dirty-<YYYYMMDDTHHMMSSZ> (ISO 8601 basic UTC). Falls back to "unknown" when git is unavailable.
MCP_VERSION
Semantic version of this crate, from Cargo.toml.

Functions§

hyper_api_version_string
Version string reported for the underlying pure-Rust Hyper API (the hyperdb-api crate). Shares the same git hash suffix as the MCP crate because both live in the same workspace.
mcp_version_string
Version string reported for the HyperDB MCP server.