MCP YaXUnit Runner logo

MCP YaXUnit Runner

Community
alkoleft

MCP‑сервер для сборки (обновления базы) и запуска тестов YaXUnit в проектах 1С:Предприятие из AI‑ассистентов (Claude, GPT, VS Code и др.).

Publisheralkoleft
Repositorymcp-onec-test-runner
LanguageKotlin
Forks
22
Stars
118
Available tools
0
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    MCP YaXUnit Runner exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    118 stars and 22 forks from the linked repository.

METR - MCP 1C:Enterprise Test Runner

Release Downloads License: GPL v3 Issues PRs Last commit Stars

Top language JDK Gradle 1C:Enterprise 1C:EDT

Инструмент, который позволяет запускать тесты YaXUnit и собирать проекты 1С прямо из AI‑ассистентов (Claude, GPT, Cursor, VS Code и др.) с помощью протокола MCP (Model Context Protocol).

Описание

MCP 1C:Enterprise Test Runner — это MCP‑сервер, который подключается к вашему проекту 1С:Предприятие и предоставляет ассистенту команды для сборки (обновления базы) и запуска тестов YaXUnit.

Быстрый старт

  1. Проверьте технические требования
  2. Скачайте jar файл со страницы последнего релиза
  3. Подготовьте конфигурацию приложения.
  4. Подключите MCP‑сервер

Основные возможности

Самое важное, что умеет METR:

ВозможностьЧто дает
🔨 Сборка проекта 1САвтоматизированная сборка без ручных шагов
🚀 Запуск всех тестов и отдельных модулейПолная проверка качества или быстрые точечные проверки
🛠️ Запуск конфигуратора и предприятияУправление окружением из ассистента
✅ Синтаксическая проверкаКонтроль качества через Конфигуратор и 1C:EDT
⚡ Быстрая конвертация EDTУскорение за счет автозапуска EDT CLI в интерактивном режиме

👉 Полное описание возможностей.

Примечание: при формате проекта EDT и включённом автозапуске (app.tools.edt-cli.auto-start: true) EDT CLI поднимается заранее в интерактивном режиме. Это сокращает время на инициализацию и ускоряет шаг «Конвертация из EDT».

