diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json new file mode 100644 index 0000000..4940ceb --- /dev/null +++ b/.agents/plugins/marketplace.json @@ -0,0 +1,12 @@ +{ + "name": "kompas-plugin", + "plugins": [ + { + "name": "kompas", + "source": { "source": "local", "path": "./plugin" }, + "policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" }, + "category": "Productivity", + "interface": { "displayName": "КОМПАС-3D" } + } + ] +} diff --git a/README.md b/README.md index cca420f..3ae6aaa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# КОМПАС-3D в Claude Code +# КОМПАС-3D в Claude Code и Codex Каталог плагинов с одним плагином — **`kompas`**. Он даёт Claude Code управление [КОМПАС-3D](https://ascon.ru/products/7/) (АСКОН) через MCP-сервер: детали, эскизы, @@ -24,7 +24,7 @@ STEP/STL, осмотр и измерение модели — плюс два н Запускать КОМПАС заранее не нужно: сервер присоединится к открытому окну, а если его нет — запустит экземпляр сам. -## Установка +## Установка в Claude Code ``` /plugin marketplace add https://git.shahovalov.ru/mikhail/kompas-plugin.git @@ -35,7 +35,7 @@ STEP/STL, осмотр и измерение модели — плюс два н `/kompas:doctor` — диагностика: версия сервера, установлен ли КОМПАС, на месте ли interop-сборки, проходит ли соединение. С неё стоит начинать разбор любой неполадки. -## Обновление +## Обновление в Claude Code ``` /plugin marketplace update kompas-plugin @@ -54,9 +54,22 @@ STEP/STL, осмотр и измерение модели — плюс два н | **Команда `/kompas:doctor`** | диагностика установки | | **Справка `help`** | инструмент `help(topic=…)` — статьи по механике и ловушкам, прямо в сессии | +## Установка в Codex + +В терминале зарегистрируйте публичный каталог: + +```powershell +codex plugin marketplace add https://git.shahovalov.ru/mikhail/kompas-plugin.git +``` + +Затем откройте каталог плагинов Codex, выберите источник `kompas-plugin` и установите `kompas`. +Откройте новый чат с плагином: сервер и оба навыка поставляются вместе. Для обновления каталога +используйте `codex plugin marketplace upgrade kompas-plugin`, затем обновите плагин в интерфейсе. +Команда `/kompas:doctor` относится к Claude Code; в Codex проверяйте подключение через `kompas_status`. + ## Другие агентские харнессы -Тот же сервер подключается к Codex и opencode — сниппеты конфигурации лежат в +Тот же сервер можно подключить вручную к Codex и opencode — сниппеты конфигурации лежат в `plugin/adapters/{codex,opencode}/`. ## Лицензия diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index fe9af1b..d77f884 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "kompas", "displayName": "КОМПАС-3D", - "version": "0.7.2", + "version": "0.7.3", "description": "Управление КОМПАС-3D из Claude Code: детали, сборки, чертежи, STEP — через MCP-сервер", "author": { "name": "Shahovalov Mikhail", diff --git a/plugin/adapters/codex/README.md b/plugin/adapters/codex/README.md index 7e93894..db94693 100644 --- a/plugin/adapters/codex/README.md +++ b/plugin/adapters/codex/README.md @@ -1,7 +1,7 @@ # Подключение к Codex -Codex не знает ни маркетплейсов, ни `${CLAUDE_PLUGIN_ROOT}`, поэтому подключение делается по пути -к каталогу плагина. +Плагин можно установить из каталога `kompas-plugin`: см. README публичного репозитория. +Инструкция ниже — альтернативное ручное подключение без плагина. 1. Склонировать `https://git.shahovalov.ru/mikhail/kompas-plugin.git` — сервер лежит внутри, в `plugin/bin/`, собирать ничего не нужно (требуется .NET Runtime 10+ x64). @@ -17,4 +17,4 @@ Codex не знает ни маркетплейсов, ни `${CLAUDE_PLUGIN_ROO Свой собранный сервер подставляется переменной окружения `KOMPAS_MCP_EXE` — она перекрывает `plugin/bin/kompas-mcp.exe`. -Это сниппет и инструкция, а не дистрибутив: полноценный плагин Codex — отдельная веха. +Это сниппет для ручного подключения, а не отдельный дистрибутив. diff --git a/plugin/bin/Kompas.Mcp.Core.dll b/plugin/bin/Kompas.Mcp.Core.dll index db7fa90..fe90592 100644 Binary files a/plugin/bin/Kompas.Mcp.Core.dll and b/plugin/bin/Kompas.Mcp.Core.dll differ diff --git a/plugin/bin/Kompas.Mcp.Core.pdb b/plugin/bin/Kompas.Mcp.Core.pdb index 5049571..7f9f038 100644 Binary files a/plugin/bin/Kompas.Mcp.Core.pdb and b/plugin/bin/Kompas.Mcp.Core.pdb differ diff --git a/plugin/bin/kompas-mcp.deps.json b/plugin/bin/kompas-mcp.deps.json index e7ce424..6c31bf4 100644 --- a/plugin/bin/kompas-mcp.deps.json +++ b/plugin/bin/kompas-mcp.deps.json @@ -7,9 +7,9 @@ "targets": { ".NETCoreApp,Version=v10.0": {}, ".NETCoreApp,Version=v10.0/win-x64": { - "kompas-mcp/0.7.2": { + "kompas-mcp/0.7.3": { "dependencies": { - "Kompas.Mcp.Core": "0.7.2", + "Kompas.Mcp.Core": "0.7.3", "Microsoft.Extensions.Hosting": "10.0.14", "ModelContextProtocol": "2.3.0" }, @@ -433,21 +433,21 @@ } } }, - "Kompas.Mcp.Core/0.7.2": { + "Kompas.Mcp.Core/0.7.3": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "10.0.14" }, "runtime": { "Kompas.Mcp.Core.dll": { - "assemblyVersion": "0.7.2.0", - "fileVersion": "0.7.2.0" + "assemblyVersion": "0.7.3.0", + "fileVersion": "0.7.3.0" } } } } }, "libraries": { - "kompas-mcp/0.7.2": { + "kompas-mcp/0.7.3": { "type": "project", "serviceable": false, "sha512": "" @@ -676,7 +676,7 @@ "path": "system.diagnostics.eventlog/10.0.14", "hashPath": "system.diagnostics.eventlog.10.0.14.nupkg.sha512" }, - "Kompas.Mcp.Core/0.7.2": { + "Kompas.Mcp.Core/0.7.3": { "type": "project", "serviceable": false, "sha512": "" diff --git a/plugin/bin/kompas-mcp.dll b/plugin/bin/kompas-mcp.dll index d1f630d..38ab265 100644 Binary files a/plugin/bin/kompas-mcp.dll and b/plugin/bin/kompas-mcp.dll differ diff --git a/plugin/bin/kompas-mcp.exe b/plugin/bin/kompas-mcp.exe index 3a50b77..7b83f78 100755 Binary files a/plugin/bin/kompas-mcp.exe and b/plugin/bin/kompas-mcp.exe differ diff --git a/plugin/bin/kompas-mcp.pdb b/plugin/bin/kompas-mcp.pdb index dc86981..9712849 100644 Binary files a/plugin/bin/kompas-mcp.pdb and b/plugin/bin/kompas-mcp.pdb differ diff --git a/plugin/mcp.json b/plugin/mcp.json new file mode 100644 index 0000000..d46719b --- /dev/null +++ b/plugin/mcp.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", + "mcpServers": { + "kompas": { + "type": "stdio", + "command": "powershell", + "args": ["-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-File", "${PLUGIN_ROOT}/scripts/launch-kompas-mcp.ps1"] + } + } +} diff --git a/plugin/plugin.json b/plugin/plugin.json new file mode 100644 index 0000000..e1349de --- /dev/null +++ b/plugin/plugin.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", + "name": "kompas", + "version": "0.7.3", + "description": "Управление КОМПАС-3D через MCP: детали, сборки, чертежи и STEP.", + "author": { + "name": "Shahovalov Mikhail" + }, + "extensions": { + "com.openai": { + "requires_local_executor": true, + "interface": { + "displayName": "КОМПАС-3D", + "shortDescription": "Управление КОМПАС-3D", + "longDescription": "Создание и редактирование моделей и чертежей КОМПАС-3D через локальный MCP-сервер.", + "developerName": "Shahovalov Mikhail", + "category": "Productivity" + } + } + } +} diff --git a/release.json b/release.json index e14927e..62c6ca5 100644 --- a/release.json +++ b/release.json @@ -1,6 +1,6 @@ { - "version": "0.7.2", - "tag": "v0.7.2", - "sourceSha": "35dedb58ec6baf150e020a5c7295137bf5600028", - "built": "2026-10-27T22:29:49Z" + "version": "0.7.3", + "tag": "v0.7.3", + "sourceSha": "a97aed3a4a3be2c4a97ac53122f0694a23ae6194", + "built": "2026-11-03T16:25:52Z" }