Repository navigation
feat(mcp): annotate tools and publish typed output schemas - #20
Merged
Merged
Conversation
Every tool sets title, readOnlyHint, destructiveHint, idempotentHint and openWorldHint. Tools with a structured result publish an object-root outputSchema and return the same JSON in structuredContent and in the text block. Tools that answer with one sentence stay text only. A stateless 2026-07-28 test calls server/discover, tools/list and tools/call without initialize.
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Aether uses MCP standards where they fit. This is the first step: clients get tool metadata and typed results, and the server is on protocol 2026-07-28. MCP Tasks and URL elicitation come in later PRs on top of this one.
What changes
3.2.03.9(protocol 2026-07-28:server/discover, stateless_meta)title,readOnlyHint,destructiveHint,idempotentHint,openWorldHinton all 29 toolsoutputSchemastructuredContentremoved)aether.task.sendandaether.inbox.readshareSentResultOutput. Theuntrustedobject stays nested and unchanged.tools/listorder was already deterministic: rmcp sorts tools by name.Look at: the annotation table in
every_tool_pins_annotation_hints(crates/aether/src/mcp/tools/mod.rs). These values decide which tools a client may run without a prompt.Evidence
mise run fmt: pass.mise run lint: pass.cargo test --workspace: pass (478 + 79 + 8 + 3 unit and integration tests, 98 feature scenarios).mise run hermes-plugin-test: OK, 3 skipped (Hermes is not onPYTHONPATH).outputSchemafor every tool, objectstructuredContentfor typed results, and a stateless 2026-07-28server/discover→tools/list→tools/callrun withoutinitialize. The existing 2025-06-18initializetest stays.Merge danger
Door: two-way
Blast radius: one node
The text block keeps the same JSON fields, so clients that read text keep working. JSON key order in the text can change, because typed structs now write it. A client that compares the text byte by byte, not as JSON, could see a difference.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.