Skip to content
Back to skills

Edt Mcp Bilingual

ASecurity

Correctness checklist for 1C's bilingual (Russian/English) model in EDT-MCP — synonym language-code vs name, object resolution by Name vs synonym vs TYPE token, dialect-aware vs literal code search. Use when reading, writing, resolving, formatting or searching metadata objects, synonyms, BSL identifiers or query keywords.

  • 358 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsgo

Works with

  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add DitriXNew/EDT-MCP --skill edt-mcp-bilingual --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edt Mcp Bilingual?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Edt Mcp Bilingual
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ditrixnew-edt-mcp-bilingual/badge)](https://www.skillsdirectory.com/skills/ditrixnew-edt-mcp-bilingual)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: edt-mcp-bilingual
description: Correctness checklist for 1C's bilingual (Russian/English) model in EDT-MCP — synonym language-code vs name, object resolution by Name vs synonym vs TYPE token, dialect-aware vs literal code search. Use when reading, writing, resolving, formatting or searching metadata objects, synonyms, BSL identifiers or query keywords.
---

# EDT-MCP — two-language (ru/en) correctness

1C is bilingual at several layers, and most plugin bugs live here. Before editing any tool that resolves/reads/writes/searches metadata or code, walk this checklist.

## 1. The metadata synonym is keyed by the language CODE

The synonym is an `EMap<String,String>` whose key is the **language code** (`"ru"`, `"en"`), NOT the `Language` object's name.

- ✅ Write/read through `MetadataLanguageUtils`: `resolveLanguageCode(config, explicit)` and `getSynonymForLanguage(map, code)`.
- ✅ Reference language-resolution logic: `MetadataLanguageUtils.resolveLanguageCode` — explicit → `getDefaultLanguage().getLanguageCode()` → the first language's code → null.
- ❌ NOT `config.getDefaultLanguage().getName()` (returns "Russian"/"Русский" — the name, not the key; on a multi-language config it silently misses the EMap).
- ❌ Don't hardcode `"ru"` as the fallback — use the first configured language's code.

## 2. An object resolves by its programmatic Name; the TYPE token is bilingual

- The object name (the segment after the type) is a **programmatic identifier**, resolved by `getName()` (see `MetadataTypeUtils.findObject`). A synonym is NOT accepted as an identifier.
- The TYPE token (Справочник/Catalog, Документ/Document …) is bilingual, handled by `MetadataTypeUtils` (`toEnglishSingular`, `normalizeFqn`, `getAllFqnVariants`).
- Say it honestly in the schema description: "only the TYPE token may be Russian/English; the object name is a programmatic identifier, not a synonym." Don't mislead with "Russian names supported".
- Render write refusals and create/modify/delete echoes with `MetadataTypeUtils.toCanonicalEnglishFqn`; preserve every Name, including names resembling kind tokens. Form-structure headings use `Catalog.X.Form.Y`, never an EMF collection token such as `forms`.
- Collection levels also accept Russian KIND tokens through `MetadataOrdering.resolve`; keep programmatic Names distinct from synonyms. Use `MdNameNormalizer.normalizeYo` for ordinary Name sorting; autosort-governed lists use the native comparator unchanged.

## 3. Writing a synonym — symmetric, through the shared resolver

- When creating an object/attribute, if a synonym is given, write `getSynonym().put(resolveLanguageCode(...), synonym)`.
- A write tool must **return** the written `synonym`+`language` in its response (symmetry with read tools).
- DCS LocalString output values accept a bare string, `{kind:"string",value:...}`, or a PresentationSpec language map. Map keys must be declared language codes; `{}` clears the text. Reuse the shared appearance parser for field and conditional appearance.

## 4. BSL: ru/en dialects

- AST/index tools (find_references, get_symbol_info, go_to_definition, call_hierarchy) are dialect-aware — they resolve by symbol name with `equalsIgnoreCase`, no normalization needed.
- `search_in_code` is a **literal** matcher, NOT dialect-aware: searching an English keyword won't find its Russian equivalent. Reflect this honestly in the tool description; for identifier search, direct the user to the AST tools.
- Cyrillic in regexes — escape via `\uXXXX` (as in `BslSyntaxChecker`), not raw UTF-8 literals (corruption risk under a non-UTF-8 build).

## 5. 1C queries are bilingual

Query keywords have ru/en dialects (SELECT/ВЫБРАТЬ, FROM/ИЗ, WHERE/ГДЕ). `validate_query` delegates to the platform parser (dialect-aware) — don't assume a single dialect; keep UTF-8 when passing query text.

For saved modules, use `ModuleQueryExtractor`: SELECT-leading literals in either dialect, case-insensitive method lookup, decoded continuations/quotes, and module-mapped diagnostics. Do not reconstruct concatenated or runtime-generated queries; report skips and offer `queryText`.

## Test invariant

Resolution tests address the same stored object with English and Russian TYPE/KIND tokens, including Cyrillic programmatic Names. Assert synonym refusal for Name-only addresses; synonym tests verify the language-code key.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.