Skip to content

feat(mcp): open the owner page with URL elicitation - #21

Merged
TudorAndrei merged 2 commits into
mainfrom
feat/mcp-url-elicitation
Nov 30, 2026
Merged

TudorAndrei merged 2 commits into
mainfrom
feat/mcp-url-elicitation

Conversation

@TudorAndrei

@TudorAndrei TudorAndrei commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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 arguments
Loading
  • Tools: aether.access.request (link: the caller page), aether.settings.update_policy and aether.change (link: advanced#pending).
  • The page stays the only trust boundary. The retry only reads the node store. It never treats the client's accept/decline as a confirmation, and it never makes a second draft or pending change.
  • Left out on purpose: form-mode elicitation. A client, or an agent that drives one, can answer a form without the owner.

Look at: crates/aether/src/mcp/elicitation.rs, which seals and opens requestState. The key is blake3::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 on PYTHONPATH).
  • New tests: an elicitation for a declaring client, the old text result for other clients, a retry before and after the owner confirms on the page, a mismatched requestState, and no duplicate draft on a retry.
  • Not checked: a live client that supports URL elicitation. No supporting client is in our test setup.

Merge danger

Door: two-way
Blast radius: one node

aether node serve now writes admin-page.url to 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 rmcp request-state feature adds hmac 0.13 to the lock file.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@TudorAndrei
TudorAndrei force-pushed the feat/mcp-url-elicitation branch from 565e66e to f5a92e6 Compare November 30, 2026 12:18
@TudorAndrei
TudorAndrei changed the base branch from feat/mcp-tool-metadata to main November 30, 2026 12:18
@TudorAndrei TudorAndrei reopened this Nov 30, 2026
@TudorAndrei
TudorAndrei force-pushed the feat/mcp-url-elicitation branch 2 times, most recently from b86f4ce to 38bf27f Compare November 30, 2026 12:40
@TudorAndrei
TudorAndrei changed the base branch from main to feat/mcp-progress November 30, 2026 12:40
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
TudorAndrei force-pushed the feat/mcp-url-elicitation branch from 38bf27f to c5948b7 Compare November 30, 2026 12:52
@TudorAndrei
TudorAndrei changed the base branch from feat/mcp-progress to main November 30, 2026 12:52
@TudorAndrei
TudorAndrei merged commit 1d73996 into main Nov 30, 2026
6 checks passed
@TudorAndrei
TudorAndrei deleted the feat/mcp-url-elicitation branch November 30, 2026 12:52
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