Skip to content
EDT-Bridge
English
Esc
↑↓navigate↵open⌘Jpreview
On this page

Tools

Every edt_* tool the bridge exposes: reading the live model, writing through EDT's own engine, and debugging a running infobase.

Tool names are edt_* in snake_case, parameters are camelCase: projectName, fqn, queryText. Object names are Cyrillic, as in the configuration; the type prefix is English: Catalog.Контрагенты, Document.ЗаказКлиента. An MCP host presents tools from all servers in one list. The edt_ prefix identifies EDT tools; for example, edt_rename can be distinguished from a server’s rename tool.

A call with an undeclared parameter is rejected. The response suggests a similar name (deleteContents → deleteContent) and lists the accepted parameters.

Together the tools close the whole cycle without leaving MCP: create, develop, build, deliver, debug.

Full delivery cycle over MCP

Tool groups

The catalogue is divided by what a tool reads or changes. Each page has a table of its tools and the details of their parameters and results.

Group What its tools do
Read: diagnostics and reference Projects and validation problems, support status, check descriptions, tool and property reference, the Syntax Helper.
Read: metadata, code and queries Metadata objects and their structure, role rights, the command interface, references and calls, module text, search, query validation.
Read: forms and templates Form structure and rendering, pictures, HTML, data composition and spreadsheet templates.
Write: metadata objects Create, delete and rename objects; attributes and register fields; common-module flags, subsystems, role rights, the command interface, adoption into an extension.
Write: modules Add, replace, move and delete methods; module fragments; HTTP service routes; quick fixes.
Write: forms Forms, their attributes, commands, handlers and items; audit and repair of duplicate IDs.
Write: templates HTML templates, data composition schemas, spreadsheet templates.
Write: projects and builds Extension and external object projects, import, cleaning and deletion; .cfe, .epf and .erf builds; EDT applications.
Infobases, the cluster and the platform Infobase update and dump, configurator agents, extensions in an infobase, cluster sessions, platform installations.
Debug Attach to a debug server, inspect threads and variables, step through code, evaluate expressions.

Plan and apply

Write tools resolve targets through EDT. Metadata operations export the model; source replacement tools write the resolved workspace file. Apply requires a configured token. apply=false returns a plan by default.

Long calls in the background

A build, a load into an infobase or a check of a large project can take longer than a client waits for a tool. These tools accept async=true:

edt_compare_configurations, edt_project_errors, edt_clean_project, edt_import_project, edt_build_extension, edt_dump_external_object, edt_create_infobase, edt_update_infobase, edt_update_database_config, edt_infobase_dump, edt_test_form, edt_unit_tests.

Such a call answers with a jobId at once. A call that is refused, or a dry run that returns a plan, still answers directly.

Job tool What it does
edt_job_status The state of a job: queued, running, succeeded, failed or cancelled, with the current step and the seconds since it started. It waits up to waitSeconds for the job to end (30 by default, 50 at most), so a polling loop needs no pauses. When the job ends, result holds what the call returns without async. Without jobId, it lists the jobs.
edt_cancel_job Stops a job. A queued job never runs. A running one stops at its next step: a platform process stops together with its children, an EDT operation at its next progress check. What the job has already done stays done and is listed in applied. Needs the token, like a write.

A bridge job runs inside EDT and goes on when the client disconnects. Its result is kept for an hour. After EDT restarts, a jobId of the previous run gets an answer that says so. A job is cancelled only when it stopped on the cancel; a step with no point to stop at runs to its end, and the job then ends with its real result and cancelRequested. A job of edt_test_form or edt_unit_tests is a process of its own: its state lies in ~/.cache/edt-bridge/jobs (or under XDG_CACHE_HOME) for a day, and a wrapper started by a new client finds it there. The job’s process is known by its pid and start time; on a system without /proc, such as macOS, by its pid alone. A cancelled check removes its clients and its copy of the infobase in a second or two; one that is still running a minute after the cancel is killed, and its processes and files are removed.

Clients that enable the experimental MCP Events extension can watch background jobs over stdio. In OpenCode 2.3.0 or later, start OpenCode with OPENCODE_FLAGS=mcp_events. Subscribe with the jobId returned by any of the tools above, using the stdio connection that started the job.

  • job.progress reports the current queued or running state and the stage when available, then reports observed changes. Short stages between status reads may be missed. When you resume with a cursor, the bridge compares the current state and stage with those marked by the cursor and sends an event if either changed. Stages that came and went while disconnected may be missed even when truncated=false. The stream ends when the job finishes.
  • job.finished reports the final state. Call edt_job_status to retrieve the result.

For a validation that may take some time, call edt_project_errors with refresh=true and async=true. Watch job.finished to wait for the result, and job.progress if you also need the current validation stage.

Served by the wrapper

Three tools are served by edt-bridge-mcp itself. The wrapper lists them alongside the bridge tools and answers without forwarding the call to EDT. edt_open_gui acts on the EDT that hosts the bridge, and a tool cannot report on the process it has just ended. edt_test_form and edt_unit_tests run the platform’s client and need no EDT.

Wrapper tool What it does
edt_open_gui Transfers the workspace to the GUI EDT. It stops the headless EDT, waits for its processes to exit, and opens EDT on the same workspace. The port closes before the runtime exits, so the processes must be allowed to finish. force terminates processes that do not stop in time, including the parent keepalive shell. The bridge becomes available once GUI EDT loads the plugin.
edt_test_form Runs the main form of a built .epf or .erf in a fresh copy of the test infobase named by EDT_BRIDGE_TEST_INFOBASE through the platform’s native test client (Linux with Xvfb): presses one command or plays a scenario and returns the messages, the error dialog and the exception text; the read_form step returns every visible field, form table and spreadsheet of the form; assert_messages counts the messages the preceding click added, so a repeated click is checked again; scenarios plays several named scenarios in one start of the client, with the form opened again before each next one and a result for each. A run that reached its verdict answers with the verdict, assertions, reads, messages, the window and the logged errors; details=true adds the stages, the client environment and the logs. The infobase itself is never changed. Served by the wrapper; no EDT needed.
edt_unit_tests Runs the YAXUnit tests of built extensions (.cfe) in a fresh copy of the test infobase named by EDT_BRIDGE_TEST_INFOBASE (Linux with Xvfb; YAXUnit loaded in the infobase): loads the extensions into the copy, runs their tests narrowed by module or test and returns every test with its status, time, message, expected and actual values and the lines of the tested code it failed on, plus the errors of the event log. The infobase itself is never changed. Served by the wrapper; no EDT needed. YAXUnit tests

Last updated on November 25, 2026

Was this page helpful?