Skip to content

Improve CLI output messaging and reorder server details sections#99

Merged
jancurn merged 3 commits intomainfrom
claude/fix-nits-unit-tests-4O0dl
Mar 23, 2026
Merged

Improve CLI output messaging and reorder server details sections#99
jancurn merged 3 commits intomainfrom
claude/fix-nits-unit-tests-4O0dl

Conversation

@jancurn
Copy link
Copy Markdown
Member

@jancurn jancurn commented Mar 23, 2026

Summary

This PR refines CLI output messaging for better clarity and reorganizes the server details display to show tools and instructions before commands.

Key Changes

  • Simplified section headers: Removed "Available" prefix from list headers ("Tools" instead of "Available tools", "Resources" instead of "Available resources", etc.) for more concise output
  • Enhanced help text: Updated command descriptions to be more descriptive:
    • tools-list: Now clarifies it "List MCP server tools"
    • tools-get: Now indicates it "Get tool details and schema"
  • Reordered server details output: Moved tools list and instructions sections to appear before the commands section in formatServerDetails(), providing a more logical information hierarchy
  • Updated OAuth profile messaging: Changed "Available OAuth profiles" to "Saved OAuth profiles" for better accuracy
  • Added .claude to gitignore: Excludes Claude-related configuration files from version control
  • Updated test expectations: All corresponding unit tests updated to match the new output format

Implementation Details

The reordering in formatServerDetails() ensures that when displaying server information, users see:

  1. Server metadata and capabilities
  2. Tools and instructions (content-focused)
  3. Available commands (actions)

This provides a more intuitive flow from information to actionable commands.

https://claude.ai/code/session_01Lr6hQ855QQbCKCtyspknw2

jancurn and others added 3 commits March 23, 2026 22:37
Update output.test.ts assertions to match the PR's renamed headers:
"Available tools/resources/prompts/templates" → "Tools/Resources/Prompts/Templates"

https://claude.ai/code/session_01Lr6hQ855QQbCKCtyspknw2
Update human-output e2e test to match renamed headers:
"Available tools/resources/prompts/templates" → "Tools/Resources/Prompts/Templates"

https://claude.ai/code/session_01Lr6hQ855QQbCKCtyspknw2
@jancurn jancurn merged commit df321d4 into main Mar 23, 2026
6 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.

3 participants