MCP сервер для AI-ассистентов logo

MCP сервер для AI-ассистентов

Community
alkoleft

MCP сервер для AI-ассистентов (справка по синтаксису и объектной модели 1С:Предприятие)

Publisheralkoleft
Repositorymcp-bsl-platform-context
LanguageKotlin
Forks
35
Stars
194
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    MCP сервер для AI-ассистентов 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

    194 stars and 35 forks from the linked repository.

MCP сервер для AI-ассистентов (справка по синтаксису и объектной модели 1С:Предприятие)

MCP (Model Context Protocol) сервер — это инструмент для интеграции с AI-ассистентами (например, Claude Desktop, Cursor IDE), предоставляющий быстрый и стандартизированный доступ к справочной информации по встроенным функциям, типам данных, методам и свойствам платформы 1С:Предприятие. MCP сервер позволяет AI-ассистентам работать с "Синтаксис-помощником" 1С в интерактивном режиме.

Обзор

Приложение mcp-bsl-context предназначено исключительно для интеграции с AI-ассистентами, чтобы они могли выполнять поиск по справке платформы 1С:Предприятие и получать детальную информацию о встроенных функциях, типах, методах и свойствах (аналогично работе с "Синтаксис-помощником" или официальной документацией 1С).

🤖 Возможности MCP сервера

  • Поиск по справке платформы 1С — нечеткий поиск по встроенным функциям, методам, свойствам и типам данных
  • Детальная справка — получение подробной информации о функциях, методах, свойствах и типах, включая сигнатуры и описания
  • Навигация по объектной модели — просмотр методов и свойств конкретных типов данных
  • Информация о конструкторах — способы создания объектов платформы 1С
  • Интеграция с AI — стандартизированный протокол MCP для взаимодействия с AI-ассистентами
  • Два режима работы — STDIO для локальной разработки и SSE для сетевого доступа

Проект использует Spring Boot и Spring AI для создания MCP сервера на базе Kotlin.

Режимы работы

STDIO режим (по умолчанию)

  • Назначение — локальная интеграция с MCP клиентами
  • Транспорт — стандартный ввод/вывод (stdin/stdout)
  • Применение — Claude Desktop, Cursor IDE, VS Code
  • Преимущества — простота настройки, низкие накладные расходы

SSE режим (Server-Sent Events)

  • Назначение — сетевая интеграция и веб-интерфейс
  • Транспорт — HTTP с Server-Sent Events
  • Применение — веб-клиенты, удаленные подключения, REST API
  • Преимущества — сетевой доступ, встроенный веб-интерфейс, real-time коммуникация

Требования

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

  • Java: версия 17 или выше
  • Операционная система: Linux, macOS, Windows
  • Память: минимум 512 МБ RAM для работы приложения
  • Место на диске: 100 МБ для установки приложения

Для MCP сервера

  • Платформа 1С Предприятие: версия 8.3.20 или выше (рекомендуется)
  • MCP клиент: Claude Desktop, Cursor IDE или другой совместимый MCP клиент
  • Сетевое подключение: для загрузки зависимостей при первом запуске

Зависимости времени выполнения

Все необходимые зависимости включены в исполняемый JAR-файл:

  • Spring Boot 3.5.0
  • Spring AI 1.0.0
  • Jackson 2.15.2
  • Kotlin Coroutines

Сборка

Проект собирается с помощью Gradle. Для сборки выполните следующую команду в корневой директории проекта:

bash
./gradlew build

После успешной сборки исполняемый JAR-файл будет находиться в директории build/libs/.

Использование

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

Linux

bash
java -jar mcp-bsl-context-<версия>.jar [опции]

Windows

bash
java -Dfile.encoding=UTF-8 -jar mcp-bsl-context-<версия>.jar [опции]

Опции:

  • --platform-path, -p - путь к каталогу установки 1С Предприятия
  • --help, -h - показать справку по использованию
  • --verbose - включить отладочное логирование
  • --mode, -m - режим работы: sse (HTTP Server-Sent Events) или stdio (стандартный ввод/вывод) (по умолчанию stdio)
  • --port - порт для SSE сервера (по умолчанию 8080)

Примеры:

bash
# STDIO режим (по умолчанию)
java -jar mcp-bsl-context-0.3.0.jar --platform-path "/opt/1cv8/x86_64/8.3.25.1257"

# SSE режим (HTTP Server-Sent Events)
java -jar mcp-bsl-context-0.3.0.jar --mode sse --platform-path "/opt/1cv8/x86_64/8.3.25.1257"

# SSE режим с кастомным портом
java -jar mcp-bsl-context-0.3.0.jar --mode sse --port 9000 --platform-path "/opt/1cv8/x86_64/8.3.25.1257"

# Сокращенная форма
java -jar mcp-bsl-context-0.3.0.jar -m stdio -p "/opt/1cv8/x86_64/8.3.25.1257"

# Показать справку
java -jar mcp-bsl-context-0.3.0.jar --help

Примеры запуска в Windows:

cmd
# STDIO режим (по умолчанию)
java -Dfile.encoding=UTF-8 -jar mcp-bsl-context-0.3.0.jar --platform-path "C:\Program Files\1cv8\8.3.27.1606"

Возможности MCP сервера

Инструменты (Tools) доступные через MCP:

  • search - поиск по API платформы 1С Предприятие
  • info - получение детальной информации об элементе API
  • getMember - получение информации о методе или свойстве конкретного типа
  • getMembers - получение полного списка всех методов и свойств для указанного типа
  • getConstructors - получение списка конструкторов для указанного типа

Подробная документация по использованию MCP сервера доступна в MCP_SERVER_USAGE.md.

