.env.example 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. # Gogs MCP Server Configuration
  2. # Required: URL of your Gogs server instance
  3. GOGS_SERVER_URL=https://your-gogs-server.com
  4. # Optional but recommended: Gogs access token for authenticated operations
  5. # Generate this from your Gogs instance: Settings → Applications → Generate New Token
  6. GOGS_ACCESS_TOKEN=your-access-token-here
  7. # Optional: Restrict access to a specific repository (format: owner/repo)
  8. # When set, only this repository can be accessed and repo parameters become optional
  9. # Example: GOGS_REPO=myuser/myproject
  10. # GOGS_REPO=
  11. # Optional: Disable TLS certificate verification (default: false)
  12. # Only enable this if your Gogs server uses a self-signed certificate.
  13. # WARNING: this makes the connection vulnerable to man-in-the-middle attacks,
  14. # which can expose your access token. Never enable it over an untrusted network.
  15. # GOGS_INSECURE_TLS=true
  16. # Transport mode: 'stdio' (default) or 'http'
  17. # - stdio: For use with MCP clients (Claude Desktop, etc.)
  18. # - http: For HTTP-based access with SSE
  19. TRANSPORT_MODE=stdio
  20. # HTTP server configuration (only used when TRANSPORT_MODE=http)
  21. HTTP_PORT=3000
  22. HTTP_HOST=0.0.0.0
  23. # Node environment (automatically set in Docker, but can override)
  24. # NODE_ENV=production