This guide explains how to safely uninstall XcodeBuildMCP from your system, including removing it from MCP client configurations and project repositories.
The uninstaller handles removal from:
-
MCP Client Configurations
- Claude Code (
~/.claude.json) - Claude Desktop (
~/.config/claude/mcp.json) - Cursor (
~/.cursor/mcp.json) - Factory Droid (
~/.factory/mcp.json)
- Claude Code (
-
Project Repositories
- AGENTS.md
- CLAUDE.md
- AGENT_QUICK_START.md
- INSTALLER-USAGE.md
- INSTALL-XCODE-SCRIPTS.md
- AVP_WORKFLOW_GUIDE.md
- .claude/ directory
- .claude/scripts/ directory
-
Installation Directory (optional)
- XcodeBuildMCP source code and build artifacts
Both a Bash script and Python script are provided for maximum compatibility.
Important: Both scripts fully support repository paths with spaces (e.g., /path/to/My Projects/repo).
bash uninstall-xcodebuildmcp.sh [options]Requirements:
- Bash 4.0+
jq(optional, for automatic JSON parsing)
python3 uninstall-xcodebuildmcp.py [options]Requirements:
- Python 3.7+
- No external dependencies
Run without any flags to see what will be removed without actually removing anything:
# Bash
bash uninstall-xcodebuildmcp.sh
# Python
python3 uninstall-xcodebuildmcp.pyUse the --force flag to actually remove files:
# Bash
bash uninstall-xcodebuildmcp.sh --force
# Python
python3 uninstall-xcodebuildmcp.py --forceCreate timestamped backups before removing (stored in ~/.xcodebuildmcp-backups/):
# Bash
bash uninstall-xcodebuildmcp.sh --force --backup
# Python
python3 uninstall-xcodebuildmcp.py --force --backupAlso remove the XcodeBuildMCP installation itself:
# Bash
bash uninstall-xcodebuildmcp.sh --force --remove-installation
# Python
python3 uninstall-xcodebuildmcp.py --force --remove-installation# Bash - backup and remove installation
bash uninstall-xcodebuildmcp.sh --force --backup --remove-installation
# Python - backup and remove installation
python3 uninstall-xcodebuildmcp.py --force --backup --remove-installationbash uninstall-xcodebuildmcp.shOutput example:
╔════════════════════════════════════════════════════════════════╗
║ XcodeBuildMCP Uninstaller ║
╚════════════════════════════════════════════════════════════════╝
Step 1: Removing from MCP Client Configurations
─────────────────────────────────────────────────
✓ Removed XcodeBuildMCP from /Users/username/.claude.json
⊘ Config file not found: /Users/username/.config/claude/mcp.json
✓ Removed XcodeBuildMCP from /Users/username/.cursor/mcp.json
⊘ Config file not found: /Users/username/.factory/mcp.json
Step 2: Removing Documentation Files
─────────────────────────────────────────────────
Enter path to repository to clean (or press Enter to skip): /path/to/repo1
✓ Removed: AGENTS.md
✓ Removed: CLAUDE.md
...
The script will show you:
- Which MCP client configurations will be modified
- Which documentation files will be removed
- Which directories will be cleaned
- Any files that couldn't be processed
If everything looks correct, run with --force:
bash uninstall-xcodebuildmcp.sh --forceCheck that:
- MCP configurations no longer reference XcodeBuildMCP
- Documentation files have been removed from repositories
- Installation directory is gone (if
--remove-installationwas used)
# Verify MCP config
cat ~/.claude.json | grep XcodeBuildMCP
# (should return nothing)
# Check for remaining documentation
grep -r "AGENT_QUICK_START" /path/to/repo
# (should return nothing)If you used --backup, backups are saved in:
~/.xcodebuildmcp-backups/YYYYMMDD_HHMMSS/
To restore a specific file:
# Example: Restore Claude Code configuration
cp ~/.xcodebuildmcp-backups/20250121_140530/claude.json ~/.claude.json
# Example: Restore repository documentation
cp ~/.xcodebuildmcp-backups/20250121_140530/docs/* /path/to/repo/If backups weren't created, you can manually restore by:
-
Reinstalling XcodeBuildMCP
cd XcodeBuildMCP npm run build -
Re-running the installer scripts
bash install-xcode-scripts.sh
-
Re-configuring MCP clients to point to XcodeBuildMCP
Your MCP configuration file has invalid JSON. Fix it manually:
# Use jq to validate and fix
jq . ~/.claude.jsonThe Bash script uses jq for JSON processing. Either:
- Install jq:
brew install jq - Use the Python script instead:
python3 uninstall-xcodebuildmcp.py - Manually edit JSON files to remove XcodeBuildMCP
Make sure you used the --force flag:
bash uninstall-xcodebuildmcp.sh --forceAfter uninstallation, you may need to:
-
Restart your IDE/Editor
# Kill and restart Claude Code, Cursor, etc. -
Clear MCP tool cache
- Restart your IDE/Editor
- Quit and relaunch MCP clients
-
Verify configuration
cat ~/.claude.json | grep -i xcode # (should be empty)
If XcodeBuildMCP is installed in a non-standard location, manually specify it:
Bash:
# Edit the script to add your path to installation_paths array
vi uninstall-xcodebuildmcp.shPython:
# Edit the script to modify installation_paths list
vi uninstall-xcodebuildmcp.pyBoth scripts support a "dry run" mode. Run without --force:
bash uninstall-xcodebuildmcp.sh
python3 uninstall-xcodebuildmcp.pyThis shows exactly what would be removed without making any changes.
Integrate into your own installation/deployment scripts:
Bash:
#!/bin/bash
source uninstall-xcodebuildmcp.sh
remove_mcp_config "/path/to/config.json"Python:
from uninstall_xcodebuildmcp import XcodeBuildMCPUninstaller
uninstaller = XcodeBuildMCPUninstaller(force=True, backup=True)
uninstaller.run()Before:
{
"XcodeBuildMCP": {
"command": "node",
"args": ["/path/to/build/index.js"]
},
"OtherTool": {
"command": "node",
"args": ["/path/to/other.js"]
}
}After:
{
"OtherTool": {
"command": "node",
"args": ["/path/to/other.js"]
}
}These files will be removed from each repository:
AGENTS.md- Agent-specific guidanceCLAUDE.md- Project documentationAGENT_QUICK_START.md- Quick start guideINSTALLER-USAGE.md- Installer documentationINSTALL-XCODE-SCRIPTS.md- Script installation guideAVP_WORKFLOW_GUIDE.md- visionOS workflow guide
These directories will be removed:
.claude/- Configuration directory.claude/scripts/- Custom scripts directory
If you prefer to manually remove XcodeBuildMCP:
Edit each configuration file and remove the XcodeBuildMCP entry:
# Claude Code
nano ~/.claude.json
# Claude Desktop
nano ~/.config/claude/mcp.json
# Cursor
nano ~/.cursor/mcp.json
# Factory Droid
nano ~/.factory/mcp.json# Remove documentation files
rm AGENTS.md CLAUDE.md AGENT_QUICK_START.md
rm INSTALLER-USAGE.md INSTALL-XCODE-SCRIPTS.md AVP_WORKFLOW_GUIDE.md
# Remove configuration directory
rm -rf .claude/# If installed locally
rm -rf ~/Projects/dev/XcodeBuildMCP
# If installed globally
npm uninstall -g xcodebuildmcpA: No. Uninstallation only removes:
- MCP server registration
- Documentation files
- Installation directory (if
--remove-installationused)
Your project code remains unchanged.
A: Yes. Run the installer script again:
bash install-xcode-scripts.shA: Manually edit that specific configuration file:
# Edit and remove XcodeBuildMCP entry
jq 'del(.XcodeBuildMCP)' ~/.claude.json > ~/.claude.json.tmp
mv ~/.claude.json.tmp ~/.claude.jsonA: None, as long as no other tools depend on XcodeBuildMCP. The uninstaller:
- Only removes XcodeBuildMCP configuration
- Leaves all other configurations intact
- Doesn't affect other npm packages or tools
A: No. To update XcodeBuildMCP:
cd ~/Projects/dev/XcodeBuildMCP
git pull origin main
npm run buildThe MCP configuration will automatically use the updated version.
For issues or questions about uninstallation:
- Check this guide's Troubleshooting section
- Review the script output carefully
- Try the alternative script (Bash vs Python)
- Check backups if you used
--backup
Last Updated: 2025-01-21