SkillAgentSearch skills...

mcp-bsl-analyzer

MCP server for 1C/BSL code analysis: project-wide diagnostics + per-method cyclomatic/cognitive complexity with refactor triage. Streamable HTTP, bearer auth, built on onec-hbk-bsl (no Java). RU: MCP-сервер для 1С/BSL — диагностика по проекту и сложность по методам, без Java.

Install / Use

claude mcp add axel-avb -- npx -y github:axel-avb/mcp-bsl-analyzer

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

81/100

Category

Operations

Supported Platforms

Claude Code
Claude Desktop

Our assessment of mcp-bsl-analyzer

mcp-bsl-analyzer scores 81/100 on our quality scale, 647th of 753 Operations skills we index.

Its MCP Server is 6.4 KB long, well organised into 12 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.

It has 3 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
29/30
Structure
20/20
Description
15/15
Adoption
3/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 28 days ago, so mcp-bsl-analyzer is actively maintained.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

mcp-bsl-analyzer compared with similar skills

All 4 of these similar skills score higher than mcp-bsl-analyzer; compare them before choosing.

SkillScoreStarsUpdatedFormat
mcp-bsl-analyzer (this skill)by axel-avb81328d agoMCP Server
Agent-Reachby Panniantong10095.7k3d agoCLAUDE.md
headroomby headroomlabs-ai10075.0ktodayCLAUDE.md
CowAgentby zhayujie10047.3ktodayCLAUDE.md
Scraplingby D4Vinci10086.8ktodayMCP Server

Frequently asked questions

How do I install mcp-bsl-analyzer?
Run claude mcp add axel-avb -- npx -y github:axel-avb/mcp-bsl-analyzer. The install tabs above show the steps for each supported agent.
Which AI agents does mcp-bsl-analyzer work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is mcp-bsl-analyzer safe to use?
It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is mcp-bsl-analyzer still maintained?
The repository was last updated 28 days ago, so mcp-bsl-analyzer is actively maintained.

BSL MCP Analyzer

English · Русский

MCP server for analyzing 1C/BSL code: project-wide diagnostics and per-method cyclomatic/cognitive complexity with a ranked refactor triage. Built on the pure-Python onec-hbk-bsl engine — no Java, no LSP bridge. Served over Streamable HTTP behind nginx with bearer-token auth, one service per project.

Why

onec-hbk-bsl already ships a full BSL analyzer, a formatter, an index, and its own MCP server. This project reuses all of it and adds the pieces that were missing for day-to-day work on large 1C configurations:

  • complexity — raw cyclomatic + cognitive complexity for every method (upstream exposes these only as threshold warnings with no numbers).
  • module_health — complexity merged with security/performance/SQL diagnostics, attributed per method and ranked by refactor priority ("what to fix first").
  • workspace_diagnostics — whole-project lint with aggregation by rule/severity/file.

Plus small-model-friendly titles and descriptions for all 25 tools, and a ready Docker Compose + nginx deployment.

Features

  • Diagnostics: 180+ BSL/1C rules (onec-hbk-bsl registry), inline noqa/bsl-disable suppressions, select/ignore, whole-project aggregation.
  • Complexity: per-method McCabe and cognitive metrics, configurable thresholds (defaults 20 / 15), over-threshold flags.
  • Refactor triage: module_health scores security ×10, performance/sql ×4 plus complexity overage, and returns a sorted top_targets list.
  • Full navigation toolbox inherited from onec-hbk-bsl: symbols, definitions, references, callers/callees, hover, search, rename, format, fix, 1C metadata.
  • Multi-project: one container per project, 1:1 host↔container path mounts.
  • Agent-friendly: every tool has an explicit what/when/args/returns/example block.

Architecture

MCP agents ──HTTP──> nginx (/bsl/<proj>/mcp, Bearer) ──> bsl-<proj>:8051/mcp
                                                          └── <project> (mounted 1:1)
                                                             onec-hbk-bsl engine (Python)
