Skip to content

release: glass v1.0.1 — report the real version - #190

Merged
xxx merged 1 commit into
masterfrom
fix-version-reporting
Jul 21, 2026
Merged

release: glass v1.0.1 — report the real version#190
xxx merged 1 commit into
masterfrom
fix-version-reporting

Conversation

@xxx

@xxx xxx commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

1.0.1 — a fast-follow fixing a version-reporting defect that shipped in 1.0.0.

The bug

The crate version is pinned at 0.0.0 (releases are tag-driven), so three user-facing surfaces reported the wrong version:

  • glass-mcp --version0.0.0
  • glass-mcp doctor's "glass" line → 0.0.0
  • the MCP initialize handshake identified the server as the transport crate (rmcp / its version) via rmcp's Implementation::from_build_env default — so every connecting agent saw the wrong server identity

The fix

build.rs derives the version at build time (release tag via GITHUB_REF_TYPE=tag + GITHUB_REF_NAME, else git describe, else the crate version) and emits GLASS_VERSION. A single crate::VERSION feeds --version, doctor, and the handshake, and get_info() overrides the handshake identity to glass-mcp / glass / the build-time version. Tests pin each surface.

Verified: 1164 workspace tests pass; a simulated tag build reports 1.0.1, a branch build reports an honest git describe dev version (never the branch name).

After merge

Tag v1.0.1 → signed/notarized release, takes Latest.

…ault

The crate version is pinned at 0.0.0 (releases are tag-driven), so three
user-facing surfaces reported a wrong version:
- `glass-mcp --version` (clap) → 0.0.0
- `glass-mcp doctor`'s "glass" line → 0.0.0
- the MCP `initialize` handshake reported the transport crate's identity
  (rmcp / its version) via rmcp's Implementation::from_build_env default

build.rs now derives the version at build time (release tag GITHUB_REF_NAME,
else `git describe`, else the crate version) and emits GLASS_VERSION; a single
`crate::VERSION` feeds all three surfaces, and get_info() overrides the handshake
identity to glass-mcp/"glass"/VERSION. Tests pin each surface.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xxx
xxx merged commit 6fa2bd2 into master Jul 21, 2026
8 checks passed
@xxx
xxx deleted the fix-version-reporting branch July 21, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant