ROCTUP/1c-mcp-toolkit
MCP и REST API сервер для получения метаданных и данных из базы 1С
ca14a987fa64Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Some paths pass through more than 8 functions one inside another; the scanner stops there
- In 14 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 of 14 tools, prompts and resources could not be followed through the code
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 14 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
close_1c_session, execute_code, execute_query, find_references_to_object, get_access_rights, get_bsl_syntax_help and 7 moreNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (14: 14 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
(name computed at run time)tool
No description.
close_1c_sessiontool Close the current 1C session — the session that executes 1C tool calls — and return a launcher script command to start a new one.Network
Close the current 1C session — the session that executes 1C tool calls — and return a launcher script command to start a new one.
Use when exclusive database access is needed (e.g. updating configuration).
Run the returned command synchronously: exit 0 means the session is ready.
On Windows, run the command in PowerShell (not cmd.exe).
On timeout, check whether a 1C process was started before launching another.
On non-timeout exit 1, read the output: pre-launch errors are safe to retry after fixing the cause;
failed startup errors close the failed new instance automatically.
NOTE: on Linux with password auth, python3 must be available on PATH.
IMPORTANT: Do NOT call this on your own initiative.execute_codetool Execute arbitrary code in 1C language.Network
Execute arbitrary code in 1C language.
The execution context is controlled by the execution_context parameter:
- 'server' (default): code runs in НаСервереБезКонтекста — DB access, 1C objects, no form context.
- 'client': code runs in НаКлиенте — form attributes (ЭтаФорма), UI functions, no DB queries.
The result is returned from the 'Результат' (Result) variable as JSON or TOON format.
Important limitations (code is executed as a statement block, not a full module):
- Do NOT declare procedures/functions (`Процедура/Функция`) inside the snippet.
- Do NOT use `Возврат` (Return). Instead assign a value to `Результат`.
WARNING: Some dangerous operations are blocked for safety reasons.
Args:
ctx: MCP Context (injected automatically)
code: The 1C code to execute. Use 'Результат = ...' to return a value.
execution_context: Optional['server'|'client'], default='server'.
Returns:
Dictionary with:
- success: Boolean indicating if the code executed successfully
- data: The value of 'Результат' variable in JSON or TOON format (if successful)
- error: Error message with line number (if failed)
Example:
execute_code(code="Результат = ТекущаяДата();")
execute_code(code="Результат = ЭтаФорма.Наименование;", execution_context="client")execute_querytool Execute a query in 1C query language and return the results.Network
Execute a query in 1C query language and return the results.
This tool executes queries on the 1C:Enterprise database using the 1C query language.
Results are returned as JSON or TOON format.
Args:
ctx: MCP Context (injected automatically)
query: The query text in 1C query language (e.g., "ВЫБРАТЬ * ИЗ Справочник.Номенклатура")
params: Optional dictionary of query parameters (e.g., {"Param1": "value1"}).
Parameter values can be:
- Simple values (string, number, boolean, date)
- Object references in format: {"_objectRef": true, "УникальныйИдентификатор": "uuid-string", "ТипОбъекта": "СправочникСсылка.Контрагенты"}
Object references are automatically converted to actual 1C references before query execution.
limit: Maximum number of rows to return (default: 100, max: 1000)
include_schema: Include column type schema in response (default: False)
Returns:
Dictionary with:
- success: Boolean indicating if the query executed successfully
- data: Array of result objects in JSON or TOON format (if successful)
- schema: Column type information (if include_schema=True and successful)
- error: Error message (if failed)
Examples:
# Simple parameter
execute_query(
query="ВЫБРАТЬ Код, Наименование ИЗ Справочник.Номенклатура ГДЕ Код = &КодТовара",
params={"КодТовара": "001"},
limit=100,
include_schema=True
)
# Object reference parameter (from previous execute_query result)
execute_query(
query="ВЫБРАТЬ * ИЗ Документ.РеализацияТоваровУслуг ГДЕ Контрагент = &МойКонтрагент",
params={
"МойКонтрагент": {
"_objectRef": true,
"УникальныйИдентификатор": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"ТипОбъекта": "СправочникСсылка.Контрагенты"
}
},
limit=50
)find_references_to_objecttool Find references to a given object across specified metadata collections.Network
Find references to a given object across specified metadata collections.
This tool searches for references to the target object in documents, catalogs,
and registers. It checks all fields whose type can contain a reference to the
target object type, then queries for actual matches.
The search is performed in two stages:
1. Candidate discovery: metadata traversal to find fields that can hold the target type
2. Query execution: actual queries to find objects/records referencing the target
Args:
ctx: MCP Context (injected automatically)
target_object_description: Object description from execute_query results with fields:
- _objectRef: must be true
- УникальныйИдентификатор: UUID string
- ТипОбъекта: object type (e.g., "СправочникСсылка.Контрагенты")
- Представление: string representation (optional)
search_scope: List of search scopes to check. Valid values:
"documents", "catalogs", "information_registers",
"accumulation_registers", "accounting_registers", "calculation_registers".
meta_filter: Optional metadata filter dict with fields:
- names: list of exact metadata object names (e.g., ["Документ.РеализацияТоваровУслуг"])
- name_mask: search mask for name/synonym (case-insensitive)
If names is provided, name_mask is ignored.
limit_hits: Maximum total number of hits (default: 200, max: 10000).
limit_per_meta: Maximum hits per metadata object (default: 20, max: 1000).
timeout_budget_sec: Time budget in seconds for the search (default: 30, min: 5, max: 300).
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Object containing:
- hits: Array of found references, each with:
- found_in_meta: metadata object name (e.g., "Документ.РеализацияТоваровУслуг")
- found_in_object: object_description of the owner (for documents/catalogs) or null (for registers)
- record_key: dimension values (for registers only)
- path: field path (e.g., "Контрагент" or "Товары.Номенклатура")
- match_kind: field type (attribute, tabular_section, dimension, resource, requisite)
- note: human-readable description
- total_hits: number of hits found
- candidates_checked: number of candidate fields checked
- timeout_exceeded: true if time budget was exhausted
- skipped_names: names from meta_filter.names that were skipped
- error: Error message (if failed)
Example:
find_references_to_object(
target_object_description={
"_objectRef": True,
"УникальныйИдентификатор": "ba7e5a3d-1234-5678-9abc-def012345678",
"ТипОбъекта": "СправочникСсылка.Контрагенты",
"Представление": "ООО Рога и Копыта"
},
search_scope=["documents"],
limit_hits=10
)get_access_rightstool Get role permissions for a metadata object and optionally effective rights for a user.Network
Get role permissions for a metadata object and optionally effective rights for a user.
This tool retrieves information about what rights each role grants for the specified
metadata object. If a user name is provided, it also calculates the effective rights
for that user (sum of all their roles).
IMPORTANT limitations:
- effective_rights is "rights by sum of roles", NOT a guarantee of real access
- RLS (Row Level Security) is NOT taken into account
- Contextual restrictions (by organizations, departments) are NOT taken into account
- This is a check of "what is allowed by roles", not "what the user will actually see"
Runtime requirements:
- Admin rights are required: AccessRight() with 3rd parameter (Role/User) requires admin rights
- Privileged mode is forbidden: if enabled, AccessRight() always returns True, result is meaningless
Args:
ctx: MCP Context (injected automatically)
metadata_object: Full metadata object name (e.g., "Справочник.Контрагенты", "Документ.РеализацияТоваровУслуг")
user_name: Optional user name for effective rights calculation (case-insensitive search)
rights_filter: Optional list of rights to show in result (default: all applicable rights for type)
roles_filter: Optional list of roles to show (default: all roles with rights)
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Object containing:
- metadata_object: full metadata object name
- metadata_type: object type (e.g., "Справочник", "Документ", "РегистрСведений")
- applicable_rights: array of applicable rights for this object type
- roles: array of roles with their rights, sorted by name
- total_roles: number of roles in result (after roles_filter)
- roles_with_rights: number of roles that have at least one right (after rights_filter)
- user: (if user_name provided) object with:
- name: user name
- full_name: user's full name (optional, may not be available)
- roles: array of role names assigned to the user
- effective_rights: object with right names as keys and boolean values
- error: Error message (if failed)
Example:
# Get all role permissions for a catalog
get_access_rights(metadata_object="Справочник.Контрагенты")
# Get specific rights for a user
get_access_rights(
metadata_object="Справочник.Контрагенты",
user_name="Иванов",
rights_filter=["Чтение", "Изменение"]
)get_bsl_syntax_helptool Get syntax reference for 1C BSL language.Network
Get syntax reference for 1C BSL language.
Search by keywords to find built-in functions, methods, types and language constructs.
Returns candidates (unique breadcrumb paths) and Markdown content when exactly one breadcrumb matches.
If the single match is a navigation section (no content, has sub-topics), returns its sub-topics as candidates instead.
Candidate paths (e.g. "Массив/Методы/Найти") and Markdown link targets from content (format: [Title](topic:Path)) can be used as keywords for exact lookup — pass the full string including the topic: prefix as-is.
When searching for members of a type, include "Методы", "Свойства", or "Конструкторы" in keywords.
Supports pagination via limit/offset. If has_more is true, call again with offset += limit.
When content is returned, it may be paginated.
If content_has_more is true, call again with content_page + 1 to get the next page.
Args:
keywords: List of search keywords, or a single candidate path / link from content for exact lookup
match: "all" (default) — all keywords must match; "any" — any keyword matches
limit: Maximum number of candidates to return (1–300, default 100)
offset: Number of candidates to skip for pagination (default 0)
content_page: Page number of content to return (1-based, default 1)
Returns:
data.candidates: paged slice of matching breadcrumb paths
data.total: total number of matching candidates (before pagination)
data.offset: the offset used for this response
data.limit: the limit used for this response
data.has_more: true if more candidates exist beyond this page
data.content: Markdown text page (only when total==1 and offset==0), else null
data.content_page: current page of content (only when content is not null)
data.content_total_pages: total number of content pages (only when content is not null)
data.content_has_more: true if more content pages exist (only when content is not null)
Example:
keywords=["Найти"]
keywords=["Найти", "Массив"]
keywords=["Массив/Методы/Найти"]
keywords=["topic:Массив/Методы/Найти"]get_event_logtool Get event log entries from 1C database with filtering options and cursor pagination.Network
Get event log entries from 1C database with filtering options and cursor pagination.
This tool retrieves entries from the 1C event log (Журнал регистрации)
with optional filtering by date range, importance level, event type,
and additional filters for data object, metadata type, user, session, etc.
Results are returned as JSON or TOON format.
Supports cursor pagination for iterating through large result sets:
- Response includes last_date, next_same_second_offset, and has_more
- For next page: use last_date as start_date and next_same_second_offset as same_second_offset
Args:
start_date: Start date in ISO 8601 format (YYYY-MM-DDTHH:MM:SS).
If not provided, no start date filter is applied.
For pagination: use last_date from previous response.
end_date: End date in ISO 8601 format (YYYY-MM-DDTHH:MM:SS).
If not provided, no end date filter is applied.
levels: List of importance levels to filter by.
Valid values: "Information", "Warning", "Error", "Note".
If not provided, all levels are returned.
events: List of event types to filter by (e.g., "_$Data$_.New", "_$Session$_.Start").
If not provided, all event types are returned.
limit: Maximum number of records to return (default: 100, max: 1000).
object_description: Object description from execute_query results.
Priority: object_description > link > data.
Example: {"_objectRef": true, "УникальныйИдентификатор": "...", "ТипОбъекта": "..."}
link: Navigation link in format e1cib/data/Type.Name?ref=HexGUID.
Priority: object_description > link > data.
Example: "e1cib/data/Документ.РеализацияТоваровУслуг?ref=..."
data: Reference to data object (navigation link) - for backward compatibility.
Priority: object_description > link > data.
Example: "e1cib/data/Документ.РеализацияТоваровУслуг?ref=..."
metadata_type: List of metadata object types to filter by.
Example: ["Документ.РеализацияТоваровУслуг", "Справочник.Номенклатура"].
user: List of user names to filter by.
session: List of session numbers to filter by.
application: List of application types to filter by.
Valid values: "ThinClient", "WebClient", "ThickClient",
"BackgroundJob", "Designer", "COMConnection",
"Server", "WebService", "HTTPService", "ODataInterface",
"MobileAppClient", "MobileAppServer", "MobileAppBackgroundJob",
"MobileClient", "MobileStandaloneServer",
"FileVariantBackgroundJob", "FileVariantServerSide",
"WebSocket", "FileVariantWebSocket",
"1CV8C", "1CV8".
computer: Computer name to filter by.
comment_contains: Substring to search in comment (case-insensitive).
transaction_status: Transaction status to filter by.
Valid values: "Committed", "RolledBack", "NotApplicable", "Unfinished".
same_second_offset: Skip N records with the same second as start_date (for pagination).
For pagination: use next_same_second_offset from previous response.
Requires start_date to be specified.
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Array of event log entries in JSON or TOON format (if successful), each containing:
- date: Event timestamp
- level: Importance level (Information, Warning, Error, Note)
- event: Event type
- comment: Event description/comment
- user: User name
- metadata: Metadata object name
- data_presentation: Data presentation string
- session: Session number
- application: Application type
- computer: Computer name
- transaction_status: Transaction status
- count: Number of returned records
- last_date: ISO 8601 date of last record (cursor for pagination, only with date filter)
- next_same_second_offset: Accumulated offset for next page (only with date filter)
- has_more: Boolean indicating if there are more records (only with date filter)
- error: Error message (if failed)
Example:
# Get all errors from the last day
get_event_log(
start_date="2024-01-15T00:00:00",
end_date="2024-01-15T23:59:59",
levels=["Error", "Warning"],
limit=100
)
# Pagination example - page 1
result = get_event_log(
start_date="2024-01-01T00:00:00",
end_date="2024-01-31T23:59:59",
levels=["Error"],
limit=100
)
# Response: last_date="2024-01-15T14:30:45", next_same_second_offset=3, has_more=true
# Pagination example - page 2
result = get_event_log(
start_date="2024-01-15T14:30:45", # last_date from page 1
end_date="2024-01-31T23:59:59",
levels=["Error"],
limit=100,
same_second_offset=3 # next_same_second_offset from page 1
)
# Get entries for specific object using object_description
get_event_log(
object_description={
"_objectRef": True,
"УникальныйИдентификатор": "ba7e5a3d-1234-5678-9abc-def012345678",
"ТипОбъекта": "ДокументСсылка.РеализацияТоваровУслуг"
}
)
# Get entries for specific metadata type and user
get_event_log(
metadata_type=["Документ.РеализацияТоваровУслуг"],
user=["Иванов"],
application=["ThinClient", "WebClient"],
comment_contains="ошибка"
)get_link_of_objecttool Generate a 1C navigation link from an object description.Network
Generate a 1C navigation link from an object description.
This tool converts an object description (returned by execute_query) into a clickable
navigation link that can be used to open the object directly in 1C.
Use this tool to provide users with clickable links to 1C objects after finding them
with execute_query.
Args:
ctx: MCP Context (injected automatically)
object_description: Object description from execute_query results with fields:
- _objectRef: must be true
- УникальныйИдентификатор: UUID string
- ТипОбъекта: object type (e.g., "СправочникСсылка.Контрагенты")
- Представление: string representation (optional)
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Navigation link string (e.g., "e1cib/data/Справочник.Контрагенты?ref=...")
- error: Error message (if failed)
Example:
# After finding an object with execute_query
result = execute_query("SELECT Ref FROM Catalog.Customers WHERE Code = '001'")
# result.data[0]["Ref"] contains object description
# Generate link
link_result = get_link_of_object(result.data[0]["Ref"])
# link_result.link = "e1cib/data/Справочник.Контрагенты?ref=80c6cc1a..."get_metadatatool Get metadata information about 1C database objects.Network
Get metadata information about 1C database objects.
This tool returns information about the structure of the 1C database in JSON format.
Usage modes:
1. Summary (root types): No parameters (filter/meta_type/name_mask not provided)
Returns:
- data: list of root metadata types with counts (Тип, Количество)
- configuration: configuration/platform info (when available) as a top-level field
2. Filtered list: Use 'meta_type' and/or 'name_mask' parameters
Example: meta_type="Документ", name_mask="реализ"
Returns: List of objects matching the criteria.
Each item includes: ПолноеИмя, Синоним.
List results are sorted by ПолноеИмя and support pagination via offset.
List mode response always includes pagination metadata:
- truncated, limit, returned, count, offset, has_more, next_offset
Fields truncated/has_more indicate whether more results exist.
3. Detailed structure: Use 'filter' parameter with exact full name
Example: filter="Справочник.Номенклатура"
Returns: Full structure with attributes, dimensions, resources, tabular sections
3a. Specific collection element: Use 'filter' with full path to element
Collection names use singular segment names (Реквизит, Измерение, Ресурс, ТабличнаяЧасть):
filter="Справочник.Контрагенты.Реквизит.ИНН"
filter="РегистрНакопления.Остатки.Измерение.Номенклатура"
filter="РегистрНакопления.Остатки.Ресурс.Количество"
filter="Задача.Задача.РеквизитАдресации.Исполнитель"
filter="Справочник.Контрагенты.СтандартныйРеквизит.Наименование"
filter="Документ.Реализация.ТабличнаяЧасть.Товары"
filter="Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура"
Use with sections=["properties"] to get extended element properties
(ПроверкаЗаполнения, ЗначениеЗаполнения, Ведущее, Использование, etc.)
4. Extensions support: Use 'extension_name' parameter
- extension_name not provided: work with main configuration (default)
- extension_name="": get list of all connected extensions
- extension_name="ExtensionName": work with objects inside the specified extension
5. Attribute search: Use 'attribute_mask' parameter
Find all attributes (реквизиты/измерения/ресурсы/реквизиты ТЧ) whose name or synonym
contains the given substring (case-insensitive).
Returns same list contract as mode 2: data=[{ПолноеИмя, Синоним},...], count, has_more, etc.
ПолноеИмя is in singular format — usable as filter (round-trip: data[0]["ПолноеИмя"]).
Compatible with meta_type, name_mask, filter (root object), extension_name (specific).
NOTE: extension_name="" (list extensions) takes priority, attribute_mask is ignored.
INCOMPATIBLE with sections (returns error). Round-trip for details:
pass data[0]["ПолноеИмя"] as filter, then use sections.
6. Paginated types of one typed field: filter + types_limit/types_offset
filter points to a single typed field (Реквизит/СтандартныйРеквизит/Измерение/Ресурс/
РеквизитАдресации/ТЧ...Реквизит, e.g. "Справочник.Объект.Реквизит.Статус").
In ANY structure response each field's Тип shows at most 20 type names; when any field
of an array has more than 20 types, columns total_types_count/shown_types_count are
added to ALL rows of that array (per-array decision). The addressed field response
returns Тип (same <=20 rule) plus data.types = {count, limit, offset, returned,
truncated, has_more, next_offset, items[]} with full type strings.
Continue with types_offset=types.next_offset while types.has_more=true; starting from
types_offset=shown_types_count returns the remaining types of a shortened field.
types_limit (default 100, max 200) / types_offset (default 0, max 1000000) are
FORBIDDEN for object/tabular-section structure requests and incompatible with
attribute_mask, meta_type, name_mask, extension_name="". Existing limit/offset
do NOT paginate types.
Args:
ctx: MCP Context (injected automatically)
filter: Full name of object (e.g., "Справочник.Номенклатура") or full path to collection element
(e.g., "Справочник.Контрагенты.Реквизит.ИНН",
"РегистрНакопления.Остатки.Измерение.Номенклатура",
"Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура")
meta_type: Object type filter for list (string or list). Use "*" to list across all root types.
name_mask: Search mask for name/synonym (case-insensitive substring search)
limit: Maximum number of objects in list (default: 100, max: 1000)
sections: Detail sections to include (works only with filter). Supported: properties, forms, commands, layouts, predefined, movements, characteristics (movements is only available for Документ objects)
offset: Offset for pagination in list mode (default: 0)
extension_name: Extension name (None=main config, ""=list extensions, "Name"=extension objects).
Whitespace-only values are rejected.
attribute_mask: Search mask for attribute name/synonym (case-insensitive substring).
Returns list contract: data=[{ПолноеИмя, Синоним},...].
ПолноеИмя can be used directly as filter (round-trip).
INCOMPATIBLE with sections (returns error).
types_limit: Page size for the full list of allowed types of ONE addressed typed field
(default 100, max 200). Forbidden for structure requests; incompatible with
attribute_mask/meta_type/name_mask/extension_name="". limit/offset do NOT
paginate types.
types_offset: Offset in the types list of one addressed typed field (default 0).
Continue with types.next_offset while types.has_more=true;
types_offset=shown_types_count returns the remaining types of a shortened field.
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Metadata information in JSON format:
- Summary: array data of {Тип, Количество} plus optional top-level field configuration
- List: array of {ПолноеИмя, Синоним}
- Details: object structure; sections like Реквизиты/ТабличныеЧасти/Измерения/Ресурсы may be omitted if not applicable for the metadata object type (if applicable, they are returned as arrays and may be empty)
- Extensions list: array of extension properties (ConfigurationExtension), e.g. {Имя, Синоним, Активно, БезопасныйРежим, Версия, УникальныйИдентификатор, Назначение, ОбластьДействия, ...}
- extension: Extension name (when working with extension objects)
- error: Error message (if failed)
Examples:
# Get summary of root metadata types (counts)
get_metadata()
# Get only documents
get_metadata(meta_type="Документ")
# Search for objects with "реализ" in name (across all types)
get_metadata(name_mask="реализ")
# Get mixed list across all root types
get_metadata(meta_type="*", limit=50)
# Get details about a specific catalog
get_metadata(filter="Справочник.Номенклатура")
# Get extended properties of a specific attribute
get_metadata(filter="Справочник.Контрагенты.Реквизит.ИНН", sections=["properties"])
# Get extended properties of a dimension
get_metadata(filter="РегистрНакопления.Остатки.Измерение.Номенклатура", sections=["properties"])
# Get info about a tabular section with its attributes
get_metadata(filter="Документ.Реализация.ТабличнаяЧасть.Товары")
# Get extended properties of a tabular section attribute
get_metadata(filter="Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура", sections=["properties"])
# Get extended properties of a standard attribute
get_metadata(filter="Справочник.Контрагенты.СтандартныйРеквизит.Наименование", sections=["properties"])
# Get list of all connected extensions
get_metadata(extension_name="")
# Get objects from a specific extension
get_metadata(extension_name="MyExtension", meta_type="Справочник")
# Get details about an object in extension
get_metadata(extension_name="MyExtension", filter="Справочник.МойСправочник")
# Find all 'Контрагент' attributes across entire configuration
get_metadata(attribute_mask="контраг")
# Only in documents
get_metadata(attribute_mask="контраг", meta_type="Документ")
# Round-trip: use result as filter for details
matches = get_metadata(attribute_mask="контраг")["data"]
get_metadata(filter=matches[0]["ПолноеИмя"], sections=["properties"])get_object_by_linktool Get 1C object data by navigation link.Network
Get 1C object data by navigation link.
This tool retrieves complete object data from the 1C:Enterprise database
using a navigation link. The link format is e1cib/data/Type.Name?ref=HexGUID
for standard objects. For external data sources:
- Object tables (single key): e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName?ref=Value
- Non-object tables (composite key): e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName?FieldName=Value
Results are returned as JSON or TOON format.
Args:
ctx: MCP Context (injected automatically)
link: Navigation link. Standard objects: e1cib/data/Type.Name?ref=HexGUID (32 hex chars).
External data sources: e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName
- Object tables: ?ref=Value (e.g., "...Таблица.Заказы?ref=117953")
- Non-object tables: ?FieldName=Value (e.g., "...Таблица.OrderItems?ID=5&Type=A")
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Object data in JSON or TOON format (if successful), containing:
- _type: Full metadata type name
- _presentation: String representation of the object
- Standard attributes (Код, Наименование, Дата, Номер if applicable)
- Custom attributes defined in metadata
- Tabular sections with all rows
- error: Error message (if failed)
Example:
get_object_by_link(
link="e1cib/data/Справочник.Контрагенты?ref=80c6cc1a7e58902811ebcda8cb07c0f5"
)get_screenshottool Captures the main 1C window, including open dropdowns, menus and dialogs.Network
Captures the main 1C window, including open dropdowns, menus and dialogs.
To capture an already open dropdown, omit form_name.
With form_name or link the capture starts only after the form has had time to render
(~1.5 s wait, activation, ~0.7 s more).
If capture_complete is false, some visible overlays could not be captured.
Args:
form_name: Optional. Full 1C form name (e.g. "Справочник.Контрагенты.Форма.ФормаЭлемента").
If provided, opens the form (or activates it if already open), waits ~1.5 s for it
to render, activates the form, waits ~0.7 s more and only then captures the window.
The form is closed afterwards only if this request opened it; an already open form remains open.
Opening a form dismisses any layer that was open, so omit it when the point of the
screenshot is to see an open list or menu.
If omitted, captures the current 1C main window immediately.
Mutually exclusive with link.
link: Optional. Navigation link of an existing 1C object
(e1cib/data/<Type>.<Name>?ref=<32 hex>), e.g. returned by get_link_of_object.
Finds an already open form of this object or opens it via a single navigation,
then follows the same wait/activate/capture sequence as form_name.
The form is closed afterwards only if this request opened it.
If several forms of the same object are open, returns an ambiguity error.
External data source links are not supported. Mutually exclusive with form_name.
page_name: Optional. Internal name of a form page (tab) element to show before capture
(e.g. "ДополнительныеСведения") — not the visible tab title. Parent page
groups are switched as needed for nested pages. Requires form_name or link.
After capture, pages changed by this request are restored in an already
open form unless the user switched them meanwhile.
scale_percent: Output image scale (10–200, default 100). Values above 100 produce a larger
image with more detail (e.g. 200 = 2× size). Values below 100 produce a smaller
image (e.g. 50 = half size). Grid coordinate labels always show original window
pixel coordinates regardless of scale.
show_grid: If true, draws a grid on the screenshot (up to 10×10, dynamic density based
on image size — small regions get fewer lines or none): red lines, yellow
coordinate labels (px) on black background at each axis, red dots at
intersections. Coordinate origin (0, 0) is at the top-left corner of the
captured image. Grid line coordinates are also returned as text (grid_coords).
region: Optional. Crop to a sub-region before scaling. Provide x, y (≥0), width, height (≥1)
in original client-area pixels. Omit or pass None for full window. Returns an error
if the region extends outside the window bounds.
highlight_rects: Optional. List of rectangles to draw on the screenshot as numbered blue frames (3 px).
Each item: {x, y, width, height} in original client-area pixels, origin (0, 0) at
the top-left corner of the captured image (same coordinate space as grid labels).
Rectangles are labeled 1, 2, 3… in array order. Labels appear
outside above the top-right corner (inside if there is not enough space above).
Rectangles must not overlap — returns an error specifying which ones do.
Omit or pass None to draw no rectangles.
Returns:
Image content (PNG) on success, or error on failure.restart_1c_sessiontool Restart the current 1C session — the session that executes 1C tool calls.Network
Restart the current 1C session — the session that executes 1C tool calls.
A restart is typically required after updating the 1C configuration (metadata, extensions, BSL code)
so the new session picks up the changes. The new session starts automatically with the same database
and connection settings; anonymization state is preserved. The current session shuts down once the new one is ready.
IMPORTANT: Do NOT call this tool on your own initiative. Only invoke it when explicitly instructed —
either by the user directly or as a defined step in a pipeline or task specification.
Never infer that a restart is needed and call it autonomously.submit_for_deanonymizationtool Submit the final user-facing response for de-anonymization display.Network
Submit the final user-facing response for de-anonymization display.
You MUST call this tool if, and only if, your final response to the user contains
anonymization tokens in the form [CATEGORY-NNNNN], for example [ORG-00001],
[PER-00042], [INN-00001].
Call this tool exactly once, immediately before sending the final response to the user.
Pass the complete final response text in the "text" parameter.
Do NOT call this tool for intermediate reasoning, drafts, or raw tool outputs.
This tool does NOT return de-anonymized text to you.
It only confirms receipt, for example {"received": true}.
After calling this tool, send your original final response with tokens unchanged.
The user will see the de-anonymized version in their interface.Text the model reads (14)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
execute_query tool
Execute a query in 1C query language and return the results.
This tool executes queries on the 1C:Enterprise database using the 1C query language.
Results are returned as JSON or TOON format.
Args:
ctx: MCP Context (injected automatically)
query: The query text in 1C query language (e.g., "ВЫБРАТЬ * ИЗ Справочник.Номенклатура")
params: Optional dictionary of query parameters (e.g., {"Param1": "value1"}).
Parameter values can be:
- Simple values (string, number, boolean, date)
- Object references in format: {"_objectRef": true, "УникальныйИдентификатор": "uuid-string", "ТипОбъекта": "СправочникСсылка.Контрагенты"}
Object references are automatically converted to actual 1C references before query execution.
limit: Maximum number of rows to return (default: 100, max: 1000)
include_schema: Include column type schema in response (default: False)
Returns:
Dictionary with:
- success: Boolean indicating if the query executed successfully
- data: Array of result objects in JSON or TOON format (if successful)
- schema: Column type information (if include_schema=True and successful)
- error: Error message (if failed)
Examples:
# Simple parameter
execute_query(
query="ВЫБРАТЬ Код, Наименование ИЗ Справочник.Номенклатура ГДЕ Код = &КодТовара",
params={"КодТовара": "001"},
limit=100,
include_schema=True
)
# Object reference parameter (from previous execute_query result)
execute_query(
query="ВЫБРАТЬ * ИЗ Документ.РеализацияТоваровУслуг ГДЕ Контрагент = &МойКонтрагент",
params={
"МойКонтрагент": {
"_objectRef": true,
"УникальныйИдентификатор": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"ТипОбъекта": "СправочникСсылка.Контрагенты"
}
},
limit=50
)execute_code tool
Execute arbitrary code in 1C language.
The execution context is controlled by the execution_context parameter:
- 'server' (default): code runs in НаСервереБезКонтекста — DB access, 1C objects, no form context.
- 'client': code runs in НаКлиенте — form attributes (ЭтаФорма), UI functions, no DB queries.
The result is returned from the 'Результат' (Result) variable as JSON or TOON format.
Important limitations (code is executed as a statement block, not a full module):
- Do NOT declare procedures/functions (`Процедура/Функция`) inside the snippet.
- Do NOT use `Возврат` (Return). Instead assign a value to `Результат`.
WARNING: Some dangerous operations are blocked for safety reasons.
Args:
ctx: MCP Context (injected automatically)
code: The 1C code to execute. Use 'Результат = ...' to return a value.
execution_context: Optional['server'|'client'], default='server'.
Returns:
Dictionary with:
- success: Boolean indicating if the code executed successfully
- data: The value of 'Результат' variable in JSON or TOON format (if successful)
- error: Error message with line number (if failed)
Example:
execute_code(code="Результат = ТекущаяДата();")
execute_code(code="Результат = ЭтаФорма.Наименование;", execution_context="client")get_metadata tool
Get metadata information about 1C database objects.
This tool returns information about the structure of the 1C database in JSON format.
Usage modes:
1. Summary (root types): No parameters (filter/meta_type/name_mask not provided)
Returns:
- data: list of root metadata types with counts (Тип, Количество)
- configuration: configuration/platform info (when available) as a top-level field
2. Filtered list: Use 'meta_type' and/or 'name_mask' parameters
Example: meta_type="Документ", name_mask="реализ"
Returns: List of objects matching the criteria.
Each item includes: ПолноеИмя, Синоним.
List results are sorted by ПолноеИмя and support pagination via offset.
List mode response always includes pagination metadata:
- truncated, limit, returned, count, offset, has_more, next_offset
Fields truncated/has_more indicate whether more results exist.
3. Detailed structure: Use 'filter' parameter with exact full name
Example: filter="Справочник.Номенклатура"
Returns: Full structure with attributes, dimensions, resources, tabular sections
3a. Specific collection element: Use 'filter' with full path to element
Collection names use singular segment names (Реквизит, Измерение, Ресурс, ТабличнаяЧасть):
filter="Справочник.Контрагенты.Реквизит.ИНН"
filter="РегистрНакопления.Остатки.Измерение.Номенклатура"
filter="РегистрНакопления.Остатки.Ресурс.Количество"
filter="Задача.Задача.РеквизитАдресации.Исполнитель"
filter="Справочник.Контрагенты.СтандартныйРеквизит.Наименование"
filter="Документ.Реализация.ТабличнаяЧасть.Товары"
filter="Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура"
Use with sections=["properties"] to get extended element properties
(ПроверкаЗаполнения, ЗначениеЗаполнения, Ведущее, Использование, etc.)
4. Extensions support: Use 'extension_name' parameter
- extension_name not provided: work with main configuration (default)
- extension_name="": get list of all connected extensions
- extension_name="ExtensionName": work with objects inside the specified extension
5. Attribute search: Use 'attribute_mask' parameter
Find all attributes (реквизиты/измерения/ресурсы/реквизиты ТЧ) whose name or synonym
contains the given substring (case-insensitive).
Returns same list contract as mode 2: data=[{ПолноеИмя, Синоним},...], count, has_more, etc.
ПолноеИмя is in singular format — usable as filter (round-trip: data[0]["ПолноеИмя"]).
Compatible with meta_type, name_mask, filter (root object), extension_name (specific).
NOTE: extension_name="" (list extensions) takes priority, attribute_mask is ignored.
INCOMPATIBLE with sections (returns error). Round-trip for details:
pass data[0]["ПолноеИмя"] as filter, then use sections.
6. Paginated types of one typed field: filter + types_limit/types_offset
filter points to a single typed field (Реквизит/СтандартныйРеквизит/Измерение/Ресурс/
РеквизитАдресации/ТЧ...Реквизит, e.g. "Справочник.Объект.Реквизит.Статус").
In ANY structure response each field's Тип shows at most 20 type names; when any field
of an array has more than 20 types, columns total_types_count/shown_types_count are
added to ALL rows of that array (per-array decision). The addressed field response
returns Тип (same <=20 rule) plus data.types = {count, limit, offset, returned,
truncated, has_more, next_offset, items[]} with full type strings.
Continue with types_offset=types.next_offset while types.has_more=true; starting from
types_offset=shown_types_count returns the remaining types of a shortened field.
types_limit (default 100, max 200) / types_offset (default 0, max 1000000) are
FORBIDDEN for object/tabular-section structure requests and incompatible with
attribute_mask, meta_type, name_mask, extension_name="". Existing limit/offset
do NOT paginate types.
Args:
ctx: MCP Context (injected automatically)
filter: Full name of object (e.g., "Справочник.Номенклатура") or full path to collection element
(e.g., "Справочник.Контрагенты.Реквизит.ИНН",
"РегистрНакопления.Остатки.Измерение.Номенклатура",
"Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура")
meta_type: Object type filter for list (string or list). Use "*" to list across all root types.
name_mask: Search mask for name/synonym (case-insensitive substring search)
limit: Maximum number of objects in list (default: 100, max: 1000)
sections: Detail sections to include (works only with filter). Supported: properties, forms, commands, layouts, predefined, movements, characteristics (movements is only available for Документ objects)
offset: Offset for pagination in list mode (default: 0)
extension_name: Extension name (None=main config, ""=list extensions, "Name"=extension objects).
Whitespace-only values are rejected.
attribute_mask: Search mask for attribute name/synonym (case-insensitive substring).
Returns list contract: data=[{ПолноеИмя, Синоним},...].
ПолноеИмя can be used directly as filter (round-trip).
INCOMPATIBLE with sections (returns error).
types_limit: Page size for the full list of allowed types of ONE addressed typed field
(default 100, max 200). Forbidden for structure requests; incompatible with
attribute_mask/meta_type/name_mask/extension_name="". limit/offset do NOT
paginate types.
types_offset: Offset in the types list of one addressed typed field (default 0).
Continue with types.next_offset while types.has_more=true;
types_offset=shown_types_count returns the remaining types of a shortened field.
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Metadata information in JSON format:
- Summary: array data of {Тип, Количество} plus optional top-level field configuration
- List: array of {ПолноеИмя, Синоним}
- Details: object structure; sections like Реквизиты/ТабличныеЧасти/Измерения/Ресурсы may be omitted if not applicable for the metadata object type (if applicable, they are returned as arrays and may be empty)
- Extensions list: array of extension properties (ConfigurationExtension), e.g. {Имя, Синоним, Активно, БезопасныйРежим, Версия, УникальныйИдентификатор, Назначение, ОбластьДействия, ...}
- extension: Extension name (when working with extension objects)
- error: Error message (if failed)
Examples:
# Get summary of root metadata types (counts)
get_metadata()
# Get only documents
get_metadata(meta_type="Документ")
# Search for objects with "реализ" in name (across all types)
get_metadata(name_mask="реализ")
# Get mixed list across all root types
get_metadata(meta_type="*", limit=50)
# Get details about a specific catalog
get_metadata(filter="Справочник.Номенклатура")
# Get extended properties of a specific attribute
get_metadata(filter="Справочник.Контрагенты.Реквизит.ИНН", sections=["properties"])
# Get extended properties of a dimension
get_metadata(filter="РегистрНакопления.Остатки.Измерение.Номенклатура", sections=["properties"])
# Get info about a tabular section with its attributes
get_metadata(filter="Документ.Реализация.ТабличнаяЧасть.Товары")
# Get extended properties of a tabular section attribute
get_metadata(filter="Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура", sections=["properties"])
# Get extended properties of a standard attribute
get_metadata(filter="Справочник.Контрагенты.СтандартныйРеквизит.Наименование", sections=["properties"])
# Get list of all connected extensions
get_metadata(extension_name="")
# Get objects from a specific extension
get_metadata(extension_name="MyExtension", meta_type="Справочник")
# Get details about an object in extension
get_metadata(extension_name="MyExtension", filter="Справочник.МойСправочник")
# Find all 'Контрагент' attributes across entire configuration
get_metadata(attribute_mask="контраг")
# Only in documents
get_metadata(attribute_mask="контраг", meta_type="Документ")
# Round-trip: use result as filter for details
matches = get_metadata(attribute_mask="контраг")["data"]
get_metadata(filter=matches[0]["ПолноеИмя"], sections=["properties"])get_event_log tool
Get event log entries from 1C database with filtering options and cursor pagination.
This tool retrieves entries from the 1C event log (Журнал регистрации)
with optional filtering by date range, importance level, event type,
and additional filters for data object, metadata type, user, session, etc.
Results are returned as JSON or TOON format.
Supports cursor pagination for iterating through large result sets:
- Response includes last_date, next_same_second_offset, and has_more
- For next page: use last_date as start_date and next_same_second_offset as same_second_offset
Args:
start_date: Start date in ISO 8601 format (YYYY-MM-DDTHH:MM:SS).
If not provided, no start date filter is applied.
For pagination: use last_date from previous response.
end_date: End date in ISO 8601 format (YYYY-MM-DDTHH:MM:SS).
If not provided, no end date filter is applied.
levels: List of importance levels to filter by.
Valid values: "Information", "Warning", "Error", "Note".
If not provided, all levels are returned.
events: List of event types to filter by (e.g., "_$Data$_.New", "_$Session$_.Start").
If not provided, all event types are returned.
limit: Maximum number of records to return (default: 100, max: 1000).
object_description: Object description from execute_query results.
Priority: object_description > link > data.
Example: {"_objectRef": true, "УникальныйИдентификатор": "...", "ТипОбъекта": "..."}
link: Navigation link in format e1cib/data/Type.Name?ref=HexGUID.
Priority: object_description > link > data.
Example: "e1cib/data/Документ.РеализацияТоваровУслуг?ref=..."
data: Reference to data object (navigation link) - for backward compatibility.
Priority: object_description > link > data.
Example: "e1cib/data/Документ.РеализацияТоваровУслуг?ref=..."
metadata_type: List of metadata object types to filter by.
Example: ["Документ.РеализацияТоваровУслуг", "Справочник.Номенклатура"].
user: List of user names to filter by.
session: List of session numbers to filter by.
application: List of application types to filter by.
Valid values: "ThinClient", "WebClient", "ThickClient",
"BackgroundJob", "Designer", "COMConnection",
"Server", "WebService", "HTTPService", "ODataInterface",
"MobileAppClient", "MobileAppServer", "MobileAppBackgroundJob",
"MobileClient", "MobileStandaloneServer",
"FileVariantBackgroundJob", "FileVariantServerSide",
"WebSocket", "FileVariantWebSocket",
"1CV8C", "1CV8".
computer: Computer name to filter by.
comment_contains: Substring to search in comment (case-insensitive).
transaction_status: Transaction status to filter by.
Valid values: "Committed", "RolledBack", "NotApplicable", "Unfinished".
same_second_offset: Skip N records with the same second as start_date (for pagination).
For pagination: use next_same_second_offset from previous response.
Requires start_date to be specified.
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Array of event log entries in JSON or TOON format (if successful), each containing:
- date: Event timestamp
- level: Importance level (Information, Warning, Error, Note)
- event: Event type
- comment: Event description/comment
- user: User name
- metadata: Metadata object name
- data_presentation: Data presentation string
- session: Session number
- application: Application type
- computer: Computer name
- transaction_status: Transaction status
- count: Number of returned records
- last_date: ISO 8601 date of last record (cursor for pagination, only with date filter)
- next_same_second_offset: Accumulated offset for next page (only with date filter)
- has_more: Boolean indicating if there are more records (only with date filter)
- error: Error message (if failed)
Example:
# Get all errors from the last day
get_event_log(
start_date="2024-01-15T00:00:00",
end_date="2024-01-15T23:59:59",
levels=["Error", "Warning"],
limit=100
)
# Pagination example - page 1
result = get_event_log(
start_date="2024-01-01T00:00:00",
end_date="2024-01-31T23:59:59",
levels=["Error"],
limit=100
)
# Response: last_date="2024-01-15T14:30:45", next_same_second_offset=3, has_more=true
# Pagination example - page 2
result = get_event_log(
start_date="2024-01-15T14:30:45", # last_date from page 1
end_date="2024-01-31T23:59:59",
levels=["Error"],
limit=100,
same_second_offset=3 # next_same_second_offset from page 1
)
# Get entries for specific object using object_description
get_event_log(
object_description={
"_objectRef": True,
"УникальныйИдентификатор": "ba7e5a3d-1234-5678-9abc-def012345678",
"ТипОбъекта": "ДокументСсылка.РеализацияТоваровУслуг"
}
)
# Get entries for specific metadata type and user
get_event_log(
metadata_type=["Документ.РеализацияТоваровУслуг"],
user=["Иванов"],
application=["ThinClient", "WebClient"],
comment_contains="ошибка"
)get_object_by_link tool
Get 1C object data by navigation link.
This tool retrieves complete object data from the 1C:Enterprise database
using a navigation link. The link format is e1cib/data/Type.Name?ref=HexGUID
for standard objects. For external data sources:
- Object tables (single key): e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName?ref=Value
- Non-object tables (composite key): e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName?FieldName=Value
Results are returned as JSON or TOON format.
Args:
ctx: MCP Context (injected automatically)
link: Navigation link. Standard objects: e1cib/data/Type.Name?ref=HexGUID (32 hex chars).
External data sources: e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName
- Object tables: ?ref=Value (e.g., "...Таблица.Заказы?ref=117953")
- Non-object tables: ?FieldName=Value (e.g., "...Таблица.OrderItems?ID=5&Type=A")
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Object data in JSON or TOON format (if successful), containing:
- _type: Full metadata type name
- _presentation: String representation of the object
- Standard attributes (Код, Наименование, Дата, Номер if applicable)
- Custom attributes defined in metadata
- Tabular sections with all rows
- error: Error message (if failed)
Example:
get_object_by_link(
link="e1cib/data/Справочник.Контрагенты?ref=80c6cc1a7e58902811ebcda8cb07c0f5"
)get_link_of_object tool
Generate a 1C navigation link from an object description.
This tool converts an object description (returned by execute_query) into a clickable
navigation link that can be used to open the object directly in 1C.
Use this tool to provide users with clickable links to 1C objects after finding them
with execute_query.
Args:
ctx: MCP Context (injected automatically)
object_description: Object description from execute_query results with fields:
- _objectRef: must be true
- УникальныйИдентификатор: UUID string
- ТипОбъекта: object type (e.g., "СправочникСсылка.Контрагенты")
- Представление: string representation (optional)
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Navigation link string (e.g., "e1cib/data/Справочник.Контрагенты?ref=...")
- error: Error message (if failed)
Example:
# After finding an object with execute_query
result = execute_query("SELECT Ref FROM Catalog.Customers WHERE Code = '001'")
# result.data[0]["Ref"] contains object description
# Generate link
link_result = get_link_of_object(result.data[0]["Ref"])
# link_result.link = "e1cib/data/Справочник.Контрагенты?ref=80c6cc1a..."find_references_to_object tool
Find references to a given object across specified metadata collections.
This tool searches for references to the target object in documents, catalogs,
and registers. It checks all fields whose type can contain a reference to the
target object type, then queries for actual matches.
The search is performed in two stages:
1. Candidate discovery: metadata traversal to find fields that can hold the target type
2. Query execution: actual queries to find objects/records referencing the target
Args:
ctx: MCP Context (injected automatically)
target_object_description: Object description from execute_query results with fields:
- _objectRef: must be true
- УникальныйИдентификатор: UUID string
- ТипОбъекта: object type (e.g., "СправочникСсылка.Контрагенты")
- Представление: string representation (optional)
search_scope: List of search scopes to check. Valid values:
"documents", "catalogs", "information_registers",
"accumulation_registers", "accounting_registers", "calculation_registers".
meta_filter: Optional metadata filter dict with fields:
- names: list of exact metadata object names (e.g., ["Документ.РеализацияТоваровУслуг"])
- name_mask: search mask for name/synonym (case-insensitive)
If names is provided, name_mask is ignored.
limit_hits: Maximum total number of hits (default: 200, max: 10000).
limit_per_meta: Maximum hits per metadata object (default: 20, max: 1000).
timeout_budget_sec: Time budget in seconds for the search (default: 30, min: 5, max: 300).
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Object containing:
- hits: Array of found references, each with:
- found_in_meta: metadata object name (e.g., "Документ.РеализацияТоваровУслуг")
- found_in_object: object_description of the owner (for documents/catalogs) or null (for registers)
- record_key: dimension values (for registers only)
- path: field path (e.g., "Контрагент" or "Товары.Номенклатура")
- match_kind: field type (attribute, tabular_section, dimension, resource, requisite)
- note: human-readable description
- total_hits: number of hits found
- candidates_checked: number of candidate fields checked
- timeout_exceeded: true if time budget was exhausted
- skipped_names: names from meta_filter.names that were skipped
- error: Error message (if failed)
Example:
find_references_to_object(
target_object_description={
"_objectRef": True,
"УникальныйИдентификатор": "ba7e5a3d-1234-5678-9abc-def012345678",
"ТипОбъекта": "СправочникСсылка.Контрагенты",
"Представление": "ООО Рога и Копыта"
},
search_scope=["documents"],
limit_hits=10
)get_access_rights tool
Get role permissions for a metadata object and optionally effective rights for a user.
This tool retrieves information about what rights each role grants for the specified
metadata object. If a user name is provided, it also calculates the effective rights
for that user (sum of all their roles).
IMPORTANT limitations:
- effective_rights is "rights by sum of roles", NOT a guarantee of real access
- RLS (Row Level Security) is NOT taken into account
- Contextual restrictions (by organizations, departments) are NOT taken into account
- This is a check of "what is allowed by roles", not "what the user will actually see"
Runtime requirements:
- Admin rights are required: AccessRight() with 3rd parameter (Role/User) requires admin rights
- Privileged mode is forbidden: if enabled, AccessRight() always returns True, result is meaningless
Args:
ctx: MCP Context (injected automatically)
metadata_object: Full metadata object name (e.g., "Справочник.Контрагенты", "Документ.РеализацияТоваровУслуг")
user_name: Optional user name for effective rights calculation (case-insensitive search)
rights_filter: Optional list of rights to show in result (default: all applicable rights for type)
roles_filter: Optional list of roles to show (default: all roles with rights)
Returns:
Dictionary with:
- success: Boolean indicating if the request was successful
- data: Object containing:
- metadata_object: full metadata object name
- metadata_type: object type (e.g., "Справочник", "Документ", "РегистрСведений")
- applicable_rights: array of applicable rights for this object type
- roles: array of roles with their rights, sorted by name
- total_roles: number of roles in result (after roles_filter)
- roles_with_rights: number of roles that have at least one right (after rights_filter)
- user: (if user_name provided) object with:
- name: user name
- full_name: user's full name (optional, may not be available)
- roles: array of role names assigned to the user
- effective_rights: object with right names as keys and boolean values
- error: Error message (if failed)
Example:
# Get all role permissions for a catalog
get_access_rights(metadata_object="Справочник.Контрагенты")
# Get specific rights for a user
get_access_rights(
metadata_object="Справочник.Контрагенты",
user_name="Иванов",
rights_filter=["Чтение", "Изменение"]
)get_bsl_syntax_help tool
Get syntax reference for 1C BSL language.
Search by keywords to find built-in functions, methods, types and language constructs.
Returns candidates (unique breadcrumb paths) and Markdown content when exactly one breadcrumb matches.
If the single match is a navigation section (no content, has sub-topics), returns its sub-topics as candidates instead.
Candidate paths (e.g. "Массив/Методы/Найти") and Markdown link targets from content (format: [Title](topic:Path)) can be used as keywords for exact lookup — pass the full string including the topic: prefix as-is.
When searching for members of a type, include "Методы", "Свойства", or "Конструкторы" in keywords.
Supports pagination via limit/offset. If has_more is true, call again with offset += limit.
When content is returned, it may be paginated.
If content_has_more is true, call again with content_page + 1 to get the next page.
Args:
keywords: List of search keywords, or a single candidate path / link from content for exact lookup
match: "all" (default) — all keywords must match; "any" — any keyword matches
limit: Maximum number of candidates to return (1–300, default 100)
offset: Number of candidates to skip for pagination (default 0)
content_page: Page number of content to return (1-based, default 1)
Returns:
data.candidates: paged slice of matching breadcrumb paths
data.total: total number of matching candidates (before pagination)
data.offset: the offset used for this response
data.limit: the limit used for this response
data.has_more: true if more candidates exist beyond this page
data.content: Markdown text page (only when total==1 and offset==0), else null
data.content_page: current page of content (only when content is not null)
data.content_total_pages: total number of content pages (only when content is not null)
data.content_has_more: true if more content pages exist (only when content is not null)
Example:
keywords=["Найти"]
keywords=["Найти", "Массив"]
keywords=["Массив/Методы/Найти"]
keywords=["topic:Массив/Методы/Найти"]get_screenshot tool
Captures the main 1C window, including open dropdowns, menus and dialogs.
To capture an already open dropdown, omit form_name.
With form_name or link the capture starts only after the form has had time to render
(~1.5 s wait, activation, ~0.7 s more).
If capture_complete is false, some visible overlays could not be captured.
Args:
form_name: Optional. Full 1C form name (e.g. "Справочник.Контрагенты.Форма.ФормаЭлемента").
If provided, opens the form (or activates it if already open), waits ~1.5 s for it
to render, activates the form, waits ~0.7 s more and only then captures the window.
The form is closed afterwards only if this request opened it; an already open form remains open.
Opening a form dismisses any layer that was open, so omit it when the point of the
screenshot is to see an open list or menu.
If omitted, captures the current 1C main window immediately.
Mutually exclusive with link.
link: Optional. Navigation link of an existing 1C object
(e1cib/data/<Type>.<Name>?ref=<32 hex>), e.g. returned by get_link_of_object.
Finds an already open form of this object or opens it via a single navigation,
then follows the same wait/activate/capture sequence as form_name.
The form is closed afterwards only if this request opened it.
If several forms of the same object are open, returns an ambiguity error.
External data source links are not supported. Mutually exclusive with form_name.
page_name: Optional. Internal name of a form page (tab) element to show before capture
(e.g. "ДополнительныеСведения") — not the visible tab title. Parent page
groups are switched as needed for nested pages. Requires form_name or link.
After capture, pages changed by this request are restored in an already
open form unless the user switched them meanwhile.
scale_percent: Output image scale (10–200, default 100). Values above 100 produce a larger
image with more detail (e.g. 200 = 2× size). Values below 100 produce a smaller
image (e.g. 50 = half size). Grid coordinate labels always show original window
pixel coordinates regardless of scale.
show_grid: If true, draws a grid on the screenshot (up to 10×10, dynamic density based
on image size — small regions get fewer lines or none): red lines, yellow
coordinate labels (px) on black background at each axis, red dots at
intersections. Coordinate origin (0, 0) is at the top-left corner of the
captured image. Grid line coordinates are also returned as text (grid_coords).
region: Optional. Crop to a sub-region before scaling. Provide x, y (≥0), width, height (≥1)
in original client-area pixels. Omit or pass None for full window. Returns an error
if the region extends outside the window bounds.
highlight_rects: Optional. List of rectangles to draw on the screenshot as numbered blue frames (3 px).
Each item: {x, y, width, height} in original client-area pixels, origin (0, 0) at
the top-left corner of the captured image (same coordinate space as grid labels).
Rectangles are labeled 1, 2, 3… in array order. Labels appear
outside above the top-right corner (inside if there is not enough space above).
Rectangles must not overlap — returns an error specifying which ones do.
Omit or pass None to draw no rectangles.
Returns:
Image content (PNG) on success, or error on failure.restart_1c_session tool
Restart the current 1C session — the session that executes 1C tool calls.
A restart is typically required after updating the 1C configuration (metadata, extensions, BSL code)
so the new session picks up the changes. The new session starts automatically with the same database
and connection settings; anonymization state is preserved. The current session shuts down once the new one is ready.
IMPORTANT: Do NOT call this tool on your own initiative. Only invoke it when explicitly instructed —
either by the user directly or as a defined step in a pipeline or task specification.
Never infer that a restart is needed and call it autonomously.close_1c_session tool
Close the current 1C session — the session that executes 1C tool calls — and return a launcher script command to start a new one.
Use when exclusive database access is needed (e.g. updating configuration).
Run the returned command synchronously: exit 0 means the session is ready.
On Windows, run the command in PowerShell (not cmd.exe).
On timeout, check whether a 1C process was started before launching another.
On non-timeout exit 1, read the output: pre-launch errors are safe to retry after fixing the cause;
failed startup errors close the failed new instance automatically.
NOTE: on Linux with password auth, python3 must be available on PATH.
IMPORTANT: Do NOT call this on your own initiative.submit_for_deanonymization tool
Submit the final user-facing response for de-anonymization display.
You MUST call this tool if, and only if, your final response to the user contains
anonymization tokens in the form [CATEGORY-NNNNN], for example [ORG-00001],
[PER-00042], [INN-00001].
Call this tool exactly once, immediately before sending the final response to the user.
Pass the complete final response text in the "text" parameter.
Do NOT call this tool for intermediate reasoning, drafts, or raw tool outputs.
This tool does NOT return de-anonymized text to you.
It only confirms receipt, for example {"received": true}.
After calling this tool, send your original final response with tokens unchanged.
The user will see the de-anonymized version in their interface.(name computed at run time) tool
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 13 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 13 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 13 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 13 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 13 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 14 capabilities; 13 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 14 capabilities; 13 more call code the scanner could not follow, where it may happen
- Tools that call the network13 of 14 capabilities call the network
Where the code is: 14 handlers in 1 file at commit ca14a987fa64
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: requirements.txt: 6 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=1.26.0,<2
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 14 capabilities; 13 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=1.26.0,<2 |
| Servers in the code | 1 (1C MCP Toolkit Proxy) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-01 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | GPL-3.0 |
| Created | 2026-02-11 |
| Topics | 1c mcp |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.