We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/s2005/wcli0'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
startupValidation.md•942 B
# Startup Validation and Config Defaults Tests
These tests ensure that the configuration is validated immediately upon loading and that defaults are correctly handled.
## Tests Summary
- **`Startup Validation`**:
- Verifies that `loadConfig` throws errors for invalid `maxCommandLength` (must be positive).
- Verifies that `loadConfig` throws errors for invalid `commandTimeout` (must be >= 1s).
- Ensures `loadConfig` validates the `logging` configuration (e.g., checking for path traversal in `logDirectory`).
- **`Default Config - logRetentionMinutes`**:
- Confirms that `logRetentionDays` is NOT set by default, allowing `logRetentionMinutes` to be the primary default.
- Verifies that user-provided `logRetentionDays` correctly overrides `logRetentionMinutes`.
- **`Default Config - Limit Naming`**:
- Ensures `maxTotalStorageSize` (in-memory) and `maxTotalLogSize` (on-disk) are handled as distinct concepts.