Initial commit: Gitea MCP Server

This commit is contained in:
2026-04-10 21:57:19 -07:00
commit 1f27844dce
119 changed files with 25001 additions and 0 deletions
Executable
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BINARY_DIR="${HOME}/.cache/gitcoffee-mcp"
BINARY="$BINARY_DIR/gitea-mcp"
mkdir -p "$BINARY_DIR"
BUILD_NEEDED=false
if [ ! -f "$BINARY" ]; then
BUILD_NEEDED=true
else
SOURCE_HASH=$(find "$SCRIPT_DIR" -name "*.go" -newer "$BINARY" 2>/dev/null | head -1)
if [ -n "$SOURCE_HASH" ]; then
BUILD_NEEDED=true
fi
fi
if [ "$BUILD_NEEDED" = true ]; then
cd "$SCRIPT_DIR"
go build -v -o "$BINARY" .
fi
exec "$BINARY" "$@"