1c-sntx-sem
Семантический поиск по справке 1С
Install / Use
claude mcp add gybson63 -- npx -y github:gybson63/1c-sntx-semIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of 1c-sntx-sem
1c-sntx-sem scores 74/100 on our quality scale, 3708th of 4,588 Development & Engineering skills we index.
Its MCP Server is 7.4 KB long, well organised into 26 sections with 16 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 37 days ago, so 1c-sntx-sem is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 87/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
1c-sntx-sem compared with similar skills
All 4 of these similar skills score higher than 1c-sntx-sem; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| 1c-sntx-sem (this skill)by gybson63 | 74 | 3 | 37d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 95.7k | 3d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.0k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.3k | today | CLAUDE.md |
| ai-job-searchby MadsLorentzen | 100 | 46.0k | 2d ago | CLAUDE.md |
Frequently asked questions
- How do I install 1c-sntx-sem?
- Run
claude mcp add gybson63 -- npx -y github:gybson63/1c-sntx-sem. The install tabs above show the steps for each supported agent. - Which AI agents does 1c-sntx-sem work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is 1c-sntx-sem safe to use?
- It is MIT-licensed and scores 87/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is 1c-sntx-sem still maintained?
- The repository was last updated 37 days ago, so 1c-sntx-sem is actively maintained.
Skill content
View source on GitHubMCP-сервер семантической справки 1С
Семантический поиск по справке платформы 1С (BSL + язык запросов SDBL) с примерами из локальных конфигураций. MCP-сервер для Cursor и Claude Desktop.
База справки не включена в репозиторий — каждый пользователь собирает её локально из своей лицензированной платформы 1С.
Быстрый старт
git clone https://github.com/gybson63/1c-sntx-sem.git
cd 1c-sntx-sem
pip install -e ".[embeddings]" # локальная E5; для OpenAI API достаточно pip install -e .
cp config.yaml.example config.yaml
# отредактируйте config.yaml: local_configs и при необходимости пути
# 1. Извлечь справку и построить векторный индекс (~5–15 мин на CPU)
python -m sntx_sem ingest --platform-path "C:/Program Files/1cv8/8.3.27.xxxx/bin"
# 2. (опционально) API БСП из XML-выгрузки (индекс пересобирается автоматически)
python -m sntx_sem ingest-bsp --bsp-dir ./examples/БСП
# 3. (опционально) Примеры из конфигураций
python -m sntx_sem scan-examples
# 4. Проверка
python -m sntx_sem status # ready: true
python -m sntx_sem search "левое соединение" --domain query
python -m sntx_sem search "вариант отчета" --domain bsp
По умолчанию эмбеддинги считаются локально (E5 через sentence_transformers, ~120 MB при первом запуске).
Команды ingest и ingest-bsp сразу строят индекс; флаг --no-index — только экспорт JSONL.
Ручной пересбор: python -m sntx_sem index --rebuild.
HTTP API и Web-UI
sntx-sem serve
# http://127.0.0.1:8000 — поиск по справке в браузере
Docker
Рекомендуемый режим: API в Docker, тонкий MCP на хосте.
cp config.docker.example.yaml config.yaml
docker compose build && docker compose up -d
# Web-UI: http://localhost:8051/admin
Для Rebuild Index с IVF-индексом LanceDB выделите Docker Desktop 8 ГБ+ RAM. В config.docker.example.yaml по умолчанию search.build_vector_index: false — rebuild проходит на ~4 ГБ, поиск без ANN. Поиск по всем доменам (domain=all) в Web-UI также комфортнее на 8 ГБ+; при нехватке памяти выберите конкретный домен или уменьшите search.dense_top_k / search.bm25_top_k.
MCP (без torch на хосте): mcp.json.docker.example — sntx-sem mcp + SNTX_SEM_API_URL=http://localhost:8051.
Подробнее: docs/DOCKER.md, docs/API.md.
MCP в Cursor
Примеры: examples/cursor-mcp.json — local (in-process) и docker (thin HTTP client).
Local — нужен pip install -e ".[embeddings]" и config.yaml:
{
"mcpServers": {
"1c-syntax-sem": {
"command": "python",
"args": ["-m", "sntx_sem.mcp_server"],
"env": { "SNTX_SEM_CONFIG": "C:/path/to/config.yaml" }
}
}
}
Docker — контейнер с API + sntx-sem mcp на хосте:
{
"mcpServers": {
"1c-syntax-sem": {
"command": "sntx-sem",
"args": ["mcp"],
"env": { "SNTX_SEM_API_URL": "http://localhost:8051" }
}
}
}
Возможности
- Гибридный поиск: embeddings + BM25 + RRF
- Провайдеры эмбеддингов:
sentence_transformers/ E5 (по умолчанию), OpenAI-compatible API, Ollama - HTTP API (
serve) и минимальный Web-UI - Docker: локальная E5 в контейнере, том кэша модели
- Домены:
platform_api,bsl_lang,query_lang,bsp(Библиотека стандартных подсистем) - MCP:
search_help,get_topic,find_examples, … - Примеры из локальных конфигураций (опционально)
- Java exporter для расширенного экспорта BSL (опционально)
- Бенчмарк LLM для выбора модели
Архитектура
- Полный архитектурный аудит и риски:
architect.md - Сжатое техническое описание архитектуры:
docs/ARCHITECTURE.md - План улучшений (roadmap):
docs/IMPROVEMENT_PLAN.md - Журнал архитектурных решений (ADR):
docs/adr/README.md - Sub-agent для архитектурного надзора:
.cursor/agents/architect.md
API БСП (Библиотека стандартных подсистем)
Выгрузите конфигурацию БСП в XML и укажите путь в config.yaml:
bsp:
path: "./examples/БСП"
enabled: true
python -m sntx_sem ingest-bsp
python -m sntx_sem search "СформироватьСообщение" --domain bsp
Индексируются экспортные методы из #Область ПрограммныйИнтерфейс в CommonModules.
ID топика: bsp:ИмяМодуля.ИмяМетода (например bsp:ВариантыОтчетов.ВариантОтчета).
Конфигурация
Все настройки проекта — в config.yaml (не коммитится в git).
python -m sntx_sem status # config: настройки, index: состояние базы
Эмбеддинги
По умолчанию — локальная модель E5 (intfloat/multilingual-e5-base, провайдер sentence_transformers).
Установка: pip install -e ".[embeddings]". Без этого extra работает только OpenAI-compatible API.
embedding:
provider: sentence_transformers
model: intfloat/multilingual-e5-base
device: cpu
# OpenAI-compatible API (Polza.ai, OpenAI, …) — pip install -e .
embedding:
provider: openai_compatible
base_url: "https://polza.ai/api/v1"
api_key: "pza_..." # ключ прямо в config.yaml
model: "text-embedding-3-small"
query_prefix: ""
passage_prefix: ""
# Ollama (localhost)
embedding:
provider: ollama
model: "nomic-embed-text"
Альтернатива api_key: api_key_env: "POLZ…[redacted]" и ключ в env.
После смены провайдера или модели выполните python -m sntx_sem index --rebuild.
python -m sntx_sem status предупредит, если config не совпадает с собранным индексом.
Локальные конфигурации (примеры)
В config.yaml:
local_configs:
- path: "C:/Projects/MyConfig/edt-src"
label: "MyConfig"
python -m sntx_sem scan-examples
python -m sntx_sem scan-examples --link # LLM linking (нужен API key)
Java exporter (опционально)
cd tools/bsl-context-exporter
./gradlew jar
В config.yaml установите java_exporter.enabled: true.
Структура
data/ # локальная база (не в git)
export/all_chunks.jsonl
index/ # LanceDB + build_meta.json
src/sntx_sem/ # Python + MCP
tools/bsl-context-exporter/
hbk/ # HBK из платформы (не в git)
benchmarks/ # LLM ranker
Подробнее: data/README.md
MCP Tools
| Tool | Описание |
|------|----------|
| search_help | Семантический поиск |
| search_bsl_syntax | BSL (shlang) |
| search_query_language | Язык запросов |
| get_topic | Страница + примеры |
| find_examples | Примеры из конфигов |
| list_domains | Статистика индекса |
Авторские права
Этот проект — инструмент для работы с вашей лицензированной платформой 1С:Предприятие.
- HBK-файлы справки и извлечённый текст принадлежат правообладателю (1С).
- Используйте только файлы из вашей установки платформы.
- Не распространяйте содержимое каталога
data/(экспорт, индекс) третьим лицам.
Исходный код инструментов распространяется под лицензией MIT — см. LICENSE.
Тесты
pip install -e ".[dev]"
pytest tests/ -v
Тесты HBK требуют локальный файл hbk/shquery_root.hbk (из установки платформы).
Разработка
pip install -e ".[dev]"
pre-commit install
pre-commit install --hook-type commit-msg
Перед коммитом: ruff check ., ruff format ., mypy src, pytest tests/ -v.
Workflow: feature-ветка → PR → релиз через python scripts/release.py prepare X.Y.Z.
Подробнее: .cursor/rules/development-workflow.mdc.
Related Skills
Agent-Reach
95.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
75.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.3kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
ai-job-search
46.0kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
