quick fix
This commit is contained in:
@@ -23,10 +23,13 @@ The `GITEA_TOKEN` must be a token belonging to a user that has at least read acc
|
||||
|
||||
| Variable | Required | Default | Description |
|
||||
|---|---|---|---|
|
||||
| `MCP_HOST` | No | `0.0.0.0` | Interface to bind to |
|
||||
| `MCP_HOST` | No | `127.0.0.1` | Interface to bind to |
|
||||
| `MCP_PORT` | No | `8080` | Port to listen on |
|
||||
| `MCP_DOMAIN` | No | — | Public domain name (used for Traefik labels in Docker) |
|
||||
| `LOG_LEVEL` | No | `INFO` | Log level: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL` |
|
||||
| `STARTUP_VALIDATE_GITEA` | No | `true` | Validate Gitea token and connectivity at startup via `/api/v1/user` |
|
||||
|
||||
If startup validation fails with `403 Forbidden`, the token is authenticated but lacks permission to access `/api/v1/user`. Grant the bot user token the required API scope/permissions, or temporarily set `STARTUP_VALIDATE_GITEA=false` in controlled troubleshooting environments.
|
||||
|
||||
---
|
||||
|
||||
@@ -84,10 +87,11 @@ GITEA_URL=https://gitea.example.com
|
||||
GITEA_TOKEN=abcdef1234567890abcdef1234567890
|
||||
|
||||
# Server
|
||||
MCP_HOST=0.0.0.0
|
||||
MCP_HOST=127.0.0.1
|
||||
MCP_PORT=8080
|
||||
MCP_DOMAIN=mcp.example.com
|
||||
LOG_LEVEL=INFO
|
||||
STARTUP_VALIDATE_GITEA=true
|
||||
|
||||
# Auth
|
||||
AUTH_ENABLED=true
|
||||
|
||||
@@ -77,7 +77,7 @@ make run
|
||||
# or: python -m aegis_gitea_mcp.server
|
||||
```
|
||||
|
||||
The server starts on `http://0.0.0.0:8080` by default.
|
||||
The server starts on `http://127.0.0.1:8080` by default.
|
||||
|
||||
Verify it is running:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user