Files
kompas-plugin/plugin/adapters/codex/README.md
T

21 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Подключение к Codex
Codex не знает ни маркетплейсов, ни `${CLAUDE_PLUGIN_ROOT}`, поэтому подключение делается по пути
к каталогу плагина.
1. Склонировать `https://git.shahovalov.ru/mikhail/kompas-plugin.git` — сервер лежит внутри,
в `plugin/bin/`, собирать ничего не нужно (требуется .NET Runtime 8+ x64).
2. Вставить `config.snippet.toml` в `~/.codex/config.toml`, заменив `<PLUGIN>` на абсолютный путь
к каталогу `plugin/` клона. Лаунчер `scripts/launch-kompas-mcp.ps1` — тот же, что у плагина
Claude Code.
3. Навыки: скопировать `plugin/skills/{kompas-3d,kompas-fdm-design}` в каталог навыков своего
агента (для Codex это `.agents/skills/`).
Формат сниппета (`[mcp_servers.<имя>]` с ключами `command`/`args`) проверен вживую —
`codex mcp add kompas -- powershell ...` генерирует именно такую секцию (Codex CLI 0.145.0).
Свой собранный сервер подставляется переменной окружения `KOMPAS_MCP_EXE` — она перекрывает
`plugin/bin/kompas-mcp.exe`.
Это сниппет и инструкция, а не дистрибутив: полноценный плагин Codex — отдельная веха.