You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`-i`: Required for passing configuration via stdin
262
263
-`-v /var/run/docker.sock:/var/run/docker.sock`: Required for spawning backend MCP servers
264
+
-`-v /path/to/logs:/tmp/gh-aw/mcp-logs`: Optional but recommended for persistent logs (path matches default or `MCP_GATEWAY_LOG_DIR`)
263
265
-`-p <host>:<container>`: Port mapping must match `MCP_GATEWAY_PORT`
264
266
265
267
### Validation Checks
@@ -299,8 +301,20 @@ MCPG provides comprehensive logging of all gateway operations to help diagnose i
299
301
300
302
### Log File Location
301
303
302
-
By default, logs are written to `/tmp/gh-aw/mcp-logs/mcp-gateway.log`. This location can be configured using the `--log-dir` flag or `MCP_GATEWAY_LOG_DIR` environment variable:
304
+
By default, logs are written to `/tmp/gh-aw/mcp-logs/mcp-gateway.log`. This location can be configured using either:
303
305
306
+
1.**`MCP_GATEWAY_LOG_DIR` environment variable** - Sets the default log directory
307
+
2.**`--log-dir` flag** - Overrides the environment variable and default
308
+
309
+
The precedence order is: `--log-dir` flag → `MCP_GATEWAY_LOG_DIR` env var → default (`/tmp/gh-aw/mcp-logs`)
0 commit comments