#!/bin/bash # Gitea MCP Setup Script set -e echo "Installing Gitea MCP server..." # Download binary (replace with actual download URL) BINARY_URL="https://gt.covalente.dk/api/packages/oval/generic/gitea-mcp/0.0.1/gitea-mcp_Darwin_arm64" INSTALL_DIR="/usr/local/bin" # Create install directory if it doesn't exist mkdir -p "$INSTALL_DIR" # Download binary echo "Downloading binary from $BINARY_URL..." curl -L "$BINARY_URL" -o "$INSTALL_DIR/gitea-mcp" chmod +x "$INSTALL_DIR/gitea-mcp" echo "Installation complete!" echo "Binary installed at: $INSTALL_DIR/gitea-mcp" # Verify installation if command -v gitea-mcp &> /dev/null; then echo "Verification successful!" gitea-mcp --version else echo "Warning: Binary not found in PATH" fi