Skip to content

fix(mcp): shell-completion spec is stale for "cache list", silently breaking tab-completion across all 4 shells #6260

Description

@JSONbored

Context

packages/loopover-mcp/bin/loopover-mcp.js:58's CLI_COMMAND_SPEC entry for cache reads ["status", "clear"] — omitting "list". runCacheCli (line 2302) fully supports list/ls, and both printCacheHelp and the README document loopover-mcp cache list. Because CLI_COMMAND_SPEC is the single source used by buildBashCompletion/buildZshCompletion/buildFishCompletion/buildPowershellCompletion (lines 2565-2650) and suggestCommand's typo-suggester, this one stale entry silently breaks tab-completion for cache list (but not status/clear) across all four shells.

Requirements

  • Add "list" to CLI_COMMAND_SPEC's cache entry.
  • Verify no other command in CLI_COMMAND_SPEC has a similar stale/incomplete subcommand list by cross-checking each against its actual run*Cli implementation.

Test Coverage Requirements

Match this package's existing test conventions for completion-script generation; add a test confirming cache list appears in the generated completion output for at least one shell.

Deliverables

  • CLI_COMMAND_SPEC.cache includes "list".
  • Any other stale entries found during the cross-check are fixed in the same PR.

Expected Outcome

Tab-completion for loopover-mcp cache list works correctly across bash/zsh/fish/PowerShell.

Links & Resources

  • packages/loopover-mcp/bin/loopover-mcp.js:58,2302,2565-2650

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions