Repository navigation
feat(mcp): send progress notifications during task waits - #23
Merged
Merged
Conversation
TudorAndrei
force-pushed
the
feat/mcp-tasks
branch
from
November 30, 2026 12:18
e38b662 to
1cd4eff
Compare
TudorAndrei
force-pushed
the
feat/mcp-progress
branch
from
November 30, 2026 12:18
878fa74 to
b289399
Compare
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
force-pushed
the
feat/mcp-progress
branch
from
November 30, 2026 12:30
b289399 to
bc32e8d
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
A client without MCP Tasks support waits up to 20 s in
aether.task.send(or inaether.inbox.readwithwait_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)progressonly increases, andtotalis not set.progressToken, nothing changes. The MCP Tasks path returns at once and already hasstatusMessage, so it sends no progress.Look at:
crates/aether/src/mcp/wait_progress.rs, and the one hook inMcpServer::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 onPYTHONPATH).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-botwith what you need.