Skip to content

fix(mcp): report package version 0.6.0 - #751

Merged
JSONbored merged 2 commits into
mainfrom
codex/propose-fix-for-version-reporting-bug
Jun 15, 2026
Merged

fix(mcp): report package version 0.6.0#751
JSONbored merged 2 commits into
mainfrom
codex/propose-fix-for-version-reporting-bug

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Motivation

  • The MCP CLI binary still hardcoded packageVersion as 0.5.0 while packages/gittensory-mcp/package.json and API compatibility metadata were bumped to 0.6.0, causing CLI output, x-gittensory-mcp-version telemetry, and compatibility/status checks to report a stale version.

Description

  • Update the packageVersion constant in packages/gittensory-mcp/bin/gittensory-mcp.js from "0.5.0" to "0.6.0" so CLI output, server metadata, compatibility checks, and telemetry headers match package.json.

Testing

  • Ran node --check packages/gittensory-mcp/bin/gittensory-mcp.js, node packages/gittensory-mcp/bin/gittensory-mcp.js --version (now prints @jsonbored/gittensory-mcp/0.6.0), npm run build:mcp, and npm run test:mcp-pack, and all commands succeeded.

Codex Task

@ghost

ghost commented Jun 15, 2026

Copy link
Copy Markdown

gittensory · advisory review

Reviewed 2 changed file(s) — two independent AI reviewers.

Suggested action:Safe to merge — both reviewers found no blocking issues.

Reviewer A · gpt-oss-120b — recommends ✅ merge
The PR updates the hard‑coded package version constant from 0.5.0 to 0.6.0 and aligns all related unit test expectations accordingly, including fixture server responses and CLI output checks.

Suggestions

  • Verify that the package.json version field is also bumped to 0.6.0 if not already.
  • Ensure the changelog includes an entry for version 0.6.0 before release.

Worth double-checking

  • If other parts of the codebase reference the old version string (e.g., documentation or CI scripts), they may become out‑of‑sync.
  • The fixture server now returns a newer recommended version (0.7.0); confirm this matches the intended upgrade path.

Reviewer B · nemotron-3-120b-a12b — recommends ✅ merge
The PR bumps the package version of the gittensory-mcp CLI from 0.5.0 to 0.6.0, updating the version constant in the CLI script and adjusting corresponding test expectations. The changes are localized, consistent, and do not alter behavior beyond version reporting. No public/private boundary violations are introduced.

Suggestions

  • Verify that package.json in packages/gittensory-mcp/ reflects version 0.6.0 (though not shown in diff, it should be updated as part of this bump).
  • Ensure the changelog (if maintained) is updated for this release, though not required for this trivial change.

Worth double-checking

  • Confirm that the version bump does not inadvertently break any downstream consumers relying on the exact version string (unlikely for a CLI tool).
  • Double-check that the test scenario changes (e.g., 0.7.0-rc.1 vs 0.6.0) correctly simulate the 'stale' state as intended.

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@ghost

ghost commented Jun 15, 2026

Copy link
Copy Markdown

Note

Gittensory Gate skipped

PR closed before full evaluation. No late first comment was created.

Signal Result Evidence Action
Gate result ⚠️ Skipped #751 is no longer open. No action.

💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.

@JSONbored
JSONbored merged commit 5652d1b into main Jun 15, 2026
11 checks passed
@JSONbored
JSONbored deleted the codex/propose-fix-for-version-reporting-bug branch June 15, 2026 00:57
@github-project-automation github-project-automation Bot moved this from Todo to Done in gittensory - v1 roadmap Jun 15, 2026
@github-actions github-actions Bot mentioned this pull request Jun 15, 2026
12 tasks
JSONbored added a commit that referenced this pull request Jul 8, 2026
…4161)

packages/gittensory-mcp/bin/gittensory-mcp.js's packageVersion/packageName
and src/services/mcp-compatibility.ts's LATEST_RECOMMENDED_MCP_VERSION were
independently hardcoded literals that had to be bumped by hand every
release (the exact bug #751 fixed last cycle by re-bumping the literal,
not by removing it). Both now derive from packages/gittensory-mcp/package.json
directly -- the bin script reads its own package.json at runtime (always
present in any install, npm ships it regardless of the "files" allowlist),
and mcp-compatibility.ts imports it the same way src/server.ts:14 already
imports the root package.json. Two of the three hand-synced version-pin
sites from today's release are now impossible to forget, by construction.

Also makes the version-pinned test assertions in mcp-cli-basics.test.ts,
mcp-cli-profiles.test.ts, mcp-cli-doctor.test.ts, and mcp-compatibility.test.ts
derive from the real package.json/constants instead of hardcoded literals --
required for future release-please-automated version bumps to pass CI
without a human editing these files every time. Verified genuinely
self-updating by temporarily bumping the local package version and
confirming all 95 tests still pass unmodified; that stress test also
caught a real pre-existing fragility (mcp-cli-doctor.test.ts hardcoded
latestVersion: "1.0.0" as "clearly above local", which silently breaks
once the package naturally reaches 1.0.0) and fixed it the same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant