Data Exchange
MCP routing
- Preferred path: use MCP
unicatoolsunica.view {},unica.search,unica.viewon the object node,unica.check,unica.docs, andunica.run. - Runtime идёт через
unica.run: вызов безopотдаёт словарь операций и контракт каждой —argsSchema,execution,previewRequired,ifRevRequiredOnApply. Контракт вызова бери оттуда, а не из этого текста; выбирай только операцию сimplemented: trueи не выдумывай аргументов записи сargsSchema: null; превью исполнением не является. Не обходи контракт прямым runner-ом. - Use
unica.viewon the role node when exchange behavior depends on rights, privileged mode, or separated data. - Do not call internal metadata, runtime, analyzer, standards, or package adapters directly. They are hidden behind MCP
unica.
References
- Read
../../references/platform/integration-contracts.mdfor message contracts, file exchange, idempotency, versioning, and error semantics. - Read
../../references/platform/platform-mechanics.mdfor exchange registration, tenant boundaries, background workers, and temporary files. - Read
../../references/platform/runtime-diagnostics.mdfor ЖР/ТЖ timeline when exchange fails at runtime.
Workflow
- Identify the exchange model: plan exchange, РИБ, file batch, queue, direct API, or hybrid integration.
- Inspect metadata and modules with
unica.viewon the object node andunica.search: plans, nodes, registration rules, message numbers, loading handlers, and conflict resolution. - Define the exchange contract: node identity, external ids, schema version, ordering, idempotency, retry behavior, duplicate detection, and compatibility rules.
- Check change registration deliberately: keep регистрация изменений explicit, state which objects are registered, when registration is suppressed, how deletes are represented, and how retries avoid double writes.
- Check syntax with
unica.check(test runs are outside the v0.13 surface) and report runtime verification as unavailable; for live failures, rely on supplied ЖР/ТЖ and correlate message id, node, user/session, and object ids.
Review checklist
- Message processing is restartable and idempotent.
- Errors distinguish validation, duplicate, incompatible version, missing reference, and temporary transport failure.
- Conflict resolution is explicit and logged.
- Exchange does not bypass rights or tenant boundaries accidentally.
- File names, encoding, schema version, and partial-write behavior are validated before loading.
Contract gaps
If public MCP unica cannot expose exchange runtime state, message queue state, or registration details required for the task, report a Unica MCP contract gap.