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
Issue: Environment variable warnings shown for all servers, not just the one being queried
Description
When running mcp-cli info <server>, warnings about missing environment variables are displayed for ALL servers in the config, not just the server being queried. This creates unnecessary noise, especially when using mcp-cli with AI agents.
Steps to Reproduce
Create config with multiple servers, some using ${VAR} placeholders
Run mcp-cli info chrome-devtools (a server without env vars)
See warnings for all OTHER servers' missing env vars
Expected Behavior
Warnings should only appear for environment variables referenced by the server being queried (or all servers when running mcp-cli info without arguments).
Actual Behavior
[mcp-cli] Warning: Missing environment variable: ${MCP_EMAIL_SERVER_ACCOUNT_NAME}
[mcp-cli] Warning: Missing environment variable: ${CONTEXT7_API_KEY}
...
# Even though I'm only querying chrome-devtools which doesn't use these
Issue: Environment variable warnings shown for all servers, not just the one being queried
Description
When running
mcp-cli info <server>, warnings about missing environment variables are displayed for ALL servers in the config, not just the server being queried. This creates unnecessary noise, especially when using mcp-cli with AI agents.Steps to Reproduce
${VAR}placeholdersmcp-cli info chrome-devtools(a server without env vars)Expected Behavior
Warnings should only appear for environment variables referenced by the server being queried (or all servers when running
mcp-cli infowithout arguments).Actual Behavior
Related
-vor-debug#17 discusses showing STDERR only with-v/--debugProposed Solution
-vor-debug#17: Only show warnings in debug modeWorkaround
MCP_STRICT_ENV=false mcp-cli info chrome-devtools 2>/dev/null