Skip to content

AX-1508 - Use compact --list-available output for the MCP catalog#16

Open
YoniMelki wants to merge 1 commit into
mainfrom
bugfix/AX-1508-compact-mcp-listing
Open

AX-1508 - Use compact --list-available output for the MCP catalog#16
YoniMelki wants to merge 1 commit into
mainfrom
bugfix/AX-1508-compact-mcp-listing

Conversation

@YoniMelki
Copy link
Copy Markdown
Collaborator

What

agent-guard --list-available now prints a compact, token-efficient TSV by default (see the paired jfrog/agent-guard change for AX-1508). This template now tells the agent to run it once and present the rows directly as a numbered table — no JSON parsing.

Why (AX-1508)

When a user asked "what mcps can I install?", the agent improvised python3 pipes to parse the verbose single-line JSON and failed repeatedly: json.load errors, truncated terminal output, and KeyError: 'packageName' (which is empty for remote/http MCPs).

Changes

  • Drop the now-redundant --format compact flag from the --list-available command (compact is the default).
  • Describe the output as compact TSV (name<TAB>type<TAB>version<TAB>description); the name column is the install identifier (also what --inspect --mcp matches) and is never empty.
  • Add a Key Rule: never parse catalog commands with python3, and never capture them with 2>&1 (npm/npx stderr corrupts the stream).

Coordination

Pairs with the jfrog/agent-guard AX-1508 change (adds --format, makes compact the default). Ship together so npx --yes @jfrog/agent-guard resolves a version that supports the compact default.

🤖 Generated with Claude Code

agent-guard --list-available now prints a compact TSV by default. Present its rows directly as a numbered table; never parse the catalog with python3 or capture it with 2>&1 (npm/npx writes progress to stderr, which corrupts the stream). packageName can be empty for remote/http MCPs, so use the name column as the install identifier.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@YoniMelki YoniMelki requested a review from yanivt-jfrog June 2, 2026 19:36
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.

1 participant