git-worktree-mcp
by kingkillery
Overview
Manages Git worktrees and orchestrates parallel development workflows with AI agents using MCP integration.
Installation
npx github:kingkillery/git-worktree-mcpEnvironment Variables
- MCP_SERVERS
- NODE_ENV
- PARALLEL_EXPLORATION_TIMEOUT
- PARALLEL_EXPLORATION_MAX_AGENTS
- PARALLEL_EXPLORATION_AUTO_CLEANUP
Security Notes
The `ParManager` class utilizes `execSync` to execute shell commands, including `par send` which can send arbitrary commands to a tmux session via the `par_send_command` tool. This poses a significant security risk as it allows for remote code execution if an AI agent (or a malicious actor interacting with it) is permitted to send unverified commands. While other `execSync` calls are used with inputs derived from Zod-validated strings, the direct command injection potential through `par_send_command` is critical. The server interacts with the local file system extensively for worktree management and configuration file copying, requiring high trust in the execution environment.
Similar Servers
CodeMCP
Provides deep code intelligence (symbol navigation, impact analysis, architecture maps, ownership, risk assessment) to AI assistants, CLI, and HTTP API.
dev-kit-mcp-server
A Model Context Protocol (MCP) server targeted for agent development tools, providing scoped authorized operations in the root project directory.
mcp-server-for-Github
Provides comprehensive GitHub workflow automation for AI-powered development teams, including Actions monitoring, advanced PR management, intelligent code search, and complete file management.
AI-Prompt-Guide-MCP
Orchestrates AI agents for project management and development workflows by linking structured markdown specifications and tasks.