Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/server/src/mcp/toolkits/orchestrator/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ const BackgroundWaitTool = Tool.make("t3_background_wait", {
failure: OrchestratorMcpFailure,
failureMode: "return",
dependencies,
}).annotate(Tool.Title, "Wait on background work");
})
.annotate(Tool.Title, "Wait on background work")
// Only marks which tasks keep the thread Working; Claude Plan mode blocks tools without this.
.annotate(Tool.Readonly, true)
.annotate(Tool.Destructive, false);

const ScheduleTaskTool = Tool.make("schedule_task", {
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ describe("ClaudeAdapterV2 MCP query overrides", () => {
.map((tool) => `mcp__t3-code__${tool.name}`)
.sort();

// regression: #32022 Claude Plan mode asks before every non-read-only MCP call
assert.include(readOnlyToolNames, "mcp__t3-code__t3_background_wait");
assert.deepEqual(
[...ClaudeAdapterV2.CLAUDE_READ_ONLY_T3_MCP_ALLOWED_TOOLS].sort(),
readOnlyToolNames,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,7 @@ export const CLAUDE_T3_MCP_TOOL_WILDCARD = "mcp__t3-code__*";
export const CLAUDE_READ_ONLY_T3_MCP_ALLOWED_TOOLS: ReadonlyArray<string> = [
"mcp__t3-code__orchestrator_capabilities",
"mcp__t3-code__list_scheduled_tasks",
"mcp__t3-code__t3_background_wait",
"mcp__t3-code__t3_thread_list",
"mcp__t3-code__t3_thread_wait",
"mcp__t3-code__t3_worktree_status",
Expand Down
Loading