fed1ab3ff5
- install.sh: cross-platform downloader for gitea-mcp binary - goose-config.yaml: ready-to-copy config entry for ~/.config/goose/config.yaml - README.md: comprehensive setup guide with architecture, tool list, and troubleshooting
45 lines
1.3 KiB
Bash
Executable File
45 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# install.sh — Download and install gitea-mcp for Goose+Gitea integration
|
|
set -euo pipefail
|
|
|
|
VERSION="${GITEA_MCP_VERSION:-1.3.0}"
|
|
BINDIR="${BINDIR:-/usr/local/bin}"
|
|
|
|
detect_platform() {
|
|
local os arch
|
|
case "$(uname -s)" in
|
|
Darwin) os="Darwin" ;;
|
|
Linux) os="Linux" ;;
|
|
*) echo "Unsupported OS: $(uname -s)"; exit 1 ;;
|
|
esac
|
|
case "$(uname -m)" in
|
|
arm64|aarch64) arch="arm64" ;;
|
|
x86_64|amd64) arch="x86_64" ;;
|
|
*) echo "Unsupported arch: $(uname -m)"; exit 1 ;;
|
|
esac
|
|
echo "${os}_${arch}"
|
|
}
|
|
|
|
PLATFORM=$(detect_platform)
|
|
TARBALL="gitea-mcp_${PLATFORM}.tar.gz"
|
|
URL="https://gitea.com/gitea/gitea-mcp/releases/download/v${VERSION}/${TARBALL}"
|
|
|
|
echo "==> Platform: ${PLATFORM}"
|
|
echo "==> Downloading gitea-mcp v${VERSION}..."
|
|
curl -fsSL "$URL" -o "/tmp/${TARBALL}"
|
|
|
|
echo "==> Extracting..."
|
|
tar -xzf "/tmp/${TARBALL}" -C /tmp/
|
|
|
|
echo "==> Installing to ${BINDIR}/gitea-mcp..."
|
|
sudo mkdir -p "$BINDIR"
|
|
sudo mv /tmp/gitea-mcp "${BINDIR}/gitea-mcp"
|
|
sudo chmod +x "${BINDIR}/gitea-mcp"
|
|
|
|
rm -f "/tmp/${TARBALL}"
|
|
|
|
echo "==> Done! Version: $(${BINDIR}/gitea-mcp -v)"
|
|
echo ""
|
|
echo "Next: Add the config entry from goose-config.yaml to ~/.config/goose/config.yaml"
|
|
echo " Then restart Goose and start a NEW chat session."
|