1c Syntax Helper MCP logo

1c Syntax Helper MCP

Community
Antonio1C

MCP сервер для поиска по синтаксису 1С

PublisherAntonio1C
Repository1c-syntax-helper-mcp
LanguagePython
Forks
28
Stars
75
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    1c Syntax Helper MCP 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

    75 stars and 28 forks from the linked repository.

1C Syntax Helper MCP Server

MCP-сервер для быстрого поиска по синтаксису 1С, предоставляющий ИИ-агентам в VS Code доступ к общей документации платформы 1С:Предприятие через централизованный сервис.

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

🚀 Быстрый старт (локальная разработка)

Системные требования

  • Windows 10/11 64-bit или Linux
  • Docker Desktop
  • 7-Zip для локального запуска Python-приложения вне Docker (в Docker-образе он уже установлен)
  • 4+ ГБ RAM
  • VS Code (опционально)

Развертывание для локального тестирования

powershell
# 1. Клонировать проект
git clone https://github.com/Antonio1C/1c-syntax-helper-mcp.git
cd 1c-syntax-helper-mcp

# 2. Скопировать shcntx_ru.hbk из установленной справки 1С
Copy-Item "C:\path\to\shcntx_ru.hbk" ".\data\hbk\shcntx_ru.hbk"

# 3. Запустить контейнеры
docker compose up -d

# 4. Проверить доступность
Invoke-RestMethod -Uri "http://localhost:8000/health"

Файл shcntx_ru.hbk не входит в репозиторий. Для Linux используйте cp /path/to/shcntx_ru.hbk data/hbk/shcntx_ru.hbk.

Для развертывания на сервер

📖 Полная инструкция: DEPLOYMENT_GUIDE.md

Краткий алгоритм:

  1. Для Windows 10/11 (AMD64) и Linux Server (AMD64)
    powershell
    docker build -t help1c-mcp:amd64 .
    docker save help1c-mcp:amd64 -o help1c-mcp-amd64.tar

Для Windows 10/11 используйте Docker Desktop с Linux containers.

На целевой машине загрузите архив через docker load.


2. **Для Linux Server (ARM64)**
```powershell
docker buildx build --platform linux/arm64 -t help1c-mcp:arm64 -o type=docker .
docker save help1c-mcp:arm64 -o help1c-mcp-arm64.tar
# Скопировать .tar файл на сервер и загрузить через docker load

Настройка VS Code для подключения к серверу

Создайте файл .vscode/mcp.json в проекте и добавьте HTTP-конфигурацию:

json
{
  "servers": {
    "mcp-helper1c-http": {
      "url": "http://SERVER_IP:8000/mcp",
      "type": "http"
    }
  },
  "inputs": []
}

Замените SERVER_IP на IP-адрес сервера (например, 192.168.1.100). Для локального тестирования укажите localhost.

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

  • Поиск глобальных функций: СтрДлина, ЧислоПрописью
  • Поиск методов объектов: ТаблицаЗначений.Добавить
  • Поиск свойств: ТаблицаЗначений.Колонки
  • Информация об объектах: получение всех методов/свойств/событий
  • Фоновая индексация: автоматическая индексация при первом запуске
  • Принудительная переиндексация: через параметр --reindex или API
  • Поддержка нескольких архитектур: AMD64 (Windows/Linux) и ARM64 (Raspberry Pi, Apple Silicon)

🔄 Переиндексация

Быстрый запуск с переиндексацией

powershell
# Windows (bat)
start_mcp_server.bat --reindex

# Windows (PowerShell)
.\start_mcp_server.ps1 --reindex

# Или через переменную окружения в .env
REINDEX_ON_STARTUP=true

Подробнее: REINDEX_GUIDE.md

🛠️ Разработка

Требования

  • Docker Engine 20.0+
  • Docker Compose 2.0+
  • Python 3.14+ (для разработки)

Локальная разработка

powershell
# Windows PowerShell
python -m venv .venv
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt

# Запустить в режиме разработки
python -m uvicorn src.main:app --reload --host 0.0.0.0 --port 8000

Для Linux используйте отдельный набор команд:

bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m uvicorn src.main:app --reload --host 0.0.0.0 --port 8000

Тестирование

powershell
# Запустить тесты
python -m pytest tests/ -v

# Проверить покрытие
python -m pytest tests/ --cov=src --cov-report=html

🔄 Обновление документации

Документация обновляется при необходимости:

powershell
# 1. Остановить сервисы
docker compose down

# 2. Заменить HBK-файл (сохраните обязательное имя)
Copy-Item "C:\path\to\shcntx_ru.hbk" "data\hbk\shcntx_ru.hbk"

# 3. Запустить и переиндексировать
docker compose up -d
Invoke-RestMethod -Uri "http://localhost:8000/index/rebuild" -Method Post

Подробнее: DEPLOYMENT_GUIDE.md

📋 MCP Protocol

Сервер реализует Model Context Protocol 2025-06-18 со следующими tools:

  • find_1c_help - поиск справки по элементам 1С
  • get_syntax_info - полная информация об элементе и его синтаксисе
  • get_quick_reference - краткая справка об элементе
  • search_by_context - поиск с фильтром по контексту
  • list_object_members - список элементов объекта

⚡ Performance

  • Время отклика поиска: < 500ms
  • Поддержка 8 одновременных пользователей
  • Размер индекса: ~32MB (80% от 40MB .hbk файла)
  • Потребление памяти: ~2GB (1GB ES + 1GB MCP сервер)

🐛 Поддержка

При возникновении проблем:

  1. Проверить логи: docker compose logs mcp-server
  2. Проверить статус Elasticsearch: Invoke-RestMethod -Uri "http://localhost:9200/_cluster/health"
  3. Проверить статус индексации: Invoke-RestMethod -Uri "http://localhost:8000/index/status"

Подробнее: DEPLOYMENT_GUIDE.md

📄 Лицензия

MIT License


Разработано для работы с документацией 1С:Предприятие 8.3.24+

Use 1c Syntax Helper MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 1c Syntax Helper MCP 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 1c Syntax Helper MCP 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 1c Syntax Helper MCP 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": {
    "1c-syntax-helper-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 1c Syntax Helper MCP 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 1c Syntax Helper MCP 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 1c Syntax Helper MCP to help me with this task?
1c Syntax Helper MCP
Sure. I read it.
Here is what I found using 1c Syntax Helper MCP.

Frequently asked questions

What is the 1c Syntax Helper MCP MCP server used for?

1c Syntax Helper MCP 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 1c Syntax Helper MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 1c Syntax Helper MCP 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 1c Syntax Helper MCP 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 1c Syntax Helper MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 1c Syntax Helper MCP MCP to TypingMind?

1c Syntax Helper MCP 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 1c Syntax Helper MCP MCP provide in TypingMind?

1c Syntax Helper MCP 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 1c Syntax Helper MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 1c Syntax Helper MCP 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 👇