BSL is an MCP server designed for static analysis of 1C/BSL codebases. Built on the pure-Python `onec-hbk-bsl` engine, it offers advanced diagnostics and complexity metrics without requiring Java or an LSP bridge. It extends the base engine with critical features for large-scale 1C configurations, including detailed per-method complexity scores, module health assessments combining complexity with security/performance/SQL diagnostics, and comprehensive project-wide linting aggregated by rule and severity. The tool streamlines code quality management by identifying and prioritizing areas for refactoring, making it an invaluable asset for 1C developers and teams.
主要功能
01Refactor triage through `module_health` scores that prioritize critical issues (security, performance, SQL, complexity)
02Multi-project support with Docker Compose for isolated analysis and streamable HTTP behind Nginx with bearer authentication
031 GitHub stars
04Over 180 BSL/1C diagnostic rules with inline suppressions and project-wide aggregation
05Per-method cyclomatic and cognitive complexity metrics with configurable thresholds
06Full navigation toolbox (symbols, definitions, references, search, format, fix) inherited from onec-hbk-bsl
使用案例
01Identify and prioritize code sections for refactoring based on complexity and health scores
02Perform project-wide static code analysis for 1C/BSL applications
03Integrate code quality metrics and diagnostics into CI/CD pipelines for 1C development