Интеграция с AI клиентами

STDIO режим (по умолчанию)

Для локального использования с AI клиентами через stdin/stdout.

Claude Desktop - добавьте конфигурацию в claude_desktop_config.json:

json
{
  "mcpServers": {
    "1c-platform": {
      "command": "java",
      "args": [
        "-jar", 
        "/path/to/mcp-bsl-context.jar", 
        "--platform-path", 
        "/opt/1cv8/x86_64/8.3.25.1257"
      ]
    }
  }
}

Пример настройки для работы в Windows

json
  "mcpServers": {
    "1c-platform": {
      "type": "stdio",
      "command": "java",
      "args": [
        "-Dfile.encoding=UTF-8",
        "-jar",
        "C:\\your_path\\mcp-bsl-context-0.3.0.jar",
        "--platform-path",
        "C:\\Program Files\\1cv8\\8.3.27.1606"
      ],
      "env": {
        "LOG_FILE": "C:\\cmd\\mcp-server.log"
      }
    }
}

Cursor IDE - создайте файл .cursor/mcp.json в корне проекта:

json
{
  "mcpServers": {
    "1c-platform": {
      "command": "java",
      "args": [
        "-jar", 
        "/path/to/mcp-bsl-context.jar", 
        "--platform-path", 
        "/opt/1cv8/x86_64/8.3.25.1257"
      ]
    }
  }
}

Пример настройки для работы в Windows

json
  "mcpServers": {
    "1c-platform": {
      "type": "stdio",
      "command": "java",
      "args": [
        "-Dfile.encoding=UTF-8",
        "-jar",
        "C:\\your_path\\mcp-bsl-context-0.3.0.jar",
        "--platform-path",
        "C:\\Program Files\\1cv8\\8.3.27.1606"
      ],
      "env": {
        "LOG_FILE": "C:\\cmd\\mcp-server.log"
      }
    }
}

SSE режим (HTTP Server-Sent Events)

Для сетевого доступа и веб-интерфейса.

Запуск сервера:

bash
java -jar mcp-bsl-context.jar --mode sse --platform-path "/opt/1cv8/x86_64/8.3.25.1257"

Доступные эндпоинты:

  • http://localhost:8080/sse - SSE соединение

Подключение через URL:

json
{
  "mcpServers": {
    "1c-platform-sse": {
      "url": "http://localhost:8080/mcp/sse"
    }
  }
}

Пример HTTP запроса:

bash
curl -X POST http://localhost:8080/mcp/request \
  -H "Content-Type: application/json" \
  -d '{
    "id": "req-1",
    "method": "search",
    "params": {
      "query": "СтрНайти",
      "type": "method",
      "limit": 5
    }
  }'

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

Алгоритм поиска

Поиск выполняется по принципу нечеткого соответствия с ранжированием:

  1. Точное совпадение (100 баллов) - имя полностью совпадает с запросом
  2. Префиксное совпадение (80 баллов) - имя начинается с запроса
  3. Частичное совпадение (60 баллов) - имя содержит запрос
  4. Совпадение в сигнатуре (40 баллов) - запрос найден в сигнатуре
  5. Совпадение в описании (20 баллов) - запрос найден в описании
  6. Fuzzy matching (0-50 баллов) - на основе расстояния Левенштейна

Зависимости

Основные зависимости проекта:

  • Spring Boot 3.5.0
  • Spring AI MCP Server
  • Kotlin с Coroutines
  • Jackson (для работы с JSON)
  • Logback для логирования

Использованные идеи

Алгоритм чтения справки базируется на идеях bsl-context (от 1c-syntax).

Лицензия

Этот проект распространяется под лицензией MIT. Подробную информацию смотрите в файле LICENSE.

Installation

TypingMind
{
  "mcpServers": {
    "mcp-bsl-platform-context": {
      "command": "java",
      "args": [
        "-jar",
        "build/libs/mcp-bsl-context-<version>.jar",
        "--platform-path",
        "{{config.PLATFORM_PATH}}"
      ],
      "env": {
        "PLATFORM_PATH": "<PLATFORM_PATH>"
      }
    }
  }
}

Use MCP сервер для AI-ассистентов MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP сервер для AI-ассистентов is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: 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 сервер для AI-ассистентов 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 сервер для AI-ассистентов 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-bsl-platform-context": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP сервер для AI-ассистентов 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 сервер для AI-ассистентов 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 сервер для AI-ассистентов to help me with this task?
MCP сервер для AI-ассистентов
Sure. I read it.
Here is what I found using MCP сервер для AI-ассистентов.

Option 2: Add an MCP server URL

Use this when MCP сервер для AI-ассистентов is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for MCP сервер для AI-ассистентов.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the MCP сервер для AI-ассистентов connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the MCP сервер для AI-ассистентов tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the MCP сервер для AI-ассистентов tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP сервер для AI-ассистентов to help me with this task?
MCP сервер для AI-ассистентов
Sure. I read it.
Here is what I found using MCP сервер для AI-ассистентов.

Frequently asked questions

What is the MCP сервер для AI-ассистентов MCP server used for?

MCP сервер для AI-ассистентов 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 сервер для AI-ассистентов MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP сервер для AI-ассистентов 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 сервер для AI-ассистентов 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 сервер для AI-ассистентов connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP сервер для AI-ассистентов MCP to TypingMind?

MCP сервер для AI-ассистентов can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does MCP сервер для AI-ассистентов MCP provide in TypingMind?

MCP сервер для AI-ассистентов 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 сервер для AI-ассистентов MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP сервер для AI-ассистентов 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 👇