Skip to content

Fix MCP server reporting hardcoded version instead of actual CLI version#2

Open
devangpratap wants to merge 1 commit into
codag-megalith:mainfrom
devangpratap:fix/mcp-server-version
Open

Fix MCP server reporting hardcoded version instead of actual CLI version#2
devangpratap wants to merge 1 commit into
codag-megalith:mainfrom
devangpratap:fix/mcp-server-version

Conversation

@devangpratap

Copy link
Copy Markdown

Fixes #1.

The MCP initialize response had the server version hardcoded as "0.1.5". The actual CLI version is injected via ldflags into cmd.Version, but the MCP server never read it. So every release since 0.1.5 has been telling MCP clients the wrong version.

This adds a package-level Version var to internal/mcp and sets it from the cmd package before Serve() runs. Falls back to "dev" for local builds.

The MCP initialize response had the server version hardcoded as
"0.1.5". This wires cmd.Version into the mcp package so the
reported version stays in sync with releases.
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.

MCP server reports hardcoded version 0.1.5 instead of actual CLI version

1 participant