Add worktree handoff and status tools to the t3-code MCP server (#3754)

Expose MCP tools for worktree handoff and status inspection, with focused server and contract coverage.

Co-authored-by: codex <[email protected]>
This commit is contained in:
David Whatleyandcodex authored and Julius Marminge committed 2026-08-07 13:25:10 +02:00
1 parent d3319df541
commit 83c2c5de03
19 files changed
+2494 -47

No files matched your search

@@ -65,6 +65,7 @@ export class GitWorkflowService extends Context.Service<
readonly createWorktree: (
input: VcsCreateWorktreeInput,
) => Effect.Effect<VcsCreateWorktreeResult, GitCommandError>;
readonly listLocalBranchNames: (cwd: string) => Effect.Effect<string[], GitCommandError>;
readonly fetchRemote: (input: {
readonly cwd: string;
readonly remoteName: string;
@@ -303,6 +304,10 @@ export const make = Effect.gen(function* () {
ensureGitCommand("GitWorkflowService.createWorktree", input.cwd).pipe(
Effect.andThen(git.createWorktree(input)),
),
listLocalBranchNames: (cwd) =>
ensureGitCommand("GitWorkflowService.listLocalBranchNames", cwd).pipe(
Effect.andThen(git.listLocalBranchNames(cwd)),
),
fetchRemote: (input) =>
ensureGitCommand("GitWorkflowService.fetchRemote", input.cwd).pipe(
Effect.andThen(git.fetchRemote(input)),