From 106d79f56cef975fe73d1e7dbc0d82c2a2b43824 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 12 Feb 2026 14:11:16 -0800 Subject: [PATCH] Update litellm/constants.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/constants.py b/litellm/constants.py index c41d2ece4b5..4e89ddd7bd9 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -105,7 +105,7 @@ MCP_OAUTH2_TOKEN_CACHE_DEFAULT_TTL = int( # Default npm cache directory for STDIO MCP servers. # npm/npx needs a writable cache dir; in containers the default (~/.npm) # may not exist or be read-only. /tmp is always writable. -MCP_NPM_CACHE_DIR = "/tmp/.npm_mcp_cache" +MCP_NPM_CACHE_DIR = os.getenv("MCP_NPM_CACHE_DIR", "/tmp/.npm_mcp_cache") MCP_OAUTH2_TOKEN_CACHE_MIN_TTL = int( os.getenv("MCP_OAUTH2_TOKEN_CACHE_MIN_TTL", "10") )