1C Debug MCP
An MCP server that debugs an already-running 1C:Enterprise infobase over the platform's HTTP RDBG protocol — it attaches to existing targets rather than launching or stopping 1C.
Connect & session management: check an RDBG endpoint (
check_debug_server), register the MCP as debugger UI for one infobase (connect_debugger), detach it (disconnect_debugger); sessions are MCP-owned, shared across clients, one infobase at a time, and listed/restored vialist_debug_sessions,get_debug_session_status,resume_debug_session.Target control: list client, server, background-job and other targets (
list_debug_targets), configure auto-attach types (set_auto_attach), attach and detach specific targets without killing their processes (attach_targets,detach_targets).Breakpoints: set breakpoints on lines of a local BSL module (
set_breakpoints) and resolve a.bslpath to RDBG object/property IDs through exported 1C XML metadata (resolve_source_module).Observe execution: poll target start/quit, breakpoint and step events (
poll_debug_events), read a stopped target's call stack (get_call_stack) and local variables at a stack level (get_local_variables), and evaluate 1C expressions that may have side effects (evaluate_expression).Execution control: continue, step over/in/out (
continue_or_step) or request a stop at the next BSL instruction (suspend_target).Operational notes: stdio transport, all tools synchronous (
taskSupport: forbidden), Node.js 20+, requires an XML configuration export, stores no 1C credentials, and the 1C session must always be continued or disconnected so it isn't left suspended.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@1C Debug MCP Attach to the running 1C session and set a breakpoint on server code."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
1C Debug MCP
Original WSSAWER additions are provided for noncommercial use only; commercial use requires a separate written agreement (PRODUCT-LICENSE.txt). The inherited DevTool1C code remains under its original MIT license. These terms do not revoke permissions previously granted for earlier versions.
Standalone MCP server for debugging an already running 1C:Enterprise infobase through the platform HTTP RDBG server.
The server does not launch or stop 1C, dbgs, Designer, or external commands. It connects to an existing RDBG endpoint, attaches current and future debug targets, manages breakpoints, reads call stacks and local variables, evaluates expressions, and continues or steps execution.
Requirements
Node.js 20 or newer for a source build.
1C:Enterprise HTTP debug server reachable from the machine running this MCP.
A 1C client started in HTTP debug mode, for example:
/DEBUG -http -attach /DEBUGGERURL"http://debug-host:1550"An XML export of the matching configuration when resolving local
.bslpaths for breakpoints.
Related MCP server: qwen-dap-mcp
Run from source
npm ci
npm test
npm startThe MCP transport is stdio. MCP Control Center can publish it through its existing worker and HTTP Gate.
Release branch
The release branch is the portable runtime branch. It contains the bundled server.cjs, mcp.json, this README, and the license. The bundle does not require npm install; only Node.js 20+ is required.
Typical tool sequence
check_debug_serverconnect_debugger(save the returnedsessionId)set_breakpointsTrigger the required action in 1C.
poll_debug_eventsget_call_stack,get_local_variables, optionallyevaluate_expressioncontinue_or_stepdisconnect_debugger
Always continue or disconnect a stopped target so the 1C session is not left suspended.
Debug sessions
The debugger session belongs to the MCP service, not to an individual Codex, chat, or HTTP client. Any client connected to the same MCP worker can use the active session. The current version allows one active infobase at a time; disconnect it before connecting or resuming another one.
list_debug_sessionslists active and locally saved MCP-owned sessions.get_debug_session_statusreports the owner process, computer, RDBG UI GUID, heartbeat, and targets.resume_debug_sessionrestores a saved MCP-owned registration after an abnormal worker termination.Internally the session keeps a stable
sessionId, allowing a future multi-infobase extension without changing its ownership model.
Session metadata is stored in .generated/rdbg-sessions.json beside the MCP server folder. Set RDBG_SESSION_REGISTRY to choose another location. The registry contains no 1C credentials. A normal disconnect_debugger or MCP shutdown removes the corresponding registration; a failed cleanup leaves it available for recovery.
The server never adopts an unknown debugger UI created by Designer or another debugger. RDBG does not expose enough ownership information to do that safely.
Attribution
The RDBG protocol implementation was extracted and adapted from the MIT-licensed DevTool1C project.
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