Skip to content

feat: surface tool annotations in tool list output#679

Merged
arjunkmrm merged 1 commit intomainfrom
feat/tool-list-annotations
Feb 27, 2026
Merged

feat: surface tool annotations in tool list output#679
arjunkmrm merged 1 commit intomainfrom
feat/tool-list-annotations

Conversation

@arjunkmrm
Copy link
Collaborator

Summary

  • Include MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) in smithery tool list JSON output
  • One-line fix in formatToolRow() — annotations were already available from the MCP SDK but being stripped before output
  • Enables consumers (e.g. smoke test scripts) to filter read-only vs write tools programmatically

Test plan

  • smithery tool list <connection> --limit 3 returns annotations field per tool
  • All 338 existing tests pass
  • Build succeeds

🤖 Generated with Claude Code

The MCP runtime already sets readOnlyHint, destructiveHint, and
idempotentHint on tools, but formatToolRow was stripping them.
This enables consumers (e.g. smoke test scripts) to filter by
read-only vs write tools.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arjunkmrm arjunkmrm force-pushed the feat/tool-list-annotations branch from 5640b27 to dc195ad Compare February 27, 2026 09:55
@arjunkmrm arjunkmrm merged commit b949eb2 into main Feb 27, 2026
4 checks passed
@arjunkmrm arjunkmrm deleted the feat/tool-list-annotations branch February 27, 2026 09:58
@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