
config-lint-mcp
Config Lint lets DevOps engineers and developers validate YAML/JSON/JSONC files with lint_file, GitHub Actions workflows via validate_github_actions_workflow, and Docker Compose via validate_docker_compose schemas. Use detect_configs to scan directories and explain_diagnostics for concise error summaries with fixes. Integrate into CI/CD pipelines to catch syntax errors, schema violations, and custom policy issues before deployment.
Overview
Config Lint provides programmatic validation for YAML, JSON, and JSONC configuration files, including schema-aware checks for GitHub Actions workflows and Docker Compose files. It detects syntax errors, structural issues, and schema violations in DevOps configurations. Developers integrate it into scripts or CI/CD pipelines to verify configs before commits or deployments.
Key Capabilities
- lint_file: Parses and validates a single YAML, JSON, or JSONC file, applying schema checks for GitHub Actions or Docker Compose where applicable.
- validate_github_actions_workflow: Validates GitHub Actions workflow YAML files against the SchemaStore schema.
- validate_docker_compose: Validates Docker Compose YAML files against the official compose-spec schema.
- explain_diagnostics: Converts diagnostic output into a concise summary with actionable next steps.
- detect_configs: Scans a root path to identify common DevOps config files like workflows or compose files.
Use Cases
- Run validate_github_actions_workflow in a pre-commit hook to catch schema errors in .github/workflows/*.yml before pushing changes.
- Use detect_configs on a repo root followed by lint_file to batch-validate all detected YAML configs during local testing.
- Invoke validate_docker_compose on docker-compose.yml files in a CI job to ensure they conform to spec before building images.
- Pipe lint_file output into explain_diagnostics to generate plain-language error reports for pull request comments.
Who This Is For
DevOps engineers and backend developers managing IaC tools like Kubernetes manifests or Terraform configs. Suited for intermediate users familiar with YAML/JSON and CI/CD pipelines who need automated config checks. Teams using GitHub Actions or Docker Compose benefit from its targeted schema validation.