Skip to content

[BUG] [v0.0.7] MCP debug uses hardcoded version 1.0.0 instead of CARGO_PKG_VERSION (debug.rs:429,567) #48567

@johncur-super

Description

@johncur-super

Project

cortex

Description

In cortex-cli/src/mcp_cmd/debug.rs, MCP client initialization uses hardcoded "version": "1.0.0" in clientInfo instead of the built package version. External MCP servers therefore see the wrong client version. The report contrasts with cortex-mcp-types/src/initialization.rs:77 using env!("CARGO_PKG_VERSION").

Error Message

Debug Logs

System Information

Bounty Challenge v0.0.6
OS: Linux

Screenshots

Image

Steps to Reproduce

Run MCP debug with v0.0.6; observe initialize message reports version "1.0.0".

Expected Behavior

Report the actual package version, e.g. "version": env!("CARGO_PKG_VERSION").

Actual Behavior

Initialize always advertises "1.0.0".

Additional Context

cortex-cli/src/mcp_cmd/debug.rsclientInfo / version hardcoded; lines cited in title ~429, ~567.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingideIssues related to IDEinvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions