fix: OBOT_SERVER_DISALLOW_PRIVATE_IP_MCP reference - #7001
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a configuration mismatch in the MCP loader options by explicitly binding DisallowPrivateIPMCP to the documented environment variable name OBOT_SERVER_DISALLOW_PRIVATE_IP_MCP, ensuring Helm chart/docs configuration actually takes effect.
Changes:
- Added an explicit
env:"OBOT_SERVER_DISALLOW_PRIVATE_IP_MCP"struct tag toDisallowPrivateIPMCPso the intended env var name is honored.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
EntelligenceAI PR SummaryAdds environment variable support for the MCP private IP restriction setting in
Confidence Score: 5/5 - Safe to MergeSafe to merge — this PR makes a minimal, focused fix to Key Findings:
Files requiring special attention
|
Problem
The
OBOT_SERVER_DISALLOW_PRIVATE_IP_MCPenv var documented in the chart and docs had no effect. The cmd framework derives env var names with a regex that only splits lower→Upper boundaries, soDisallowPrivateIPMCPcollapsed the IP/MCP acronym adjacency intoOBOT_SERVER_DISALLOW_PRIVATE_IPMCP(no underscore).Fix
Added an explicit
env:"OBOT_SERVER_DISALLOW_PRIVATE_IP_MCP"tag to the field so the documented name is honored.