Repository navigation
Improve mcp list-tools output style with table rendering and allow status column - #1087
Conversation
…ion truncation Co-authored-by: pelikhan <[email protected]>
…d fix comment Co-authored-by: pelikhan <[email protected]>
|
…ering Co-authored-by: pelikhan <[email protected]>
Both features have been implemented in commit 68cd3ff:
Before: After: --allowed flag usage: gh aw mcp list-tools github workflow --allowed tool1,tool3
# Only tool1 and tool3 will show ✅, others show 🚫The flag overrides workflow configuration and works in both verbose and non-verbose modes. |
|
…d --allowed flag Co-authored-by: pelikhan <[email protected]>
Both requirements have been implemented in commit eedd532:
Examples: Command-line wildcard: gh aw mcp list-tools github workflow --allowed "*"
# All tools show ✅Workflow config wildcard: tools:
github:
allowed: ["*"]Test output showing wildcard working: The wildcard "*" is now properly handled as a special case meaning "all tools are allowed" in both workflow configuration and the --allowed flag. |
|
|
@copilot continue plan |
…n only Co-authored-by: pelikhan <[email protected]>
Plan completed in commit 917fdc6:
Current behavior:
Help output now clean: Sample output: The tool now shows exactly what the workflow configuration specifies without any command-line complexity. |
Fixes the output formatting of the
mcp list-toolscommand to use professional table rendering instead of numbered lists, with proper description truncation for better readability. Also adds tool allowance status indicators showing workflow configuration.Problem
The original
mcp list-toolscommand used a numbered list format that could result in very long, hard-to-read lines:This format was inconsistent with modern CLI tools and made it difficult to quickly scan tool names, descriptions, and allowance status.
Solution
Non-verbose mode now uses a clean table format with allow status and truncated descriptions:
Verbose mode shows detailed information with allow/deny status and full descriptions:
Workflow configuration wildcard allows all tools to be enabled:
Key Improvements
console.RenderTablefunctionality for consistent formatting"*"wildcard to allow all toolsTesting
Added comprehensive unit tests covering:
All existing tests continue to pass, ensuring no regressions.
Original prompt
Improve the output style of the "mcp list-tools" command:
Here is a sample run: