Skip to content

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

Description

@quantum-mind-dev

Bug Report

Project

cortex

Description

In cortex-cli/src/mcp_cmd/debug.rs, version is hardcoded:

"clientInfo": {
    "name": "Cortex",
    "version": "1.0.0"  // Hardcoded!
}

The Bug: Uses hardcoded "1.0.0" instead of actual package version. Correct implementation in cortex-mcp-types/src/initialization.rs:77 uses env!("CARGO_PKG_VERSION").

Steps to Reproduce

  1. Run MCP debug with v0.0.6
  2. Initialize message shows version "1.0.0"
  3. External MCP server sees wrong version

Expected Behavior

Use actual version:

"version": env!("CARGO_PKG_VERSION")

Actual Behavior

Reports wrong version in MCP protocol.

System Information

Bounty Challenge v0.0.6
OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    cortexIssues related to CortexLM/cortex repositoryvalidValid issue

    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