BSP Patterns
MCP routing
- Preferred path: use MCP
unicatoolsunica.search,unica.viewon the object node,unica.viewon the form and role nodes,unica.docs, andunica.run. - Runtime идёт через
unica.run: вызов безopотдаёт словарь операций и
контракт каждой — argsSchema, execution, previewRequired,
dryRunRequired. Контракт вызова бери оттуда, а не из этого текста;
используй опубликованную argsSchema; при support.state: limited
разрешено только подмножество support.supportedArgs. Недоступной операции
в словаре нет. Для плановой операции сначала проверь результат
dryRun: true, затем исполняй запрос с dryRun: false. Preview
не фиксирует входы между вызовами. Не обходи контракт прямым runner-ом.
- Use
epf-bsp-initandepf-bsp-add-commandonly for BSP external processing registration helpers. - Do not call internal analyzer, standards, runtime, or package adapters directly. They are hidden behind MCP
unica.
Workflow
- Identify the BSP subsystem or library pattern by intent, not by guessed module name.
- Search existing project usage with
unica.searchbefore writing new code. Prefer local project conventions over generic snippets. - Inspect affected metadata, forms, roles, and external processing registration with
unica.viewat each object's logical address. - Use
unica.docswithsource: "development-standard"only for adevelopment-standardthat constrains the pattern. Do not treat it as platform or BSP documentation. Exact platform mechanics requireunica.docswithsource: "platform-help". Treat local BSP code as corroborating implementation evidence, not as the platform contract. - Implement the smallest integration point; check syntax with
unica.check(test runs are outside the v0.13 surface), and do not claim runtime verification from a static check.
References
- Read
../../references/platform/compatibility-modes.mdwhen BSP code gates
behavior by a platform version or compatibility mode. Platform guidance
remains the contract source; BSP code is corroborating implementation
evidence that must be reconciled with that contract.
Pattern hints
- Long operations: background job, progress feedback, cancellation, and idempotent restart.
- Access: role/profile interaction, privileged mode boundaries, and safe reads.
- External processing:
СведенияОВнешнейОбработке, command descriptions, form opening, server command execution. - Secure data: avoid plaintext secrets in modules, constants, logs, and versioned configs.
- Notifications/files: check cleanup and user-visible error path, not only happy path.
MCP example
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "unica.search",
"arguments": {
"query": "СведенияОВнешнейОбработке",
"scope": "<source-set-from-unica-view>:Configuration",
"limit": 20
}
}
}