We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/flightctl/flightctl-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
add-dco-signoffs.shโข2 kB
#!/bin/bash
# Script to add DCO sign-offs to existing git history
# Safe to run since this repo hasn't been shared publicly
set -e # Exit on any error
echo "๐ Adding DCO sign-offs to git history"
echo "======================================="
# Check if we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "โ Error: Not in a git repository"
exit 1
fi
# Check current status
echo "๐ Current git status:"
git status --porcelain
if [ -n "$(git status --porcelain)" ]; then
echo "โ ๏ธ Warning: You have uncommitted changes."
echo "Please commit or stash them before running this script."
echo ""
echo "To stash: git stash"
echo "To commit: git add -A && git commit -s -m 'Work in progress'"
exit 1
fi
# Show current history
echo ""
echo "๐ Current commit history:"
git log --oneline --no-merges
echo ""
echo "๐ Creating backup branch..."
git branch backup-before-dco-$(date +%Y%m%d-%H%M%S) || true
echo ""
echo "โ๏ธ Adding DCO sign-offs to all commits..."
echo " (This will open an editor - just save and exit without changes)"
# The magic command - rewrite all commits with sign-offs
git rebase -i --root --signoff
echo ""
echo "โ DCO sign-offs added! Verifying..."
echo ""
echo "๐ Updated commit history with sign-offs:"
git log --pretty=format:"%h %s%n%b" --no-merges | head -20
echo ""
echo "๐ Checking for DCO compliance:"
if git log --pretty=format:"%B" | grep -q "Signed-off-by:"; then
echo "โ DCO sign-offs found in commit messages"
else
echo "โ No DCO sign-offs found - something went wrong"
exit 1
fi
echo ""
echo "๐ Success! Your git history is now DCO compliant."
echo ""
echo "๐ค Next steps:"
echo "1. Review the history: git log --show-signature"
echo "2. If you've pushed before: git push --force-with-lease origin main"
echo "3. If this is a new repo: git push origin main"
echo ""
echo "๐งน Cleanup backup branches later with: git branch -d backup-before-dco-*"