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:
1 parent
d957b368d6
commit
dee3de20fd
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)),
|
||||
|
||||
Reference in new issue
Block a user