Skip to content

fix(cortex-cli): consolidate mcp list command with ls alias - #57

Merged
Mathis (echobt) merged 1 commit into
masterfrom
fix/bounty-issue-1399
Jan 26, 2026
Merged

Mathis (echobt) merged 1 commit into
masterfrom
fix/bounty-issue-1399

Conversation

@echobt

Copy link
Copy Markdown
Contributor

Summary

Fixes an issue where the mcp --help output shows list and ls as separate commands instead of documenting ls as an alias for list.

Changes

  • Removed the redundant Ls variant from McpSubcommand enum
  • Added #[command(visible_alias = "ls")] to the List variant
  • Updated the match statement to only handle McpSubcommand::List

Related

Fixes CortexLM/bounty#1399

Fixes bounty issue #1399

The mcp subcommands had both 'list' and 'ls' as separate variants in the
McpSubcommand enum. This caused the help output to show them as separate
commands instead of documenting 'ls' as an alias for 'list'. This fix
removes the redundant Ls variant and adds visible_alias='ls' to the List
variant so the help correctly shows 'ls' as an alias.
@echobt
Mathis (echobt) merged commit 88d385e into master Jan 26, 2026
12 checks passed
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.

[BUG] mcp ls alias not documented in main help

2 participants