src/bsl_mcp/entrypoint.py            bootstrap env → onec-hbk-bsl FastMCP app → +3 tools → HTTP
src/bsl_mcp/lsp_facade.py            single adapter to onec-hbk-bsl internals
src/bsl_mcp/tool_docs.py             titles/descriptions/instructions for all tools
src/bsl_mcp/tools/complexity.py      complexity tool
src/bsl_mcp/tools/module_health.py   module_health tool
src/bsl_mcp/tools/workspace_diagnostics.py  workspace_diagnostics tool
docker-compose.yml                   bsl-<proj> services + nginx
nginx/templates/default.conf.template  routing + bearer + SSE-friendly proxy

Requirements

  • Linux host with Docker Engine 24+ and Compose v2.
  • 2 GB RAM / ~2 CPU per project (indexing large configurations is CPU-disk heavy).
  • A free port for nginx (default 8080).

Quick start

cp .env.example .env
# edit .env: BSL_MCP_TOKEN and PROJ_A_PATH/PROJ_B_PATH/PROJ_C_PATH
docker compose up -d --build
docker compose ps

Verify (expect 200; without the header — 401):

curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8080/bsl/proj-a/mcp \
  -X POST -H 'Authorization: Bearer <TOKEN>' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'

Connect an agent

opencode (opencode.json):

{
  "mcp": {
    "bsl-trade": {
      "type": "remote",
      "url": "http://HOST:8080/bsl/proj-a/mcp",
      "headers": { "Authorization": "Bearer <TOKEN>" },
      "enabled": true
    }
  }
}

Cursor / Claude and other mcpServers clients:

{
  "mcpServers": {
    "bsl-trade": {
      "type": "streamable-http",
      "url": "http://HOST:8080/bsl/proj-a/mcp",
      "headers": { "Authorization": "Bearer <TOKEN>" }
    }
  }
}

Tools

Added by this project:

| Tool | Purpose | |---|---| | complexity(file) | Cyclomatic + cognitive complexity per method, thresholds and flags | | module_health(file) | Complexity + security/performance/SQL diagnostics, ranked top_targets | | workspace_diagnostics(path, min_severity, select, ignore, top_n) | Project-wide lint aggregated by rule/severity/file |

Inherited from onec-hbk-bsl (22 tools): bsl_status, bsl_find_symbol, bsl_file_symbols, bsl_definition, bsl_hover, bsl_callers, bsl_callees, bsl_references, bsl_read_file, bsl_search, bsl_diagnostics, bsl_check_file, bsl_list_rules, bsl_index_file, bsl_format, bsl_rename, bsl_fix, bsl_workspace_scan, bsl_meta_object, bsl_meta_collection, bsl_meta_index, bsl_contract_version.

Configuration

| Variable | Required | Description | |---|---|---| | BSL_MCP_TOKEN | yes | Bearer token agents must send | | NGINX_PORT | no | Host port for nginx (default 8080) | | PROJ_A_PATH, PROJ_B_PATH, PROJ_C_PATH | yes | Absolute host paths of 1C projects (mounted 1:1) |

Service name must be bsl-<proj> for /bsl/<proj>/mcp routing. Routing is fully dynamic: nginx resolves bsl-<proj> via Docker DNS (resolver 127.0.0.11) and proxies to bsl-<proj>:8051/mcp — adding a 2nd, 3rd, or n-th project needs a bsl-<proj> service in docker-compose.yml and no nginx config change. Requirements: the backend listens on port 8051; the project name matches [a-zA-Z0-9_-]+ (dash is fine, other special chars are not); a single token per deployment (BSL_MCP_TOKEN), per-project tokens are not supported. The full nginx config and step-by-step project onboarding are in QUICKSTART.md → "Add an n-th project".

Index settings (index-mode, select/ignore, exclude) come from onec-hbk-bsl.toml in the project root.

Documentation

Credits

Related Skills

View on GitHub
GitHub Stars3
CategoryOperations
Updated28d ago
Forks1

Languages

Python

Trust signals

80/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium1 low
mcp-bsl-analyzer — MCP Server: Install & Safety Check | SkillAgent