feat(mcp): expose branch-backed workspace discovery - #10566
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a new MCP tool for discovering workspace branches and checkout paths, including wiring it into the default Claude read-only tool policy. The behavior is read-only and scoped, but the new capability and policy default change warrant human review. No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact
This comment will update automatically after the next completed run. |
2283b18 to
18c4af6
Compare
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
18c4af6 to
1cb479c
Compare
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
ce6934d to
b2ee14d
Compare
b2ee14d to
32e8ac5
Compare
32e8ac5 to
1634a97
Compare
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
9dac043 to
cf905d8
Compare
cf905d8 to
1dce00c
Compare
afc8fb8
into
t3code/codex-turn-mapping
Part 16/16 of the shared-core and MCP stack. Based on #10565.
Expose GitWorkflowService.listRefs for the calling thread workspace. Existing worktree handoff and status tools stay unchanged.
This discovers branch-backed refs/worktrees only. Detached unbound inventory and switching an existing checkout require a shared service operation and are intentionally not rebuilt inside MCP. The old workspace work is retained for that extraction.
MCP-only rebuild of #8685, #8680, preserving attribution to Julius Marminge's original work. Original branches remain available for separate service follow-ups.
Validation: The composed stack passes 94 tests across 12 focused files, including shared core MCP and real MCP/V2 integration, attachment intake, project RPC/service contracts, and client model command selection. Server/contracts/shared/client-runtime typechecks and targeted format/lint/diff checks pass. New behavior coverage lives with the shared operation; no per-tool mock suite was added. Current-head CI is shown below.
Layer size: 5 files, +65/-1. No domain-service production implementation or documentation files change in this MCP layer.
Prepared with Codex in the OpenAI agent runtime.
Note
Add
t3_worktree_listMCP tool for branch-backed workspace discoveryt3_worktree_listtool to the worktree toolkit that lists git refs using the caller's worktree path or the project workspace root.CLAUDE_READ_ONLY_T3_MCP_ALLOWED_TOOLSand theT3_MCP_TOOLSpresentation registry (label "List workspace branches"), and updates the Claude readonly allowlist test to cover the new tool.Macroscope summarized 1dce00c.