Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

The MCP_GATEWAY_LOG_DIR environment variable was implemented but not documented in README.md or AGENTS.md.

Changes

  • Environment Variables section: Added MCP_GATEWAY_LOG_DIR with description that it sets the default for --log-dir flag
  • Logging section: Documented configuration precedence and usage patterns
    • Precedence order: --log-dir flag → MCP_GATEWAY_LOG_DIR env var → /tmp/gh-aw/mcp-logs
    • Added examples for both environment variable and command-line flag usage
  • Docker examples: Updated containerized mode documentation to show log directory mounting with MCP_GATEWAY_LOG_DIR
  • AGENTS.md: Added MCP_GATEWAY_LOG_DIR to environment variables reference

Usage

# Using environment variable
export MCP_GATEWAY_LOG_DIR=/var/log/mcp-gateway
./awmg --config config.toml

# Using command-line flag (overrides env var)
./awmg --config config.toml --log-dir /var/log/mcp-gateway

# Docker with custom log directory
docker run -e MCP_GATEWAY_LOG_DIR=/custom/logs \
  -v /host/logs:/custom/logs ...
Original prompt

Update readme with latest updates related to MCP_GATEWAY_LOG_DIR


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update README with latest MCP_GATEWAY_LOG_DIR changes Document MCP_GATEWAY_LOG_DIR environment variable Jan 11, 2026
Copilot AI requested a review from pelikhan January 11, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants