Class MCPServerConfig
java.lang.Object
io.github.apexdevtools.apexls.mcp.MCPServerConfig
Configuration class for MCP server startup parameters. Handles command line argument parsing,
environment variable fallback, and validation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMCPServerConfig(String loggingLevel, boolean cacheEnabled) Create configuration with explicit values (for testing). -
Method Summary
Modifier and TypeMethodDescriptionstatic MCPServerConfigCreate configuration from command line arguments with system environment fallback.static MCPServerConfigCreate configuration from arguments with custom environment provider (for testing).static StringgetUsage()Generate usage information string.booleantoString()
-
Field Details
-
DEFAULT_LOGGING
- See Also:
-
DEFAULT_CACHE_ENABLED
public static final boolean DEFAULT_CACHE_ENABLED- See Also:
-
LOGGING_ENV_VAR
- See Also:
-
CACHE_ENV_VAR
- See Also:
-
VALID_LOGGING_LEVELS
-
-
Constructor Details
-
MCPServerConfig
Create configuration with explicit values (for testing).
-
-
Method Details
-
fromArgs
Create configuration from command line arguments with system environment fallback. -
fromArgs
Create configuration from arguments with custom environment provider (for testing). -
getUsage
Generate usage information string. -
getLoggingLevel
-
isCacheEnabled
public boolean isCacheEnabled() -
toString
-