mcp-server-git lazy fetch executes repository-configured programs
A repository could configure a promisor remote and command-bearing transport settings so a Git lazy fetch ran a program as the MCP server user. mcp-server-git 2026.11.18 disables lazy fetches and rejects promisor repositories on older Git versions.
mcp-server-git did not control Git transport configuration during lazy fetches. A repository-controlled promisor remote and settings such as remote.<name>.uploadpack or core.sshCommand could execute a program when a tool requested an absent object.
The Model Context Protocol servers project released mcp-server-git 2026.11.18 in v2.5.0. The fix sets GIT_NO_LAZY_FETCH=1 and rejects promisor repositories when the installed Git version cannot honor that setting.
Takeaway
Upgrade mcp-server-git to 2026.11.18. Restricting visible Git commands is insufficient when repository configuration can cause Git to start a transport program.