Skip to content

chore(SMI-1567): add prefix filtering to tool list and event topics#678

Merged
calclavia merged 1 commit intomainfrom
calclavia/prefix-list-filter
Feb 27, 2026
Merged

chore(SMI-1567): add prefix filtering to tool list and event topics#678
calclavia merged 1 commit intomainfrom
calclavia/prefix-list-filter

Conversation

@calclavia
Copy link
Contributor

What's added in this PR?

Added optional [prefix] positional argument to smithery tool list and smithery event topics commands. When provided, the prefix filters results to only those whose name/identifier starts with the given prefix (case-insensitive). This enables efficient scoping for hierarchically-named tools like "issues.create", "issues.list".

Changes:

  • smithery tool list [connection] [prefix] - filters displayed tools by prefix
  • smithery event topics <connection> [prefix] - filters displayed topics by prefix
  • Updated CLI help text with clear argument documentation and usage examples
  • Added comprehensive test cases for prefix filtering behavior

Implementation details:

  • Prefix filtering applies before pagination (existing pagination behavior unchanged when no prefix)
  • Filtering is case-insensitive (consistent with existing matching behavior)
  • Prefix info included in JSON output for programmatic use

What's the issues or discussion related to this PR?

Resolves SMI-1567: Support prefix listing in CLI. Tools and event topics are often named hierarchically, and a prefix filter enables models to efficiently scope results without needing to fetch and filter everything.

Add optional [prefix] positional argument to `smithery tool list` and
`smithery event topics` commands to filter results by name prefix
(case-insensitive). Tools and event topics are often named hierarchically
(e.g. "issues.create", "user.updated"), so prefix filtering enables
efficient scoping. Updated CLI help text with clear argument documentation
and examples. Added test cases to verify prefix filtering behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@calclavia calclavia changed the title feat: add prefix filtering to tool list and event topics feat(SMI-1567): add prefix filtering to tool list and event topics Feb 27, 2026
@calclavia calclavia changed the title feat(SMI-1567): add prefix filtering to tool list and event topics chore(SMI-1567): add prefix filtering to tool list and event topics Feb 27, 2026
Copy link
Contributor Author

calclavia commented Feb 27, 2026

Merge activity

  • Feb 27, 9:32 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 27, 9:33 AM UTC: @calclavia merged this pull request with Graphite.

@calclavia calclavia merged commit cdb28e8 into main Feb 27, 2026
3 of 4 checks passed
@calclavia calclavia deleted the calclavia/prefix-list-filter branch February 27, 2026 09:33
@smithery-chore-bot smithery-chore-bot bot mentioned this pull request Feb 27, 2026
arjunkmrm pushed a commit that referenced this pull request Feb 27, 2026
Automated Release PR
---


## [4.4.0](v4.3.0...v4.4.0)
(2026-02-27)


### Features

* surface tool annotations in tool list output
([#679](#679))
([b949eb2](b949eb2))


### Chores

* **SMI-1567:** add prefix filtering to tool list and event topics
([#678](#678))
([cdb28e8](cdb28e8))
* update dev bootstrap for SDK v4.1.0
([#676](#676))
([7a105de](7a105de))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: smithery-chore-bot[bot] <259537197+smithery-chore-bot[bot]@users.noreply.github.com>
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.

1 participant