edt-bridge-mcp
English · Русский
stdio MCP front-end for the edt-bridge 1C:EDT plugin.
The Java plugin serves MCP as JSON-RPC over HTTP on 127.0.0.1:8770. An MCP client configured
with that address cannot reach the server when EDT is stopped. The wrapper provides these behaviors:
- EDT open, GUI or headless, and every request is forwarded to the live bridge;
- EDT closed, and it starts a headless EDT –
1cedtcliwith a keepalive pipe, the same recipe asscripts/run-headless.ps1– then forwards once the model is ready; - plugin jar missing, and it delivers the jar itself from the latest GitHub release, checksum
verified, into EDT's
dropins/before starting. A barepipx install edt-bridge-mcpis enough to get a working bridge; - a client session never hangs on startup. While the bridge is starting,
tools/listreturns an empty list, and anotifications/tools/list_changedfollows when it is ready.
Install
pipx install edt-bridge-mcp # or: pipx install ./python from a checkout
Register in an MCP client
claude mcp add edt-bridge -- edt-bridge-mcp --workspace "D:\\path\\to\\edt-workspace"
From a shell
By default, the wrapper uses JSON-RPC over stdin and stdout to communicate with an MCP client. Use subcommands to access the bridge manually or from a script. They use the same port scan, token, and automatic headless start:
edt-bridge-mcp tools # what the running bridge serves
edt-bridge-mcp call edt_projects # call a tool, print what it returned
edt-bridge-mcp call edt_metadata_details --json '{"projectName": "SM", "fqn": "CommonModule.Foo"}'
edt-bridge-mcp call edt_create_extension --json-file args.json # arguments from a UTF-8 file
edt-bridge-mcp status # is a bridge up? (never starts one)
edt-bridge-mcp wait-ready --project Demo --timeout 3600 # until the model of Demo is loaded
edt-bridge-mcp workspace pack --workspace <ws> --archive ready.tar.gz # a stopped workspace for the next machine
--raw prints the JSON result instead of the text a tool returned. Arguments come from --json,
--json-file or --stdin, and a file is the dependable route for non-ASCII arguments on Windows.
Exit codes: 0 is fine, 1 means the call could not be made at all (no bridge, bad usage, transport
error), and 2 means the bridge ran the tool and the tool reported an error. That lets a script tell
"it failed" from "it never ran". wait-ready answers 0 when the projects are ready, 1 when EDT
is not running or has exited and 2 when the time ran out while EDT is still loading.
Self-update
edt-bridge-mcp self-update # refresh the plugin jar (GitHub Releases) + the wrapper (PyPI)
edt-bridge-mcp self-update --jar-only # only the jar
edt-bridge-mcp self-update --pip-only # only the wrapper
edt-bridge-mcp self-update --pip-only --from <repo>/python # from a checkout
A running EDT, GUI or headless, keeps the old jar loaded until it restarts. The wrapper restarts its own headless instance the next time it starts one.
--from installs the wrapper from a local checkout instead of PyPI. Use it to try a build that is
not released yet, without a full pipx install --force, which rebuilds the venv and replaces the exe
the running client holds.
The exit code separates the bridge from its add-ons. 0 means every step asked for succeeded. 1
means the bridge itself did not update, neither the jar nor the wrapper, or that nothing did. 2
means the bridge is current and only a wrapper plugin is not: a plugin installs from its own source,
and that source being unreachable is not the bridge failing to update.
The wrapper updates itself by unpacking, not through an installer. It downloads the wheel from PyPI,
or copies the package out of the checkout given to --from, and replaces the package inside
site-packages using the standard library alone. No pip, no pipx, no build backend, and that matters:
pipx 1.15 builds its venvs through uv, and a uv-built venv contains no pip at all.
Plugins
External packages installed in the wrapper's environment can add MCP tools. They can contain
reference material under another license or tools for internal services. The wrapper discovers them
through the edt_bridge.tools entry-point group, lists their tools alongside its own, and executes
them. These tools are available without a running EDT.
pipx inject edt-bridge-mcp <package> # install a plugin
edt-bridge-mcp plugins # what is plugged in, or why a plugin refused to load
EDT_BRIDGE_NO_PLUGINS=1 turns the discovery off. The declaration contract for plugin authors is on
the Wrapper plugins page.
The executables in Scripts are not replaced because a running client may hold them open on
Windows. The stub loads the updated code from site-packages on its next start. pipx_metadata.json is corrected, so pipx list does not go on reporting
the old version. An editable install is refused rather than overwritten.
Configuration
CLI flags override the environment.
| Env | Flag | Meaning |
|---|---|---|
EDT_BRIDGE_PORT |
--port |
bridge port (default 8770) |
EDT_BRIDGE_TOKEN |
– | write-tools token, forwarded as Authorization: Bearer and injected into the headless JVM |
EDT_BRIDGE_WORKSPACE |
--workspace |
EDT workspace path, required for the headless start |
EDT_BRIDGE_EDT_DIR |
--edt-dir |
EDT install dir (the folder with 1cedtcli and dropins); the newest install is found automatically when omitted |
EDT_BRIDGE_START_TIMEOUT |
--start-timeout |
seconds to wait for a starting bridge (default 360) |
EDT_BRIDGE_AUTOSTART |
--no-autostart |
set 0 or pass the flag to forward requests and start nothing |
EDT_BRIDGE_HEAP |
--heap |
maximum JVM heap of an auto-started EDT, e.g. 6g; replaces the installation's -Xmx |
EDT_BRIDGE_VMARGS |
--vmargs |
further JVM options of an auto-started EDT, separated by spaces; pass the flag as --vmargs=... |
The rarely touched ones (EDT_BRIDGE_PORT_SCAN, EDT_BRIDGE_WINDOW_WAIT, EDT_BRIDGE_LANG) and the
plugin's own variables are in
Environment variables.
Safety
- If a GUI EDT is running but the bridge port is dead, which means the plugin is missing there,
the wrapper refuses to start a headless instance, because the GUI holds the workspace lock. It
still delivers the jar into
dropins/when missing, so restarting that EDT activates the bridge. - If a headless
1cedtcliis already starting, the wrapper waits for it instead of spawning a second one. This also holds for two wrappers starting at once: the supervisor locks the workspace for as long as its EDT runs. - If the plugin jar in
dropins/cannot be read, the wrapper says so before starting EDT. If the plugin fails to load in the EDT it started, the wrapper stops that EDT and names the cause from the workspace log, instead of waiting out--start-timeout.
Metadata
Release files for edt-bridge-mcp 0.52.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edt_bridge_mcp-0.52.0.tar.gz | 413.7 kB | With provenance | Details for edt_bridge_mcp-0.52.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edt_bridge_mcp-0.52.0-py3-none-any.whl | Python 3 | none | any | Details for edt_bridge_mcp-0.52.0-py3-none-any.whl |
Total release size: 702.9 kB
Release files / edt_bridge_mcp-0.52.0.tar.gz
| Download URL | edt_bridge_mcp-0.52.0.tar.gz |
|---|---|
| Size | 413.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7107367c6691bc3d6bddef41d2fad6d4885ba6f5401180d79bec85f555e824b8
|
|
BLAKE2b-256 checksum How to use checksums |
5d3cc6bee21b0226efb3b8e4e7468db9677bd4ce66fb4c7804d9a01d0d0d5f4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / edt_bridge_mcp-0.52.0-py3-none-any.whl
| Download URL | edt_bridge_mcp-0.52.0-py3-none-any.whl |
|---|---|
| Size | 289.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0323aeed9f0ccb1e0e98c7b2154b61356653c285af6c0a7c42a3d11501dc4c68
|
|
BLAKE2b-256 checksum How to use checksums |
29dc2a0aa6f20739852a6defefd3a725c82cf31977416fcef21c22d4c7594324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for edt-bridge-mcp 0.52.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for edt_bridge_mcp-0.52.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.