So I was trying to give my current personal AI project access to Gitea, and had to read the code to get it working.  If you want to start it up on docker and use http as the transport, then your docker-compose is:-

version: "3.8"

services:
gitea-mcp:
  image: gitea/gitea-mcp-server:latest
  container_name: gitea-mcp
  restart: no
  ports:
    - "8080:8080"
  environment:
    - MCP_MODE=http
    - GITEA_URL=https://yourgiteainstance
    - GITEA_TOKEN=yoursecrettoken
 
Permalink