chore: add gitea mcp server config
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m2s
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m2s
This commit is contained in:
parent
03514b9e5b
commit
b30ea50f8a
@ -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
|
||||
''',
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user