Skip to content

fix: report active package version in MCP startup#88

Merged
Addono merged 1 commit intomainfrom
fix/mcp-version-indicator
May 5, 2026
Merged

fix: report active package version in MCP startup#88
Addono merged 1 commit intomainfrom
fix/mcp-version-indicator

Conversation

@Addono
Copy link
Copy Markdown
Owner

@Addono Addono commented May 5, 2026

Summary

  • resolve the MCP version from the running gh-attach package instead of falling back to 0.0.0-development
  • reuse the same package-version lookup across the CLI and MCP code paths
  • add regression coverage for source layout, built layout, HTTP health, and the built CLI MCP startup log

Expected behavior

npx -y gh-attach@latest mcp should report the version of the gh-attach package currently in use. With the current package metadata, that is 1.7.0.

Testing

  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm run build
  • npm test
  • packaged npx smoke test against npm pack output

Resolve MCP version labels from the running gh-attach package metadata so packaged npx installs report the active tool version instead of the development fallback.

Add regression coverage for source and dist version resolution, the HTTP health endpoint, and the built CLI MCP startup log. Also format README to satisfy the repo's existing format check.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Addono
Copy link
Copy Markdown
Owner Author

Addono commented May 5, 2026

Proof from the packaged npx smoke test (using the current npm pack tarball):

npx -y --package ./gh-attach-1.7.0.tgz gh-attach --version
1.7.0

npx -y --package ./gh-attach-1.7.0.tgz gh-attach mcp
[gh-attach MCP] Server started (stdio mode, version 1.7.0)

mcp-version-proof.png

@Addono Addono merged commit 3863102 into main May 5, 2026
10 of 11 checks passed
@Addono Addono deleted the fix/mcp-version-indicator branch May 5, 2026 09:24
github-actions Bot pushed a commit that referenced this pull request May 5, 2026
## [1.7.2](v1.7.1...v1.7.2) (2026-05-05)

### Bug Fixes

* align CI with release build version ([#89](#89)) ([1def42f](1def42f))
* report active package version in MCP startup ([#88](#88)) ([3863102](3863102)), closes [#attach](https://github.com/Addono/gh-attach/issues/attach)
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

🎉 This PR is included in version 1.7.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant