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:
mcp_version_string— thehyperdb-mcpcrate’s own version.hyper_api_version_string— thehyperdb-apipure-Rust Hyper client library version (pulled fromhyperdb_api::VERSION).
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-apicrate). 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
HyperDBMCP server.