Skip to content

docs: document MCP_GATEWAY_SESSION_TIMEOUT environment variable#3153

Merged
lpcox merged 2 commits intomainfrom
copilot/add-mcp-gateway-session-timeout-docs
Apr 4, 2026
Merged

docs: document MCP_GATEWAY_SESSION_TIMEOUT environment variable#3153
lpcox merged 2 commits intomainfrom
copilot/add-mcp-gateway-session-timeout-docs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

MCP_GATEWAY_SESSION_TIMEOUT was used in internal/server/transport.go to configure unified mode session lifetime but was absent from all documentation, leaving users with no visibility into this tuning knob.

Changes

  • docs/ENVIRONMENT_VARIABLES.md — Added entry to the "Optional (Non-Containerized Mode)" table clarifying it applies only to unified mode (/mcp), accepts Go duration strings, defaults to 2h, and that routed mode is unaffected (hardcoded 30 min)
  • AGENTS.md — Added matching bullet entry in the Environment Variables section for agent/dev reference

Copilot AI linked an issue Apr 4, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add documentation for MCP_GATEWAY_SESSION_TIMEOUT variable docs: document MCP_GATEWAY_SESSION_TIMEOUT environment variable Apr 4, 2026
Copilot AI requested a review from lpcox April 4, 2026 04:16
Copilot finished work on behalf of lpcox April 4, 2026 04:16
@lpcox lpcox marked this pull request as ready for review April 4, 2026 18:26
Copilot AI review requested due to automatic review settings April 4, 2026 18:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the existing MCP_GATEWAY_SESSION_TIMEOUT environment variable so users can discover and tune unified-mode MCP session lifetime.

Changes:

  • Added MCP_GATEWAY_SESSION_TIMEOUT to the environment variable reference, including default (2h) and accepted Go duration formats.
  • Added a matching entry to AGENTS.md for developer/agent reference.
Show a summary per file
File Description
docs/ENVIRONMENT_VARIABLES.md Adds MCP_GATEWAY_SESSION_TIMEOUT entry clarifying unified-mode session timeout semantics and default.
AGENTS.md Adds the same variable to the agent/developer environment-variable list.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@lpcox lpcox merged commit 40083e5 into main Apr 4, 2026
21 checks passed
@lpcox lpcox deleted the copilot/add-mcp-gateway-session-timeout-docs branch April 4, 2026 18:29
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.

📚 Documentation Reconciliation Report - 2026-04-04

3 participants