Skip to main content
Glama
1C Debug MCP

1C Debug MCP

by WSSAWER

1C Debug MCP

이미 실행 중인 1C:Enterprise 인포베이스를 플랫폼 HTTP RDBG 서버를 통해 디버깅하기 위한 독립형 MCP 서버입니다.

이 서버는 1C, dbgs, Designer 또는 외부 명령을 시작하거나 중지하지 않습니다. 기존 RDBG 엔드포인트에 연결하고 현재 및 향후 디버그 대상을 연결하며, 중단점을 관리하고, 호출 스택과 지역 변수를 읽고, 식을 평가하고, 실행을 계속하거나 단계별로 진행합니다.

요구 사항

  • 소스 빌드에는 Node.js 20 이상이 필요합니다.

  • 이 MCP를 실행하는 머신에서 접근 가능한 1C:Enterprise HTTP 디버그 서버가 필요합니다.

  • HTTP 디버그 모드로 시작된 1C 클라이언트, 예를 들어:

    /DEBUG -http -attach /DEBUGGERURL"http://debug-host:1550"
  • 중단점에 대한 로컬 .bsl 경로를 확인할 때 일치하는 구성의 XML 내보내기가 필요합니다.

Related MCP server: qwen-dap-mcp

소스에서 실행

npm ci
npm test
npm start

MCP 전송은 stdio입니다. MCP Control Center는 기존 워커와 HTTP Gate를 통해 이를 게시할 수 있습니다.

릴리스 브랜치

release 브랜치는 이식 가능한 런타임 브랜치입니다. 번들된 server.cjs, mcp.json, 이 README, 및 라이선스를 포함합니다. 번들은 npm install이 필요하지 않으며, Node.js 20+만 필요합니다.

일반적인 도구 순서

  1. check_debug_server

  2. connect_debugger

  3. set_breakpoints

  4. 1C에서 필요한 작업을 트리거합니다.

  5. poll_debug_events

  6. get_call_stack, get_local_variables, 선택적으로 evaluate_expression

  7. continue_or_step

  8. disconnect_debugger

중지된 대상은 항상 계속 실행하거나 연결을 끊어서 1C 세션이 일시 중단된 상태로 남지 않도록 하십시오.

출처 표시

RDBG 프로토콜 구현은 MIT 라이선스의 DevTool1C 프로젝트에서 추출 및 조정되었습니다.

Available Tools

15 tools
attach_targetsB

Attach target IDs returned by list_debug_targets.

Inputs: targetIds (required).

check_debug_serverB

Check an existing 1C HTTP debug server without registering a debugger UI.

Inputs: host (required), port (required).

connect_debuggerB

Register this MCP as debugger UI for one infobase alias. Replaces any active MCP debug session but never stops 1C.

Inputs: host (required), port (required), infoBaseAlias (required), sourceRoot.

continue_or_stepC

Continue, step over, step in, or step out in a stopped target.

Inputs: action (required), targetId (required).

detach_targetsA

Detach targets without terminating their 1C processes.

Inputs: targetIds (required).

disconnect_debuggerA

Detach the MCP debugger UI without stopping 1C or dbgs.

Inputs: no named parameters.

evaluate_expressionA

Evaluate a 1C expression in a stopped target. Expressions may have side effects.

Inputs: targetId (required), expression (required), stackLevel.

get_call_stackA

Read the call stack of a stopped target.

Inputs: targetId (required).

get_local_variablesB

Read local variables at a stack level of a stopped target.

Inputs: targetId (required), stackLevel.

list_debug_targetsA

List current client, server, background-job and other RDBG targets.

Inputs: no named parameters.

poll_debug_eventsA

Poll target start/quit, breakpoint and step events.

Inputs: no named parameters.

resolve_source_moduleB

Resolve a BSL path through exported 1C XML metadata to RDBG object/property identifiers.

Inputs: sourcePath (required), sourceRoot.

set_auto_attachC

Configure RDBG auto-attach target types. Typical values include Client, ManagedClient, Server, ServerEmulation, Job, JobFileMode, HTTPService and WebService.

Inputs: targetTypes (required).

set_breakpointsA

Set active breakpoints for one local BSL module. XML metadata under sourceRoot resolves RDBG object/property IDs.

Inputs: lines (required), sourcePath (required), sourceRoot.

suspend_targetA

Request a running target to stop on the next BSL instruction.

Inputs: targetId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool targets a distinct phase of the 1C debugging workflow: connection, target management, execution control, inspection, and source mapping. Even similar actions like check_debug_server vs connect_debugger are clearly separated by whether a debugger UI is registered.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern, such as list_debug_targets, attach_targets, set_breakpoints, and continue_or_step. This makes the toolset highly predictable and easy to navigate.

    Tool Count5/5

    15 tools is at the upper boundary of the well-scoped range, but every tool earns its place in a debugger lifecycle: connect, list, attach, breakpoint, poll, inspect, evaluate, step, suspend, detach. The count matches the complexity of the domain without redundancy.

    Completeness5/5

    The toolset covers the full debugging workflow from connecting to a debug server and resolving source modules, through attaching targets, setting breakpoints, polling events, inspecting state, controlling execution, and detaching. There are no obvious dead ends or missing critical debugger operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to debug Node.js applications using Chrome DevTools Protocol. Provides comprehensive debugging capabilities including breakpoints, stepping, variable inspection, expression evaluation, and console monitoring.
      4,585 npm
      351
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Enables coding agents to connect to Debug Adapter Protocol debuggers over MCP, allowing them to launch or attach to native targets, control execution, set breakpoints and watchpoints, inspect stacks, variables, memory, and exceptions, and capture agent-friendly debugger snapshots.
      18
      263 npm
      3
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables launching and controlling a debugpy debug session through MCP, including setting breakpoints, stepping, evaluating expressions, and observing debugger state and events.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables any MCP client to debug programs through the Debug Adapter Protocol, supporting launch/attach, breakpoints, stepping, variable inspection, evaluation, and memory operations via a single debug tool.
      1
      13 npm
      MIT