Skip to content

feat: show item count in list pane header#1178

Open
Christian-Sidak wants to merge 1 commit intomodelcontextprotocol:mainfrom
Christian-Sidak:feat/show-item-count
Open

feat: show item count in list pane header#1178
Christian-Sidak wants to merge 1 commit intomodelcontextprotocol:mainfrom
Christian-Sidak:feat/show-item-count

Conversation

@Christian-Sidak
Copy link
Copy Markdown

Summary

  • Displays the total number of items next to the list pane title (e.g. "Tools (5)") when items have been loaded
  • The count is shown in the shared ListPane component, so it applies to Tools, Resources, Prompts, Tasks, and Apps tabs
  • Count is hidden when no items are present

Closes #1171

Test plan

  • Existing ListPane tests pass
  • Existing ToolsTab tests pass
  • Added tests for count visibility (shown when items present, hidden when empty)

Display the total number of items next to the list title (e.g. "Tools (5)")
when items are present. This helps users quickly see how many tools,
resources, or prompts an MCP server exposes, which is useful for clients
with tool count limits.

Closes modelcontextprotocol#1171
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.

[feat] Show count of Tools

1 participant