Skip to content

Improve tool display: show args in progress and clean MCP tool names #60

Closed
meain wants to merge 2 commits intomasterfrom
claude/improve-tool-display-3baN0
Closed

Improve tool display: show args in progress and clean MCP tool names #60
meain wants to merge 2 commits intomasterfrom
claude/improve-tool-display-3baN0

Conversation

@meain
Copy link
Copy Markdown
Owner

@meain meain commented Mar 6, 2026

  • generateProgressSummary now shows tool arguments in compact JSON format
    instead of the generic "Calling ..." message, giving users clearer
    visibility into what each tool call is doing
  • Add MCPManager.GetToolDisplayName to strip the internal "mcp__"
    prefix from MCP tool names, showing a cleaner "server:tool" format in
    both progress indicators and --show-commands output

https://claude.ai/code/session_014PBU2AUUYoCw3UpcW7YFyS

- generateProgressSummary now shows tool arguments in compact JSON format
  instead of the generic "Calling <func>..." message, giving users clearer
  visibility into what each tool call is doing
- Add MCPManager.GetToolDisplayName to strip the internal "mcp_<server>_"
  prefix from MCP tool names, showing a cleaner "server:tool" format in
  both progress indicators and --show-commands output

https://claude.ai/code/session_014PBU2AUUYoCw3UpcW7YFyS
@meain meain requested a review from Copilot March 6, 2026 04:18
@meain meain changed the title Improve tool display: show args in progress and clean MCP tool names - generateProgressSummary now shows tool arguments in compact JSON format instead of the generic "Calling <func>..." message, giving users clearer visibility into what each tool call is doing - Add MCPManager.GetToolDisplayName to strip the internal "mcp_<server>_" prefix from MCP tool names, showing a cleaner "server:tool" format in both progress indicators and --show-commands output https://claude.ai/code/session_014PBU2AUUYoCw3UpcW7YFyS Improve tool display: show args in progress and clean MCP tool names - generateProgressSummary now shows tool arguments in compact JSON format instead of the generic "Calling <func>..." message, giving users clearer visibility into what each tool call is doing - Add MCPManager.GetToolDisplayName to strip the internal "mcp_<server>_" prefix from MCP tool names, showing a cleaner "server:tool" format in both progress indicators and --show-commands output https://claude.ai/code/session_014PBU2AUUYoCw3UpcW7YFyS Mar 6, 2026
@meain meain changed the title Improve tool display: show args in progress and clean MCP tool names - generateProgressSummary now shows tool arguments in compact JSON format instead of the generic "Calling <func>..." message, giving users clearer visibility into what each tool call is doing - Add MCPManager.GetToolDisplayName to strip the internal "mcp_<server>_" prefix from MCP tool names, showing a cleaner "server:tool" format in both progress indicators and --show-commands output https://claude.ai/code/session_014PBU2AUUYoCw3UpcW7YFyS Improve tool display: show args in progress and clean MCP tool names Mar 6, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the user-facing display of tool calls in two ways: (1) the progress indicator now shows tool arguments in a compact JSON format instead of a generic "Calling <func>..." message, and (2) MCP tool names are displayed in a cleaner server:tool format by stripping the internal mcp_<server>_ prefix. These changes affect both the inline progress indicator (shown during tool execution) and the --show-commands output.

Changes:

  • generateProgressSummary in application.go now round-trips args through JSON unmarshal/marshal to produce compact, key-sorted JSON, truncated to 50 characters, and displays them alongside the function name.
  • A new GetToolDisplayName method on MCPManager strips the mcp_<server>_ prefix from tool names and returns a server:tool display format.
  • handleMCPToolCall uses the new display name for both progress indicators and --show-commands output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
mcp.go Adds GetToolDisplayName method to MCPManager for cleaner MCP tool name display
application.go Rewrites generateProgressSummary to show compact JSON args; uses GetToolDisplayName in MCP tool call handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread application.go Outdated
Co-authored-by: Copilot <[email protected]>
@meain
Copy link
Copy Markdown
Owner Author

meain commented Mar 11, 2026

While this fixes a few issues, not exactly doing what I want.

@meain meain closed this Mar 11, 2026
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