Repository navigation
feat(mcp): open the owner page with URL elicitation - #21
Merged
Merged
Conversation
TudorAndrei
force-pushed
the
feat/mcp-url-elicitation
branch
from
November 30, 2026 12:18
565e66e to
f5a92e6
Compare
TudorAndrei
force-pushed
the
feat/mcp-url-elicitation
branch
2 times, most recently
from
November 30, 2026 12:40
b86f4ce to
38bf27f
Compare
aether.access.request, aether.settings.update_policy and aether.change return an MCP 2026-07-28 input_required result with a URL elicitation when the client supports URL mode and the item waits for the owner. The link is the local admin page. The client calls the tool again with the sealed requestState. The retry only reads the node store: it never creates a second draft and never treats the elicitation answer as the owner's confirmation. Other clients keep the needs_confirmation result. The admin page writes its URL to admin-page.url while it runs. The requestState key is derived from the issuer key for this purpose only.
TudorAndrei
force-pushed
the
feat/mcp-url-elicitation
branch
from
November 30, 2026 12:52
38bf27f to
c5948b7
Compare
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
Some MCP tools end with "the owner must confirm on the Aether page". The agent can only tell the user this in text. MCP 2026-07-28 has a standard for this: a multi round-trip request with a URL-mode elicitation. The client opens the page for the user and calls the tool again. Stacked on #20.
What changes
stateDiagram-v2 [*] --> Pending: tool call makes a draft or pending change Pending --> Elicited: client supports URL elicitation Pending --> TextResult: other client (needs_confirmation, as before) Elicited --> Retry: client calls the tool again with requestState Retry --> Done: owner confirmed on the page (store says so) Retry --> TextResult: still pending (no second elicitation) Retry --> Ended: expired or removed on the page Retry --> Refused: requestState invalid or does not match the argumentsaether.access.request(link: the caller page),aether.settings.update_policyandaether.change(link:advanced#pending).Look at:
crates/aether/src/mcp/elicitation.rs, which seals and opensrequestState. The key isblake3::derive_key("aether mcp request-state v1", issuer key), and the state is bound to the tool name and to a digest of the arguments.Evidence
mise run fmt: pass.mise run lint: pass.cargo test --workspace: pass (484 + 79 + 8 + 3 tests, 98 feature scenarios).mise run hermes-plugin-test: OK, 3 skipped (Hermes is not onPYTHONPATH).requestState, and no duplicate draft on a retry.Merge danger
Door: two-way
Blast radius: one node
aether node servenow writesadmin-page.urlto the data directory and removes it when the page stops. After a crash the file stays. The link then fails to load, which tells the owner to start the node. The rmcprequest-statefeature addshmac 0.13to the lock file.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.