AX-1508 - Use compact --list-available output for the MCP catalog#9
Open
YoniMelki wants to merge 1 commit into
Open
AX-1508 - Use compact --list-available output for the MCP catalog#9YoniMelki wants to merge 1 commit into
YoniMelki wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
agent-guard --list-availablenow 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
python3pipes to parse the verbose single-line JSON and failed repeatedly:json.loaderrors, truncated terminal output, andKeyError: 'packageName'(which is empty for remote/http MCPs).Changes
--format compactflag from the--list-availablecommand (compact is the default).name<TAB>type<TAB>version<TAB>description); thenamecolumn is the install identifier (also what--inspect --mcpmatches) and is never empty.python3, and never capture them with2>&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 sonpx --yes @jfrog/agent-guardresolves a version that supports the compact default.🤖 Generated with Claude Code