From b30ea50f8a02f594abb8446a638e9a27e280b2a6 Mon Sep 17 00:00:00 2001 From: Ahmed Darrazi Date: Sat, 6 Jun 2026 13:52:56 +0200 Subject: [PATCH] chore: add gitea mcp server config --- .codex/config.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.codex/config.toml b/.codex/config.toml index 803d40d7..4ff1a7ec 100644 --- a/.codex/config.toml +++ b/.codex/config.toml @@ -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 +''', +]