Repository navigation
feat(server): MCP tools to manage threads and answer their requests - #122
Merged
Merged
Conversation
adampeterhiggins
force-pushed
the
ah/mcp-write-6-started-by-ui
branch
from
October 1, 2026 08:34
9794f50 to
df45f1d
Compare
Adds update_thread (title, model, runtime and interaction mode) and set_thread_state (archive, settle, pin, snooze, stop, and their undo) to the operate toolkit, and respond_to_request, listed only to agent access tokens, for answering a thread's approvals and questions as the user. wait_for_thread now returns the thread's open requests with the decisions or question options they accept. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
adampeterhiggins
force-pushed
the
ah/mcp-write-7-thread-lifecycle-tools
branch
from
October 1, 2026 08:35
7af1cb2 to
390b09d
Compare
adampeterhiggins
changed the base branch from
ah/mcp-write-6-started-by-ui
to
main
October 1, 2026 08:35
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.
Stack 7 of 8: agents operate T3 Code over MCP. Based on #121.
The operate toolkit could start, message, wait on and stop threads, but not do the rest of what the sidebar offers. An external supervisor also had no way to unblock a thread waiting on an approval.
update_thread. Title, model, runtime mode and interaction mode, viathread.meta.update,thread.runtime-mode.setandthread.interaction-mode.set. A thread agent's runtime-mode request is capped at its own mode, as increate_thread.set_thread_state. archive / unarchive, settle / unsettle, pin / unpin, snooze (needssnoozeUntil) / unsnooze, and stop. Every way in has its way out. Delete is deliberately not offered.respond_to_request(approvaldecisionor questionanswers):McpActor.tokenToolsVisiblepredicate, so thread agents never see it.wait_for_threadreports open requests. It now returnspendingRequests, with each approval's accepted decisions and each question's options. They're derived with the decider'sopenRequests(now exported), so they match what the decider will accept.docs/user/agent-access.md, the fork-differences entry and the operate access description updated.Testing:
snoozeUntilrequired);update_thread's runtime cap.update_threadandset_thread_statebut notrespond_to_request;/mcp/operatelistsrespond_to_request.src/mcp+ decider tests 247/247, client-runtime work-log 440/440.tscis clean for server and web.QueryMcpServer.test.tsreturned a 404 once, in one of nine runs, while the fullsrc/mcpsuite ran in parallel. Eight reruns passed.Done by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code