Технические требования

  • JDK 17+
  • Платформа 1С:Предприятие 8.3.10+
  • YaXUnit фреймворк
  • 1С:Enterprise Development Tools 2025.1+ (для формата EDT; см. Issue #1758)

Запуск MCP-сервера

bash
java -jar mcp-yaxunit-runner.jar

Настройка MCP

Предварительные требования

  1. Соберите проект и создайте JAR файл
  2. Убедитесь, что JAR файл доступен для запуска
  3. Создайте файл конфигурации для вашего проекта

Создание файла конфигурации

Перед настройкой MCP сервера создайте файл конфигурации для вашего проекта. Файл src/main/resources/application-yaxunit.yml является примером — скопируйте его и настройте под свои нужды.

Полный пошаговый гид по настройке: Application Configuration.

Основные параметры для настройки:

  • app.base-path - базовый путь к вашему проекту
  • app.source-set - описание модулей проекта (пути, типы, назначение)
  • app.connection.connection-string - строка подключения к информационной базе
  • app.format - формат проекта (DESIGNER | EDT)
  • app.platform-version - версия платформы 1С (опционально)
  • app.tools.builder - тип сборщика (DESIGNER | IBCMD)
  • app.tools.edt-cli - опции EDT CLI (опционально, при app.format: EDT)
Схема настроек (кратко)
yaml
app:
  id: string?                    # опционально
  format: DESIGNER|EDT           # по умолчанию DESIGNER
  base-path: string              # абсолютный путь
  source-set:                    # >=1 элемент с type: CONFIGURATION
    - path: string               # относительный путь от base-path
      name: string               # уникальное имя
      type: CONFIGURATION|EXTENSION
      purpose: [ MAIN | TESTS | YAXUNIT ]
  connection:
    connection-string: string    # обязателен
    user: string?                # опционально
    password: string?            # опционально
  tools:
    builder: DESIGNER|IBCMD     # обязателен
    edt-cli:                     # опционально; требуется 1C:EDT >= 2025.1
      auto-start: boolean        # default: false
      version: string            # default: "latest"
      interactive-mode: boolean  # default: true
      working-directory: string? # EDT workspace
      startup-timeout-ms: number # default: 30000
      command-timeout-ms: number # default: 300000
      ready-check-timeout-ms: number # default: 5000
  platform-version: string?      # формат x[.x]+, напр. 8.3.22.1709

Настройка исходников

Для корректной работы с тестами YaXUnit обязательно настройте в source-set:

yaml
source-set:
  # Основная конфигурация (обязательно)
  - path: "configuration"
    name: your-config-name
    type: "CONFIGURATION"
    purpose: [ "MAIN" ]
  
  # Модуль с тестами
  - path: "tests"
    name: tests
    type: "EXTENSION"
    purpose: [ "TESTS", "YAXUNIT" ]

Пример структуры

yaml
app:
  id: your-project-name
  base-path: "/path/to/your/project/"
  source-set:
    - path: "configuration"
      name: your-config
      type: "CONFIGURATION"
      purpose: ["MAIN"]
  connection:
    connection-string: "File='/path/to/your/infobase/';"
  platform-version: "8.3.24.1234"
  tools:
    builder: DESIGNER

Настройка MCP сервера

Подробная инструкция по настройке MCP сервера для различных IDE и AI-ассистентов: Настройка IDE (IDE Setup)

Включает:

  • Настройку для Claude Desktop
  • Настройку для VS Code
  • Поддержку других MCP-совместимых клиентов (Cursor, Continue, Cody)
  • Проверку настройки и устранение неполадок
  • Переменные окружения
  • Примеры использования

Доступные MCP-инструменты

  • run_all_tests - запуск всех тестов
  • run_module_tests - запуск тестов модуля
  • build_project - сборка проекта
  • dump_config - выгрузка конфигурации (FULL/INCREMENTAL/PARTIAL)
  • launch_app - запуск приложений 1С (конфигуратор, тонкий/толстый клиент)
  • list_modules - получение списка модулей
  • get_configuration - получение конфигурации
  • check_platform - проверка платформы
  • check_syntax_edt - проверка исходников через 1C:EDT (validate)
  • check_syntax_designer_config - выполнение CheckConfig в конфигураторе 1С
  • check_syntax_designer_modules - выполнение CheckModules в конфигураторе 1С

Дорожная карта разработки 🚀

  • 🔄 Поддержка EDT + умная конвертация

    • Интеграция с EDT (Enterprise Development Tools)
    • Умная конвертация модулей - при изменении модуля автоматическое копирование и обновление
    • Автоматическое определение изменений в исходном коде
  • 🖥️ Поддержка IBCMD

    • Интеграция с IBCMD для автоматизации сборки
  • 🌐 Запуск тестов через WebSocket

    • Быстрое выполнение тестов
  • 📦 Выгрузка конфигурации

    • FULL - полная выгрузка
    • INCREMENTAL - инкрементальная выгрузка
    • PARTIAL - частичная выгрузка

Разработка

Подготовка к разработке

  1. Создайте форк репозитория на GitHub

  2. Клонируйте репозиторий:

    bash
    git clone https://github.com/YOUR_USERNAME/mcp-onec-test-runner.git
    cd mcp-onec-test-runner
  3. Добавьте upstream репозиторий:

    bash
    git remote add upstream https://github.com/alkoleft/mcp-onec-test-runner.git

Сборка проекта

bash
./gradlew build

Создание исполняемого JAR

bash
./gradlew bootJar

Запуск тестов

bash
./gradlew test

Анализ покрытия кода

bash
./gradlew jacocoTestReport

Проверка стиля кода

bash
./gradlew ktlintCheck

Документация

  • Основные возможности — подробное описание всех возможностей METR
  • Application Configuration — подробный пошаговый гид по настройке application.yml
  • IDE Setup — подробная инструкция по настройке MCP сервера в различных IDE и AI-ассистентах
  • Changelog — история изменений проекта

Лицензия

GPL-3.0 License

Installation

TypingMind
{
  "mcpServers": {
    "mcp-onec-test-runner": {
      "command": "java",
      "args": [
        "-jar",
        "path/to/your/mcp-yaxunit-runner.jar",
        "mcp"
      ]
    }
  }
}

Use MCP YaXUnit Runner MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP YaXUnit Runner is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MCP YaXUnit Runner as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MCP YaXUnit Runner MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-onec-test-runner": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP YaXUnit Runner MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MCP YaXUnit Runner MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP YaXUnit Runner to help me with this task?
MCP YaXUnit Runner
Sure. I read it.
Here is what I found using MCP YaXUnit Runner.

Frequently asked questions

What is the MCP YaXUnit Runner MCP server used for?

MCP YaXUnit Runner is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP YaXUnit Runner MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP YaXUnit Runner with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP YaXUnit Runner MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP YaXUnit Runner connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP YaXUnit Runner MCP to TypingMind?

MCP YaXUnit Runner runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MCP YaXUnit Runner MCP provide in TypingMind?

MCP YaXUnit Runner exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP YaXUnit Runner MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP YaXUnit Runner requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