[PR #7496] [MERGED] fix(mcp): correct version #7353

Closed
opened 2026-03-13 13:33:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7496
Author: @himself65
Created: 1/20/2026
Status: Merged
Merged: 1/20/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/20/version


📝 Commits (1)

  • df23b5f fix(mcp): correct version

📊 Changes

3 files changed (+13 additions, -1 deletions)

View changed files

📝 packages/mcp/package.json (+3 -0)
📝 packages/mcp/src/index.ts (+1 -1)
📝 packages/mcp/tsdown.config.ts (+9 -0)

📄 Description

Summary by cubic

Fixed MCP server version reporting by injecting the package.json version at build time. Also requires Node.js 20+.

  • Bug Fixes

    • Injects package.json version into BETTER_AUTH_VERSION during build.
    • Reads version from process.env.BETTER_AUTH_VERSION instead of a hard-coded string.
  • Migration

    • Node.js >= 20 is now required.

Written for commit df23b5f36c. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7496 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/20/2026 **Status:** ✅ Merged **Merged:** 1/20/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/20/version` --- ### 📝 Commits (1) - [`df23b5f`](https://github.com/better-auth/better-auth/commit/df23b5f36c747e4fc61f13db07c6f18d55928b0e) fix(mcp): correct version ### 📊 Changes **3 files changed** (+13 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/mcp/package.json` (+3 -0) 📝 `packages/mcp/src/index.ts` (+1 -1) 📝 `packages/mcp/tsdown.config.ts` (+9 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed MCP server version reporting by injecting the package.json version at build time. Also requires Node.js 20+. - **Bug Fixes** - Injects package.json version into BETTER_AUTH_VERSION during build. - Reads version from process.env.BETTER_AUTH_VERSION instead of a hard-coded string. - **Migration** - Node.js >= 20 is now required. <sup>Written for commit df23b5f36c747e4fc61f13db07c6f18d55928b0e. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:33:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7353