Skip to content

MCP server reports hardcoded version 0.1.5 instead of actual CLI version #1

Description

@devangpratap

In internal/mcp/server.go, the initialize response has the server version hardcoded as "0.1.5":

"serverInfo": map[string]interface{}{
    "name":    "codag",
    "version": "0.1.5",
},

The actual CLI version is injected via ldflags in .goreleaser.yml into cmd.Version, but the MCP server never reads it. So every release since 0.1.5 has been reporting the wrong version to MCP clients.

Should be a one line fix, just wire cmd.Version (or pass it into NewServer/Serve) instead of the string literal. Happy to PR this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions