chore: add gitea mcp server config
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m2s

This commit is contained in:
Ahmed Darrazi 2026-06-06 13:52:56 +02:00
parent 03514b9e5b
commit b30ea50f8a

View File

@ -2,3 +2,26 @@
command = "./scripts/platform-sail"
args = ["artisan", "boost:mcp"]
cwd = "/Users/ahmeddarrazi/Documents/projects/wt-plattform"
[mcp_servers.gitea]
command = "bash"
args = [
"-lc",
'''
set -euo pipefail
ROOT="/Users/ahmeddarrazi/Documents/projects/wt-plattform"
for candidate in "$ROOT/.env" "$ROOT/apps/platform/.env"; do
if [ -f "$candidate" ] && grep -q '^GITEA_ACCESS_TOKEN=' "$candidate"; then
set -a
. "$candidate"
set +a
export GITEA_HOST="https://git.cloudarix.de"
exec docker run -i --rm -e GITEA_HOST -e GITEA_ACCESS_TOKEN docker.gitea.com/gitea-mcp-server -t stdio
fi
done
echo "GITEA_ACCESS_TOKEN not found in repo .env files" >&2
exit 1
''',
]