style(config): use snake_case for EnvFile JSON field name

Change 'envFile' to 'env_file' to maintain consistency with the rest
of the codebase which uses snake_case for JSON field names (e.g.,
'api_key', 'api_base', 'max_results', 'exec_timeout_minutes').

Addresses Copilot code review feedback.
This commit is contained in:
yuchou87
2026-02-19 19:43:48 +08:00
parent dea381c385
commit f0ce26ff2b
+1 -1
View File
@@ -333,7 +333,7 @@ type MCPServerConfig struct {
// Env are environment variables to set for the server process (stdio only)
Env map[string]string `json:"env,omitempty"`
// EnvFile is the path to a file containing environment variables (stdio only)
EnvFile string `json:"envFile,omitempty"`
EnvFile string `json:"env_file,omitempty"`
// Type is "stdio", "sse", or "http" (default: stdio if command is set, sse if url is set)
Type string `json:"type,omitempty"`
// URL is used for SSE/HTTP transport