@consilium108/mcp-module-devops 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/LICENSE +289 -0
- package/README.md +27 -2
- package/i18n/en.json +3 -0
- package/i18n/ru.json +3 -0
- package/i18n/th.json +3 -0
- package/i18n/zh.json +3 -0
- package/package.json +41 -4
- package/src/groups/debug.js +44 -0
- package/src/groups/deploy.js +54 -0
- package/src/index.js +34 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0 (unreleased)
|
|
4
|
+
|
|
5
|
+
<!-- generated by Claude (Opus 5.5), 2026-11-20; Konsilium #442, SDD flows/sdd-consilium-mcp-modules -->
|
|
6
|
+
|
|
7
|
+
- First release: the DevOps module moved out of `@consilium108/mcp` 0.6.x (groups `debug`, `deploy`,
|
|
8
|
+
code moved verbatim; catalog texts in `i18n/*.json`, en, ru, th, zh). Tools: `get_debug_report`, `list_debug_reports`, `attach_debug_capture`, `request_deploy`, `deploy_status`. Peer host `@consilium108/mcp`
|
|
9
|
+
`>=0.7.0 <1`; module contract `@nativemind108/mcp` `^1.13.0` (`defineMcpModule`).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
# ข้อตกลงสิทธิการใช้งาน NativeMindNONC (ประเทศไทย)
|
|
2
|
+
|
|
3
|
+
### 1. ข้อกำหนดทั่วไป
|
|
4
|
+
|
|
5
|
+
ข้อตกลงนี้อยู่ภายใต้บังคับของพระราชบัญญัติลิขสิทธิ์ พ.ศ. 2537 และแก้ไขเพิ่มเติม รวมถึงประมวลกฎหมายแพ่งและพาณิชย์แห่งราชอาณาจักรไทย
|
|
6
|
+
|
|
7
|
+
ผู้ถือลิขสิทธิ์: บริษัทผู้พัฒนาซอฟต์แวร์
|
|
8
|
+
|
|
9
|
+
เครื่องหมายการค้าของผลิตภัณฑ์ได้รับการจดทะเบียนและถือครองโดยผู้ถือลิขสิทธิ์
|
|
10
|
+
|
|
11
|
+
ลิขสิทธิ์ © 2010-2025 ผู้ถือลิขสิทธิ์ สงวนลิขสิทธิ์
|
|
12
|
+
|
|
13
|
+
### 2. เงื่อนไขการใช้งาน
|
|
14
|
+
|
|
15
|
+
การใช้งานโปรแกรมซอฟต์แวร์ ("ผลิตภัณฑ์") ถือว่าท่านยอมรับข้อกำหนดและเงื่อนไขตามข้อตกลงฉบับนี้ หากท่านไม่ยอมรับ โปรดหยุดใช้งานผลิตภัณฑ์โดยทันที
|
|
16
|
+
|
|
17
|
+
#### 2.1. การเผยแพร่ซอร์สโค้ด
|
|
18
|
+
|
|
19
|
+
เมื่อท่านใช้งานซอร์สโค้ดของผลิตภัณฑ์ ท่านมีหน้าที่:
|
|
20
|
+
|
|
21
|
+
- เผยแพร่ซอร์สโค้ดของท่านผ่าน GitHub โดยทำเป็น Fork ของ Repository อย่างเป็นทางการ
|
|
22
|
+
- ปรับปรุงให้เป็นปัจจุบันอยู่เสมอเพื่อสะท้อนการเปลี่ยนแปลงจากต้นฉบับ
|
|
23
|
+
- ระบุให้ชัดเจนว่าซอร์สโค้ดของท่านเป็น Fork ของ Repository ดั้งเดิม
|
|
24
|
+
|
|
25
|
+
#### 2.2. การเผยแพร่อัตโนมัติ
|
|
26
|
+
|
|
27
|
+
การเผยแพร่ทุกครั้งต้องดำเนินการผ่าน GitHub Actions เท่านั้น
|
|
28
|
+
|
|
29
|
+
#### 2.3. การให้เครดิต (Attribution)
|
|
30
|
+
|
|
31
|
+
เมื่อเผยแพร่ผลิตภัณฑ์ที่ดัดแปลงจากผลิตภัณฑ์ต้นฉบับ ท่านต้อง:
|
|
32
|
+
|
|
33
|
+
- ระบุเครดิตของผู้ถือลิขสิทธิ์พร้อมลิงก์ไปที่ Repository ดั้งเดิม
|
|
34
|
+
- แสดงลิงก์ไปยังข้อตกลงสิทธิ์ดั้งเดิม
|
|
35
|
+
- บันทึกการเปลี่ยนแปลงใน README ของ Repository ของท่าน
|
|
36
|
+
|
|
37
|
+
#### 2.4. ห้ามการใส่มัลแวร์
|
|
38
|
+
|
|
39
|
+
ห้ามอย่างเด็ดขาดที่จะเพิ่มมัลแวร์หรือรหัสอันตรายใด ๆ ลงในผลิตภัณฑ์
|
|
40
|
+
|
|
41
|
+
#### 2.5. ข้อจำกัดการใช้ชื่อและอินเทอร์เฟซ
|
|
42
|
+
|
|
43
|
+
ห้ามเผยแพร่แอปพลิเคชันในร้านค้าแอปใดๆ เช่น Google Play, App Store, F-Droid, Microsoft Store, Huawei AppGallery หรือแพลตฟอร์มอื่นใดด้วยชื่อหรือหน้าตาที่คล้ายกับผลิตภัณฑ์ต้นฉบับจนอาจทำให้เกิดความเข้าใจผิด
|
|
44
|
+
|
|
45
|
+
#### 2.6. การใช้งานเชิงพาณิชย์
|
|
46
|
+
|
|
47
|
+
**ฟรีสำหรับการใช้งานที่ไม่ใช่เชิงพาณิชย์**: ผลิตภัณฑ์นี้ฟรีสำหรับการใช้งานที่ไม่ใช่เชิงพาณิชย์ รวมถึง:
|
|
48
|
+
- สถาบันการศึกษา (โรงเรียน มหาวิทยาลัย วิทยาลัย)
|
|
49
|
+
- วัตถุประสงค์ทางการศึกษาและการฝึกอบรม
|
|
50
|
+
- การวิจัยและพัฒนาสำหรับโครงการที่ไม่ใช่เชิงพาณิชย์
|
|
51
|
+
- การเรียนรู้และการพัฒนาส่วนบุคคล
|
|
52
|
+
|
|
53
|
+
**การใช้งานเชิงพาณิชย์ต้องมีใบอนุญาต**: การใช้งานเชิงพาณิชย์ของผลิตภัณฑ์นี้ต้องได้รับอนุญาตเป็นลายลักษณ์อักษรจากผู้ถือลิขสิทธิ์ก่อนดำเนินการเชิงพาณิชย์ใดๆ รวมถึง:
|
|
54
|
+
- การขายหรือจำหน่ายเพื่อหากำไร
|
|
55
|
+
- การใช้งานในผลิตภัณฑ์หรือบริการเชิงพาณิชย์
|
|
56
|
+
- แอปพลิเคชันทางธุรกิจ
|
|
57
|
+
- กิจกรรมใดๆ ที่สร้างรายได้
|
|
58
|
+
|
|
59
|
+
#### 2.7. สิทธิของนักพัฒนาและโครงสร้างบริษัท
|
|
60
|
+
|
|
61
|
+
สิทธิทั้งหมดเป็นของนักพัฒนาที่เฉพาะเจาะจงซึ่งเป็นส่วนหนึ่งของบริษัทที่พัฒนาซอฟต์แวร์นี้ นักพัฒนาอาจ:
|
|
62
|
+
- นำเสนอโค้ดและผลงานในงานแสดงสินค้าและงานประชุม
|
|
63
|
+
- แสดงความสำเร็จทางเทคนิคของตนต่อสาธารณะ
|
|
64
|
+
- ใช้ผลงานของตนเพื่อพอร์ตโฟลิโอทางวิชาชีพและการพัฒนาอาชีพ
|
|
65
|
+
|
|
66
|
+
อย่างไรก็ตาม นักพัฒนาไม่สามารถ:
|
|
67
|
+
- ใช้โค้ดหรือผลงานเพื่อวัตถุประสงค์เชิงพาณิชย์ส่วนตัว
|
|
68
|
+
- อนุญาตให้ใช้ซอฟต์แวร์อย่างอิสระนอกเหนือจากโครงสร้างบริษัท
|
|
69
|
+
- โอนสิทธิเชิงพาณิชย์โดยไม่ได้รับอนุญาตจากบริษัท
|
|
70
|
+
|
|
71
|
+
การอนุญาตเชิงพาณิชย์ทั้งหมดต้องดำเนินการผ่านบริษัทที่จ้างนักพัฒนาเหล่านี้
|
|
72
|
+
|
|
73
|
+
#### 2.8. การเผยแพร่ภายใต้เงื่อนไขเดียวกัน (ShareAlike)
|
|
74
|
+
|
|
75
|
+
ผลงานที่สร้างจากผลิตภัณฑ์นี้ต้องถูกเผยแพร่ภายใต้ข้อตกลงสิทธิ์เดียวกันและในรูปแบบ Open Source ผ่านการ Fork จาก Repository ดั้งเดิม
|
|
76
|
+
|
|
77
|
+
### 3. การใช้งานส่วนประกอบ Open Source
|
|
78
|
+
|
|
79
|
+
ผลิตภัณฑ์ประกอบด้วยส่วนประกอบ Open Source ที่ได้รับอนุญาตตามเงื่อนไขอื่นๆ การใช้งานผลิตภัณฑ์หมายถึงท่านยอมรับเงื่อนไขของแต่ละส่วนประกอบด้วย รายละเอียดระบุไว้ในไฟล์ LICENSE.md ที่แนบมาพร้อมผลิตภัณฑ์
|
|
80
|
+
|
|
81
|
+
### 4. การปฏิเสธความรับผิด
|
|
82
|
+
|
|
83
|
+
ผลิตภัณฑ์นี้ให้บริการ "ตามสภาพ" โดยไม่มีการรับประกันใดๆ ทั้งสิ้น ไม่ว่าจะแจ้งชัดหรือโดยนัย รวมถึงการรับประกันด้านความเหมาะสมกับวัตถุประสงค์เฉพาะใดๆ และผู้ถือลิขสิทธิ์จะไม่รับผิดชอบต่อความเสียหายใดๆ อันเกิดจากการใช้งานผลิตภัณฑ์นี้
|
|
84
|
+
|
|
85
|
+
### 5. การละเมิดข้อตกลง
|
|
86
|
+
|
|
87
|
+
ในกรณีที่มีการละเมิดข้อตกลงนี้ ผู้ถือลิขสิทธิ์มีสิทธิ์ขอให้หยุดเผยแพร่ผลิตภัณฑ์ และอาจดำเนินการทางกฎหมายหรือแจ้งไปยังร้านค้าแอปพลิเคชันเพื่อให้มีการลบหรือระงับการเผยแพร่ผลิตภัณฑ์ที่ละเมิด
|
|
88
|
+
|
|
89
|
+
ข้อพิพาทใดๆ จะต้องได้รับการตัดสินตามกฎหมายแห่งราชอาณาจักรไทย
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
การใช้งานผลิตภัณฑ์หมายถึงท่านได้อ่าน เข้าใจ และยอมรับข้อกำหนดและเงื่อนไขทั้งหมดตามข้อตกลงนี้แล้ว
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Лицензионное соглашение (Российская Федерация)
|
|
98
|
+
|
|
99
|
+
### 1. Общие положения
|
|
100
|
+
|
|
101
|
+
Настоящая лицензия регулируется нормами Гражданского кодекса Российской Федерации (часть IV, статьи 1225-1301) и иных применимых законодательных актов РФ.
|
|
102
|
+
|
|
103
|
+
Правообладатель: Компания-разработчик программного обеспечения
|
|
104
|
+
|
|
105
|
+
Товарный знак продукта зарегистрирован и принадлежит правообладателю.
|
|
106
|
+
|
|
107
|
+
© 2010-2025 Правообладатель. Все права защищены.
|
|
108
|
+
|
|
109
|
+
### 2. Условия использования
|
|
110
|
+
|
|
111
|
+
Используя программный продукт ("Продукт"), вы подтверждаете согласие с условиями настоящей лицензии. В случае несогласия вы обязаны немедленно прекратить использование и распространение Продукта.
|
|
112
|
+
|
|
113
|
+
#### 2.1. Доступность исходного кода
|
|
114
|
+
|
|
115
|
+
При использовании исходного кода Продукта вы обязаны:
|
|
116
|
+
|
|
117
|
+
- Опубликовать производный код исключительно в виде публичного репозитория на платформе GitHub в виде форка официального репозитория
|
|
118
|
+
- Своевременно обновлять свой репозиторий, отражая изменения в официальных релизах
|
|
119
|
+
- Указывать в репозитории, что он является форком официального репозитория
|
|
120
|
+
|
|
121
|
+
#### 2.2. Автоматизация релизов
|
|
122
|
+
|
|
123
|
+
Все релизы Продукта должны осуществляться исключительно через GitHub Actions.
|
|
124
|
+
|
|
125
|
+
#### 2.3. Обязательная атрибуция
|
|
126
|
+
|
|
127
|
+
При распространении производного Продукта вы обязаны:
|
|
128
|
+
|
|
129
|
+
- Указывать автора и давать соответствующую ссылку на официальный репозиторий
|
|
130
|
+
- Размещать ссылку на оригинальную лицензию
|
|
131
|
+
- Документировать изменения, сделанные вами в README вашего репозитория
|
|
132
|
+
|
|
133
|
+
#### 2.4. Запрет вредоносного ПО
|
|
134
|
+
|
|
135
|
+
Категорически запрещается встраивать любое вредоносное программное обеспечение (вирусы, трояны и т.п.).
|
|
136
|
+
|
|
137
|
+
#### 2.5. Ограничения на использование имени и интерфейса
|
|
138
|
+
|
|
139
|
+
Запрещается публикация производных продуктов под названием или с пользовательским интерфейсом, сходным до степени смешения с оригинальным продуктом, на любых площадках распространения программного обеспечения (например, Google Play, App Store, RuStore, NashStore, AppGallery, VK Play и других площадках).
|
|
140
|
+
|
|
141
|
+
#### 2.6. Некоммерческое использование
|
|
142
|
+
|
|
143
|
+
**Бесплатно для некоммерческого использования**: Данный продукт бесплатен для некоммерческого использования, включая:
|
|
144
|
+
- Образовательные учреждения (школы, университеты, колледжи)
|
|
145
|
+
- Образовательные и обучающие цели
|
|
146
|
+
- Исследования и разработки для некоммерческих проектов
|
|
147
|
+
- Личное обучение и развитие
|
|
148
|
+
|
|
149
|
+
**Коммерческое использование требует лицензии**: Использование Продукта в коммерческих целях (продажа, реклама, иные коммерческие операции) допускается исключительно после письменного согласия правообладателя.
|
|
150
|
+
|
|
151
|
+
#### 2.7. Права разработчиков и структура компании
|
|
152
|
+
|
|
153
|
+
Все права принадлежат конкретным разработчикам, которые входят в состав компании, разрабатывающей данное программное обеспечение. Разработчики могут:
|
|
154
|
+
- Представлять код и результаты работы на выставках и конференциях
|
|
155
|
+
- Демонстрировать свои технические достижения публично
|
|
156
|
+
- Использовать свою работу для профессионального портфолио и развития карьеры
|
|
157
|
+
|
|
158
|
+
Однако разработчики не могут:
|
|
159
|
+
- Использовать код или результаты работы для личных коммерческих целей
|
|
160
|
+
- Лицензировать программное обеспечение независимо вне структуры компании
|
|
161
|
+
- Передавать коммерческие права без разрешения компании
|
|
162
|
+
|
|
163
|
+
Все коммерческое лицензирование должно проводиться через компанию, которая нанимает этих разработчиков.
|
|
164
|
+
|
|
165
|
+
#### 2.8. Условие аналогичного распространения (ShareAlike)
|
|
166
|
+
|
|
167
|
+
Любое изменение, адаптация или создание производных работ на основе Продукта должно распространяться исключительно на условиях настоящей лицензии и с открытым исходным кодом через форк официального репозитория.
|
|
168
|
+
|
|
169
|
+
### 3. Использование компонентов с открытым исходным кодом
|
|
170
|
+
|
|
171
|
+
Продукт содержит компоненты с открытым исходным кодом, лицензируемые отдельно. Пользуясь Продуктом, вы принимаете условия лицензий каждого компонента. Подробности указаны в файле LICENSE.md, входящем в комплект поставки.
|
|
172
|
+
|
|
173
|
+
### 4. Ответственность сторон
|
|
174
|
+
|
|
175
|
+
Продукт предоставляется «как есть», без каких-либо гарантий, явных или подразумеваемых, в том числе гарантий пригодности для определённых целей и отсутствия нарушений прав третьих лиц. Правообладатель не несёт ответственности за убытки, возникающие вследствие использования или невозможности использования Продукта.
|
|
176
|
+
|
|
177
|
+
### 5. Нарушение условий лицензии
|
|
178
|
+
|
|
179
|
+
При нарушении условий настоящей лицензии правообладатель вправе требовать прекращения распространения Продукта, а также обратиться в суд или обратиться с жалобой в соответствующие площадки распространения программного обеспечения для удаления или ограничения доступа к нарушающим продуктам.
|
|
180
|
+
|
|
181
|
+
Споры разрешаются в порядке, установленном законодательством Российской Федерации.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
Используя Продукт, вы подтверждаете, что прочитали, поняли и полностью принимаете условия настоящей лицензии.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## License Agreement (English)
|
|
190
|
+
|
|
191
|
+
### 1. General Provisions
|
|
192
|
+
|
|
193
|
+
This agreement is governed by copyright laws and intellectual property regulations of the jurisdiction where the software is used.
|
|
194
|
+
|
|
195
|
+
Copyright Holder: Software Development Company
|
|
196
|
+
|
|
197
|
+
The product trademark is registered and owned by the copyright holder.
|
|
198
|
+
|
|
199
|
+
Copyright © 2010-2025 Copyright Holder. All rights reserved.
|
|
200
|
+
|
|
201
|
+
### 2. Usage Terms
|
|
202
|
+
|
|
203
|
+
By using the software product ("Product"), you agree to accept the terms and conditions of this agreement. If you do not agree, please stop using the product immediately.
|
|
204
|
+
|
|
205
|
+
#### 2.1. Source Code Publication
|
|
206
|
+
|
|
207
|
+
When using the source code of the Product, you are obligated to:
|
|
208
|
+
|
|
209
|
+
- Publish your source code through GitHub by creating a Fork of the official Repository
|
|
210
|
+
- Keep it updated to reflect changes from the original
|
|
211
|
+
- Clearly indicate that your source code is a Fork of the original Repository
|
|
212
|
+
|
|
213
|
+
#### 2.2. Automatic Publication
|
|
214
|
+
|
|
215
|
+
All publications must be conducted through GitHub Actions only.
|
|
216
|
+
|
|
217
|
+
#### 2.3. Attribution
|
|
218
|
+
|
|
219
|
+
When publishing products derived from the original Product, you must:
|
|
220
|
+
|
|
221
|
+
- Credit the copyright holder with a link to the original Repository
|
|
222
|
+
- Display a link to the original license agreement
|
|
223
|
+
- Record changes in the README of your Repository
|
|
224
|
+
|
|
225
|
+
#### 2.4. Malware Prohibition
|
|
226
|
+
|
|
227
|
+
It is strictly prohibited to add malware or any dangerous code to the product.
|
|
228
|
+
|
|
229
|
+
#### 2.5. Name and Interface Usage Restrictions
|
|
230
|
+
|
|
231
|
+
It is prohibited to publish applications in any app store (Google Play, App Store, F-Droid, Microsoft Store, Huawei AppGallery, or other platforms) with names or interfaces similar to the original product that may cause confusion.
|
|
232
|
+
|
|
233
|
+
#### 2.6. Commercial Use
|
|
234
|
+
|
|
235
|
+
**Free for Non-Commercial Use**: This product is free for non-commercial use including:
|
|
236
|
+
- Educational institutions (schools, universities, colleges)
|
|
237
|
+
- Educational and training purposes
|
|
238
|
+
- Research and development for non-commercial projects
|
|
239
|
+
- Personal learning and development
|
|
240
|
+
|
|
241
|
+
**Commercial Use Requires License**: Commercial use of this product requires a written license agreement from the copyright holder before any commercial activities including:
|
|
242
|
+
- Selling or distributing for profit
|
|
243
|
+
- Using in commercial products or services
|
|
244
|
+
- Business applications
|
|
245
|
+
- Any revenue-generating activities
|
|
246
|
+
|
|
247
|
+
#### 2.7. Developer Rights and Company Structure
|
|
248
|
+
|
|
249
|
+
All rights belong to specific developers who are part of the company that develops this software. Developers may:
|
|
250
|
+
- Present code and work results at exhibitions and conferences
|
|
251
|
+
- Showcase their technical achievements publicly
|
|
252
|
+
- Use their work for professional portfolio and career development
|
|
253
|
+
|
|
254
|
+
However, developers cannot:
|
|
255
|
+
- Use the code or work results for personal commercial purposes
|
|
256
|
+
- License the software independently outside the company structure
|
|
257
|
+
- Transfer commercial rights without company authorization
|
|
258
|
+
|
|
259
|
+
All commercial licensing must be conducted through the company that employs these developers.
|
|
260
|
+
|
|
261
|
+
#### 2.8. License Standardization
|
|
262
|
+
|
|
263
|
+
This license may become a standard and other companies may copy the license text for their own use, similar to MIT, Apache, or GPL licenses.
|
|
264
|
+
|
|
265
|
+
#### 2.9. ShareAlike Requirement
|
|
266
|
+
|
|
267
|
+
Any work created from this product must be published under the same license terms and in open source format through a Fork from the original Repository.
|
|
268
|
+
|
|
269
|
+
### 3. Open Source Components
|
|
270
|
+
|
|
271
|
+
The Product includes Open Source components licensed under different terms. Using the Product means you accept the terms of each component as well. Details are specified in the LICENSE.md file included with the product.
|
|
272
|
+
|
|
273
|
+
### 4. Disclaimer
|
|
274
|
+
|
|
275
|
+
This product is provided "as is" without any warranties, whether express or implied, including warranties of merchantability, fitness for a particular purpose, and non-infringement. The copyright holder shall not be liable for any damages arising from the use of this product.
|
|
276
|
+
|
|
277
|
+
### 5. License Violations
|
|
278
|
+
|
|
279
|
+
In case of violation of this agreement, the copyright holder has the right to request cessation of product distribution and may take legal action or notify app stores to remove or suspend distribution of violating products.
|
|
280
|
+
|
|
281
|
+
Any disputes shall be resolved according to the laws of the jurisdiction where the copyright holder is incorporated.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
Using the Product means you have read, understood, and accepted all terms and conditions of this agreement.
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
# NativeMindNONC License Agreement
|
package/README.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @consilium108/mcp-module-devops
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- generated by Claude (Opus 5.5), 2026-11-20; Konsilium #442, SDD flows/sdd-consilium-mcp-modules. Раздел составлен ассистентом. -->
|
|
4
|
+
|
|
5
|
+
Модуль **DevOps** (DevOps) MCP Консилиума: Запросы выкатки по кнопке и их статус; отчёты отладки приложений.
|
|
6
|
+
|
|
7
|
+
- Хост — [`@consilium108/mcp`](https://www.npmjs.com/package/@consilium108/mcp) `>=0.7.0 <1` (peer). В 0.x хост сам ставит и
|
|
8
|
+
загружает все пять модулей, поэтому `npx @consilium108/mcp` и облачный `/mcp` дают прежний набор инструментов.
|
|
9
|
+
- Контракт модуля — `defineMcpModule` из [`@nativemind108/mcp`](https://www.npmjs.com/package/@nativemind108/mcp)
|
|
10
|
+
`^1.13.0`; хост проверяет совместимость (`ModuleHost`), дубли инструментов и сливает тексты.
|
|
11
|
+
- Модуль не получает учётных данных: только помощники хоста `h` (тексты, REST с ключом пользователя, формы).
|
|
12
|
+
- Человек включает или выключает модуль для каждого подключения (страница согласия OAuth, «Подключённые приложения»);
|
|
13
|
+
сервер проверяет модуль на каждом вызове (MCP, REST/GraphQL по ключу, события) — ошибка `module_disabled`.
|
|
14
|
+
Права (scopes) не меняются: доступ = модуль включён И право есть.
|
|
15
|
+
|
|
16
|
+
Инструменты сервера: `get_debug_report`, `list_debug_reports`, `attach_debug_capture`, `request_deploy`, `deploy_status`.
|
|
17
|
+
|
|
18
|
+
Локальные инструменты (только локальный runtime; код пока в ядре): —.
|
|
19
|
+
|
|
20
|
+
Права: `tasks:work`. Промпты: `release_prepare`.
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import mod from '@consilium108/mcp-module-devops';
|
|
24
|
+
mod.id; // 'devops'
|
|
25
|
+
Object.keys(mod.groups);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Лицензия: NativeMindNONC (см. LICENSE).
|
package/i18n/en.json
ADDED
package/i18n/ru.json
ADDED
package/i18n/th.json
ADDED
package/i18n/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@consilium108/mcp-module-devops",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "DevOps module of the Konsilium MCP (#442): Deploy requests by button and their status; debug reports of apps. Loaded by the host @consilium108/mcp; enabled or disabled per connection by the person.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": "NativeMind",
|
|
7
|
+
"homepage": "https://konsilium.nativemind.net",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=22.12"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./src/index.js",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"src",
|
|
18
|
+
"i18n",
|
|
19
|
+
"README.md",
|
|
20
|
+
"CHANGELOG.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "node --test test/*.test.js"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@consilium108/mcp": ">=0.7.0 <1"
|
|
28
|
+
},
|
|
29
|
+
"peerDependenciesMeta": {
|
|
30
|
+
"@consilium108/mcp": {
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@nativemind108/mcp": "^1.13.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"zod": "^4.6.7"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// generated by Claude (Opus 5.5), 2026-11-20; Konsilium #442 (SDD flows/sdd-consilium-mcp-modules, Phase 3): debug reports of apps (Job Copilot extension, #368) — moved verbatim from
|
|
2
|
+
// @consilium108/mcp src/core/groups/team.js (rule «extract, don't rewrite»): the same names, schemas, texts and annotations;
|
|
3
|
+
// handlers use only the host helpers `h` (texts, REST with the caller's credential, forms) — never credentials.
|
|
4
|
+
|
|
5
|
+
/** Tools of `DEBUG_TOOLS` (the in-process registration order). */
|
|
6
|
+
export const DEBUG_TOOLS = ['get_debug_report', 'list_debug_reports', 'attach_debug_capture'];
|
|
7
|
+
|
|
8
|
+
export function registerDebugTools(server, h) {
|
|
9
|
+
if (h.shape === 'personal') return;
|
|
10
|
+
const { z, M, text, fail, safe, call, P } = h;
|
|
11
|
+
const ro = { readOnlyHint: true, openWorldHint: false };
|
|
12
|
+
const id = () => P();
|
|
13
|
+
/** = the in-process `choose`: a choice of one of the candidates for the person. */
|
|
14
|
+
const choose = (code, field, title, options) => new h.NeedsInput({ code, message: title, fields: { [field]: { type: 'enum', title, options } }, fallback: null });
|
|
15
|
+
/** A 409 «several fit» of REST (asked with elicit: true) → the form; anything else is rethrown. */
|
|
16
|
+
const ambiguous = (e, title) => {
|
|
17
|
+
if (e?.details && Array.isArray(e.details.options)) throw choose(e.code, e.details.field, title, e.details.options);
|
|
18
|
+
throw e;
|
|
19
|
+
};
|
|
20
|
+
const elicit = () => (h.elicitOn() ? true : undefined);
|
|
21
|
+
|
|
22
|
+
// #368 (#F102, Job Copilot D9): debug reports from the extension; local captures by the sender's own session
|
|
23
|
+
server.registerTool(
|
|
24
|
+
'get_debug_report',
|
|
25
|
+
{ title: 'Debug report', description: 'A Job Copilot debug report («Send for fixing» from the extension): URL, adapter, cards, warnings, the report JSON and the local page capture if attached.', inputSchema: { id: z.number().int() }, annotations: ro },
|
|
26
|
+
safe(async ({ id: reportId }, ctx) => text(await call(ctx, 'GET', '/api/projects/{id}/debug-reports/{reportId}', { id: id(), reportId }))),
|
|
27
|
+
);
|
|
28
|
+
server.registerTool(
|
|
29
|
+
'list_debug_reports',
|
|
30
|
+
{ title: 'Debug reports', description: 'Job Copilot debug reports visible to you (newest first): state needs_capture (waits for the sender\'s local capture) or ready (ready for fixing), filter by site.', inputSchema: { state: z.enum(['needs_capture', 'ready']).optional(), site: z.string().max(100).optional() }, annotations: ro },
|
|
31
|
+
safe(async ({ state, site }, ctx) => text({ reports: (await call(ctx, 'GET', '/api/projects/{id}/debug-reports', { id: id(), state, site })).reports })),
|
|
32
|
+
);
|
|
33
|
+
server.registerTool(
|
|
34
|
+
'attach_debug_capture',
|
|
35
|
+
{
|
|
36
|
+
title: 'Attach a local page capture',
|
|
37
|
+
description:
|
|
38
|
+
'Only for the sender\'s own Claude Code session (claude-in-chrome in their browser): attach the page capture (≤ 1 MB JSON — DOM excerpts, selectors, screenshots as data URLs; never keys, cookies, form values or chat texts). The fix task becomes ready for anyone.',
|
|
39
|
+
inputSchema: { id: z.number().int(), capture: z.record(z.string(), z.any()) },
|
|
40
|
+
annotations: { readOnlyHint: false, openWorldHint: false },
|
|
41
|
+
},
|
|
42
|
+
safe(async ({ id: reportId, capture }, ctx) => text(await call(ctx, 'POST', '/api/projects/{id}/debug-reports/{reportId}/capture', { id: id(), reportId, capture }))),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// generated by Claude (Opus 5.5), 2026-11-20; Konsilium #442 (SDD flows/sdd-consilium-mcp-modules, Phase 3): deploy by button (request_deploy, deploy_status) — moved verbatim from
|
|
2
|
+
// @consilium108/mcp src/core/groups/teamops.js (rule «extract, don't rewrite»): the same names, schemas, texts and annotations;
|
|
3
|
+
// handlers use only the host helpers `h` (texts, REST with the caller's credential, forms) — never credentials.
|
|
4
|
+
|
|
5
|
+
/** Tools of `DEPLOY_TOOLS` (the in-process registration order). */
|
|
6
|
+
export const DEPLOY_TOOLS = ['request_deploy', 'deploy_status'];
|
|
7
|
+
|
|
8
|
+
const JOB_STATUSES = ['Queued', 'Evaluated', 'Applied', 'Responded', 'Interview', 'Offer', 'Rejected', 'Discarded', 'SKIP', 'Hired'];
|
|
9
|
+
|
|
10
|
+
export function registerDeployTools(server, h) {
|
|
11
|
+
if (h.shape === 'personal') return; // only the project MCP registers these (buildMcpServer)
|
|
12
|
+
const { z, text, fail, safe, call, P } = h;
|
|
13
|
+
const ro = { readOnlyHint: true, openWorldHint: false };
|
|
14
|
+
|
|
15
|
+
// ── deploytools.js
|
|
16
|
+
server.registerTool(
|
|
17
|
+
'request_deploy',
|
|
18
|
+
{
|
|
19
|
+
title: 'Request a deploy',
|
|
20
|
+
description:
|
|
21
|
+
'Ask the people who may deploy this project to approve a deploy of a target (they get «Deploy? ✅ / No» in the messenger; a runner on the project server does the rest and reports). Put in `summary` what changes and that tests passed. You cannot approve it yourself. Returns the request id; poll deploy_status.',
|
|
22
|
+
inputSchema: { target: z.string().max(41).optional().describe('Target key (e.g. konsilium-prod); optional if the project has one target.'), summary: z.string().min(3).max(2000) },
|
|
23
|
+
annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: true },
|
|
24
|
+
},
|
|
25
|
+
safe(async ({ target, summary }, ctx) => {
|
|
26
|
+
const r = await call(ctx, 'POST', '/api/projects/{id}/tool/request_deploy', { id: P(), target, summary });
|
|
27
|
+
return text({ ...r, next: 'Wait for a human to approve; then call deploy_status(deploy_id).' });
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
30
|
+
server.registerTool(
|
|
31
|
+
'deploy_status',
|
|
32
|
+
{
|
|
33
|
+
title: 'Deploy status',
|
|
34
|
+
description: 'Status of a deploy request: pending → approved → running → done | failed (or rejected / expired), exit code, health, log tail.',
|
|
35
|
+
inputSchema: { deploy_id: z.number().int() },
|
|
36
|
+
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
37
|
+
},
|
|
38
|
+
safe(async ({ deploy_id }, ctx) => text(await call(ctx, 'GET', '/api/projects/{id}/deploys/{deployId}', { id: P(), deployId: deploy_id }))),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
// ── calltools.js (the discussions right is checked here as well, with the in-process text)
|
|
42
|
+
const callProject = (project_id) => {
|
|
43
|
+
const p = project_id ?? P();
|
|
44
|
+
if (!p) return { error: fail('no_project: no project: pass project_id') };
|
|
45
|
+
if (!h.scopesFor(p).includes('discussions')) return { error: fail('forbidden: forbidden: calls need the discussions right of the project (the person changes access in Konsilium)') };
|
|
46
|
+
return { p };
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// ── grouptools.js
|
|
50
|
+
|
|
51
|
+
// ── paytools.js
|
|
52
|
+
|
|
53
|
+
// ── jobtools.js (registered after the project tools: no project_id; the project rows are those of the call's project)
|
|
54
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// generated by Claude (Opus 5.5), 2026-11-20; Konsilium #442 (SDD flows/sdd-consilium-mcp-modules, Tasks 3.2–3.6)
|
|
2
|
+
// The DevOps module of the Konsilium MCP: a separately published package the host @consilium108/mcp loads
|
|
3
|
+
// (in 0.x the host loads all five modules, so every client keeps the same tools). A person enables or disables the
|
|
4
|
+
// module per connection (OAuth consent page, Konsilium → Connected apps); the server checks it on every call (the MCP
|
|
5
|
+
// guard, REST / GraphQL by key, events) — hiding a tool is never the protection. Rights (scopes) do not change.
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
|
+
import { defineMcpModule } from '@nativemind108/mcp';
|
|
8
|
+
import { DEBUG_TOOLS, registerDebugTools } from './groups/debug.js';
|
|
9
|
+
import { DEPLOY_TOOLS, registerDeployTools } from './groups/deploy.js';
|
|
10
|
+
|
|
11
|
+
const PKG = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
12
|
+
const LANGS = ["en", "ru", "th", "zh"];
|
|
13
|
+
/** Catalog texts of the module's tools (merged into the host's catalog by its ModuleHost). */
|
|
14
|
+
const I18N = Object.fromEntries(LANGS.map((l) => [l, JSON.parse(readFileSync(new URL(`../i18n/${l}.json`, import.meta.url), 'utf8'))]));
|
|
15
|
+
|
|
16
|
+
export default defineMcpModule({
|
|
17
|
+
id: 'devops',
|
|
18
|
+
name: PKG.name,
|
|
19
|
+
version: PKG.version,
|
|
20
|
+
host: PKG.peerDependencies['@consilium108/mcp'],
|
|
21
|
+
title: {"en": "DevOps", "ru": "DevOps", "th": "DevOps", "zh": "DevOps", "ja": "DevOps"},
|
|
22
|
+
summary: {"en": "Deploy requests by button and their status; debug reports of apps.", "ru": "Запросы выкатки по кнопке и их статус; отчёты отладки приложений.", "th": "คำขอดีพลอยผ่านปุ่มและสถานะ; รายงานดีบักของแอป", "zh": "按按钮请求部署及其状态;应用的调试报告。", "ja": "ボタンによるデプロイ依頼とその状況、アプリのデバッグレポート。"},
|
|
23
|
+
groups: {
|
|
24
|
+
debug: { tools: DEBUG_TOOLS, register: registerDebugTools },
|
|
25
|
+
deploy: { tools: DEPLOY_TOOLS, register: registerDeployTools },
|
|
26
|
+
},
|
|
27
|
+
localTools: [],
|
|
28
|
+
prompts: ["release_prepare"],
|
|
29
|
+
requiresScopes: ["tasks:work"],
|
|
30
|
+
i18n: I18N,
|
|
31
|
+
aliases: {},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { DEBUG_TOOLS, registerDebugTools, DEPLOY_TOOLS, registerDeployTools };
|