Skip to content

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

Merged
echobt merged 1 commit intomasterfrom
fix/bounty-issue-1399
Jan 26, 2026
Merged

fix(cortex-cli): consolidate mcp list command with ls alias#57
echobt merged 1 commit intomasterfrom
fix/bounty-issue-1399

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 26, 2026

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 PlatformNetwork/bounty-challenge#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 echobt force-pushed the fix/bounty-issue-1399 branch from 049a91c to 956be81 Compare January 26, 2026 16:33
@echobt 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