Files
leo-claude-mktplace/mcp-servers/gitea/run.sh
lmiranda f2bc1fc5d4 feat(gitea): migrate to published gitea-mcp package from Gitea PyPI
mcp-servers/gitea/ thinned to venv wrapper — source code removed,
package installed from registry. run.sh updated from mcp_server.server
to gitea_mcp.server. requirements.txt points to Gitea PyPI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:14:56 -05:00

21 lines
676 B
Bash
Executable File

#!/bin/bash
# Capture original working directory before any cd operations
# This should be the user's project directory when launched by Claude Code
export CLAUDE_PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$PWD}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CACHE_VENV="$HOME/.cache/claude-mcp-venvs/leo-claude-mktplace/gitea/.venv"
LOCAL_VENV="$SCRIPT_DIR/.venv"
if [[ -f "$CACHE_VENV/bin/python" ]]; then
PYTHON="$CACHE_VENV/bin/python"
elif [[ -f "$LOCAL_VENV/bin/python" ]]; then
PYTHON="$LOCAL_VENV/bin/python"
else
echo "ERROR: No venv found. Run: ./scripts/setup-venvs.sh" >&2
exit 1
fi
cd "$SCRIPT_DIR"
exec "$PYTHON" -m gitea_mcp.server "$@"