Skip to content

feat(mcp): send progress notifications during task waits - #23

Merged
TudorAndrei merged 1 commit into
mainfrom
feat/mcp-progress
Nov 30, 2026
Merged

TudorAndrei merged 1 commit into
mainfrom
feat/mcp-progress

Conversation

@TudorAndrei

@TudorAndrei TudorAndrei commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Why

A client without MCP Tasks support waits up to 20 s in aether.task.send (or in aether.inbox.read with wait_seconds) and sees nothing. MCP has a standard for this: notifications/progress. Stacked on #22.

What changes

stateDiagram-v2
    [*] --> Waiting: tool call with _meta.progressToken
    Waiting --> Delivered: task moves to working or host_state appears / progress 1 "Task sent to the agent."
    Delivered --> Delivered: host_state changes / progress +1 "The agent is working."
    Waiting --> Ended: task ends / progress +1 "The task finished."
    Delivered --> Ended: task ends / progress +1 "The task finished."
    Waiting --> Timeout: 20 s pass (status waiting, as before)
    Delivered --> Timeout: 20 s pass (status waiting, as before)
Loading
  • A notification goes out only when the task changes, never on a poll where nothing changed. progress only increases, and total is not set.
  • Without a progressToken, nothing changes. The MCP Tasks path returns at once and already has statusMessage, so it sends no progress.
  • A notification that fails to send does not fail the tool call.

Look at: crates/aether/src/mcp/wait_progress.rs, and the one hook in McpServer::wait_for.

Evidence

  • mise run fmt: pass.
  • mise run lint: pass.
  • cargo test --workspace: pass (491 + 82 + 8 + 3 tests, 98 feature scenarios).
  • mise run hermes-plugin-test: OK, 3 skipped (Hermes is not on PYTHONPATH).
  • New tests: a call with a token gets an increasing sequence of notifications and then the result; a call without a token gets none; an unchanged poll sends nothing.
  • Not checked: how a live client shows the notifications.

Merge danger

Door: two-way
Blast radius: none

The notifications go only to a client that asks for them with a progressToken.


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

Emit notifications/progress on state changes when the client supplies a progressToken, for aether.task.send and aether.inbox.read without changing the Tasks path.
@TudorAndrei
TudorAndrei changed the base branch from feat/mcp-tasks to main November 30, 2026 12:30
@TudorAndrei
TudorAndrei merged commit 13de6ce into main Nov 30, 2026
13 checks passed
@TudorAndrei
TudorAndrei deleted the feat/mcp-progress 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