-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
43 lines (37 loc) · 2.28 KB
/
example.env
File metadata and controls
43 lines (37 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ============================================================
# MCP Code Interpreter Server - Environment Configuration
# ============================================================
# These values serve as SERVER DEFAULTS and MAXIMUM CAPS.
# Clients can override them via HTTP headers when connecting.
# Rule: effective = min(client_value, server_max)
#
# Supported client headers:
# X-Session-TTL, X-Idle-Timeout, X-Exec-Timeout,
# X-Download-Timeout, X-Max-Download-Size,
# X-Blob-Connection-String, X-Blob-Container-Name,
# X-Blob-SAS-Expiry-Hours,
# X-Db-Connection-String, X-Db-Password,
# X-Sql-Max-Inline-Rows
# ============================================================
# --- Server (not overridable - infrastructure only) ---
MCP_SERVER_NAME=Code Interpreter MCP
MCP_HOST=0.0.0.0
MCP_PORT=8000
# --- Session Lifecycle (defaults & max caps) ---
SESSION_TTL=3600 # Default & max session lifetime (seconds) | Header: X-Session-TTL
IDLE_TIMEOUT=1800 # Default & max idle kill threshold (seconds)| Header: X-Idle-Timeout
CLEANUP_INTERVAL=60 # Cleanup sweep interval (server-only, not overridable)
EXEC_TIMEOUT=300 # Default & max execution timeout (seconds) | Header: X-Exec-Timeout
# --- File Download (defaults & max caps) ---
DOWNLOAD_TIMEOUT=120 # Default & max URL download timeout (seconds) | Header: X-Download-Timeout
MAX_DOWNLOAD_SIZE=524288000 # Default & max download size in bytes (500MB) | Header: X-Max-Download-Size
# --- Azure Blob Storage (defaults - clients inject their own) ---
# AZURE_BLOB_CONNECTION_STRING= | Header: X-Blob-Connection-String
# AZURE_BLOB_CONTAINER_NAME=code-interpreter-artifacts | Header: X-Blob-Container-Name
BLOB_SAS_EXPIRY_HOURS=24 # Default & max SAS validity (hours) | Header: X-Blob-SAS-Expiry-Hours
# --- Azure SQL Database (defaults - clients inject their own) ---
# AZURE_DATABASE_CONNECTION_STRING= | Header: X-Db-Connection-String
# AZURE_DATABASE_PASSWORD= | Header: X-Db-Password
SQL_MAX_INLINE_ROWS=30 # Default & max inline rows threshold | Header: X-Sql-Max-Inline-Rows
# --- Working Directory (server-only, not overridable) ---
# BASE_WORKDIR=/tmp/mcp_ci_sessions