Self-update mcptools to the latest version from GitHub releases.
# Check and upgrade to latest version
mcptools upgrade
# Force upgrade even if already on latest
mcptools upgrade --force- Version Check: Fetches latest release from
https://api.github.com/repos/cloudbridgeuy/mcptools/releases/latest - Comparison: Compares current version with latest (semantic versioning)
- Download: Downloads the appropriate binary for your OS/architecture
- Backup: Creates a backup of the current binary (
mcptools.backup) - Replace: Replaces the current binary with the new one
- Permissions: Sets executable permissions (Unix: 0o755)
The upgrade command automatically detects your platform:
| OS | Architecture | Asset Pattern |
|---|---|---|
| macOS | arm64 (M1/M2) | *-darwin-arm64 |
| macOS | x86_64 | *-darwin-x86_64 |
| Linux | x86_64 | *-linux-x86_64 |
| Linux | aarch64 | *-linux-aarch64 |
GitHub API has rate limits. If you hit them:
GitHub API returned status: 403 - You may have hit GitHub's rate limit.
Try again later or check https://github.com/cloudbridgeuy/mcptools/releases
If the binary is in a protected location:
Permission denied: cannot write to /usr/local/bin/mcptools
Solution: Use sudo mcptools upgrade or move the binary to a user-writable location.
If the upgrade fails during replacement, the command automatically restores from the backup.
If the automatic upgrade fails, you can manually:
- Visit https://github.com/cloudbridgeuy/mcptools/releases
- Download the appropriate binary for your platform
- Replace your existing
mcptoolsbinary - Make it executable:
chmod +x mcptools
Check your current version:
mcptools --version