atxtechbro / atxtechbro/dotfiles

[MCP Error] git_add fails on deleted files

Open
#1,103 1 comment 0 reactions 1 assignee Claimed by @atxtechbro View on GitHub
bug git mcp-tool-error
Dominant language
Shell
Stars
27
Forks
2
PR merge metrics
No merged PRs in 30d

Description

**Tool:**
mcp__git__git_add

**Expected behavior:**
Should stage deleted files just like standard `git add` command

**Actual behavior:**
Returns error: "Files not found in repository: mcp/tool-discovery.md" when trying to stage a deleted file

**Error message:**
```
Error: Tool execution failed: Files not found in repository: mcp/tool-discovery.md
```

**Context:**
Was trying to stage changes including a deleted file (mcp/tool-discovery.md) along with modified files. The standard git behavior allows staging deleted files.

**Workaround used:**
Used bash command `git add mcp/tool-discovery.md` which worked correctly

**Reproduction:**
1. Delete a file from the repository
2. Try to stage it with `mcp__git__git_add`
3. Observe the error

**Expected fix:**
The tool should detect deleted files and handle them appropriately, similar to how git add works natively.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.