Skip to main content
Glama
mcp-1c-local-bridge

mcp-1c-local-bridge

by ntappw

test_connect

Connects the bridge to a 1C testing client and launches it when needed, enabling automated testing of managed forms through snapshot, step, and close operations.

Instructions

Подключает мост к клиенту тестирования 1С и при необходимости запускает его. Дальше окна этого клиента читает test_snapshot, действия в нём выполняет test_steps, закрывает его test_close.

Нужен механизм автоматизированного тестирования платформы: сеанс 1С с формой моста запущен менеджером
тестирования (ключ /TESTMANAGER), на форме включён «Код на клиенте». Клиент тестирования - отдельный сеанс
той же базы: он занимает лицензию и виден в списке активных пользователей. Механизм работает с управляемыми
формами; обычные формы он не видит. Пока клиент запускается, окно 1С пользователя отвечает.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "test_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoКомпьютер клиента тестирования; запуск возможен только на этом же.localhost
portNoПорт клиента тестирования (ключ -TPort).
launchNotrue - если клиент тестирования на этом порту не отвечает, запустить его: второй сеанс той же базы под тем же пользователем. false - только подключиться к уже запущенному.
sessionNoСеанс моста: идентификатор из sessions или часть строки соединения, имени конфигурации, пользователя. Не указан - единственный открытый сеанс.
timeoutNoСколько секунд ждать запуск и подключение.
launch_argsNoДополнительные ключи запуска клиента тестирования, например /C"параметр".

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden well: it discloses that the testing client is a separate session of the same base, that it consumes a license and appears in the active-user list, that launch is only possible on the same host, and that the user's 1C window is affected while the client starts. It does not describe failure behavior when the port does not answer or what happens on repeated invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and the follow-on workflow in the first paragraph, then prerequisites and side effects in the second. Every sentence supplies distinct information (manager key, client-code flag, license consumption, managed-forms limitation); nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool that spawns a second 1C session, the description supplies the setup prerequisites, the licensing and visibility side effects, and the surrounding workflow. Return values are covered by an output schema, so nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each of the six parameters already carries a precise description (including the -TPort key, launch semantics, and the launch_args example), so the schema does the heavy lifting. The prose adds only indirect context (same-host launch requirement) rather than new meaning about individual parameters, which is the baseline 3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: connects the bridge to the 1C testing client and launches it if needed. It then explicitly separates the downstream steps into test_snapshot (reads windows), test_steps (performs actions) and test_close (closes), so an agent can tell this tool apart from those siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition for use: an automated platform-testing setup where the 1C session runs with /TESTMANAGER and 'Code on client' enabled on the bridge form. It also states an exclusion ('works with managed forms; it does not see ordinary forms') and routes follow-up work to three named siblings, but it never states what to do when a connection already exists versus calling with launch=false.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.