1C Debug MCP
1C Debug MCP
プラットフォームのHTTP RDBGサーバーを介して、実行中の1C:Enterpriseインフォベースをデバッグするためのスタンドアロン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 startMCPのトランスポートはstdioです。MCP Control Centerは、既存のワーカーとHTTP Gateを介してこれを公開できます。
リリースブランチ
releaseブランチは、ポータブルなランタイムブランチです。バンドルされたserver.cjs、mcp.json、このREADME、およびライセンスが含まれています。バンドルはnpm installを必要としません。必要なのはNode.js 20以降のみです。
典型的なツールの流れ
check_debug_serverconnect_debuggerset_breakpoints1C側で必要な操作を実行します。
poll_debug_eventsget_call_stack、get_local_variables、必要に応じてevaluate_expressioncontinue_or_stepdisconnect_debugger
停止したターゲットは、1Cセッションが中断されたままにならないよう、必ず続行または切断してください。
謝辞
RDBGプロトコルの実装は、MITライセンスのDevTool1Cプロジェクトから抽出・改変したものです。
Available Tools
15 toolsattach_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
Scored across 15 tools
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.
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.
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.
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
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Cloud PLC simulator: validate and step-run LAD/SCL programs, run scenarios, return PASS/FAIL.
remote debug iOS/Android/Unity/Godot/Flutter/RN/Web on real-device.ui-tree/screenshots/taps,tests.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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 npm351MIT
- AlicenseAqualityAmaintenanceEnables 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.18263 npm3Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables launching and controlling a debugpy debug session through MCP, including setting breakpoints, stepping, evaluating expressions, and observing debugger state and events.MIT
- AlicenseAqualityBmaintenanceEnables 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.113 npmMIT