biaws-mcp 0.6.0 → 0.8.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/README.md +5 -4
- package/package.json +1 -1
- package/src/domains/catalog/service.js +10 -0
- package/src/domains/catalog/tools.js +23 -9
- package/src/domains/demands/service.js +1 -1
- package/src/tools.js +10 -2
- package/src/version.js +1 -1
package/README.md
CHANGED
|
@@ -65,13 +65,13 @@ O pacote público expõe o executável `biaws-mcp`. Clientes configurados pelo C
|
|
|
65
65
|
usam uma versão fixada por meio do cache local do npm:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
npx --yes biaws-mcp@0.
|
|
68
|
+
npx --yes biaws-mcp@0.8.0
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
Também é possível instalá-lo explicitamente:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
npm install --global biaws-mcp@0.
|
|
74
|
+
npm install --global biaws-mcp@0.8.0
|
|
75
75
|
biaws-mcp
|
|
76
76
|
```
|
|
77
77
|
|
|
@@ -90,7 +90,7 @@ npm start
|
|
|
90
90
|
Em um cliente MCP, configure o comando:
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
|
-
npx --yes biaws-mcp@0.
|
|
93
|
+
npx --yes biaws-mcp@0.8.0
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
O fluxo recomendado é gerar a configuração completa com:
|
|
@@ -157,7 +157,8 @@ As escritas estruturadas são:
|
|
|
157
157
|
- `integrations_create` e `integrations_update`;
|
|
158
158
|
- `repositories_create` e `repositories_update`;
|
|
159
159
|
- `servers_create` e `servers_update`;
|
|
160
|
-
- `deployments_create` e
|
|
160
|
+
- `deployments_create`, `deployments_update` e
|
|
161
|
+
`deployments_record_publication`;
|
|
161
162
|
- `runtimes_create` e `runtimes_update`.
|
|
162
163
|
|
|
163
164
|
As ferramentas de escrita usam `POST` ou `PATCH` da API e, portanto, herdam
|
package/package.json
CHANGED
|
@@ -256,6 +256,16 @@ export async function updateDeployment(args = {}) {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
export async function recordDeploymentPublication(args = {}) {
|
|
260
|
+
const deploymentId = requiredId(args, "deploymentId");
|
|
261
|
+
return sendJson(
|
|
262
|
+
`${entityPath("deployments", deploymentId)}/publications`,
|
|
263
|
+
mutationPayload(args, ["deploymentId"]),
|
|
264
|
+
{},
|
|
265
|
+
"POST",
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
|
|
259
269
|
export async function listRuntimes(args = {}) {
|
|
260
270
|
const deploymentId = requiredId(args, "deploymentId");
|
|
261
271
|
return fetchJson(
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
listRuntimes,
|
|
24
24
|
listServers,
|
|
25
25
|
listWorkspaces,
|
|
26
|
+
recordDeploymentPublication,
|
|
26
27
|
updateApplication,
|
|
27
28
|
updateComponent,
|
|
28
29
|
updateDeployment,
|
|
@@ -165,6 +166,18 @@ const SERVER_PROPERTIES = {
|
|
|
165
166
|
tags: TAGS,
|
|
166
167
|
};
|
|
167
168
|
|
|
169
|
+
const PUBLICATION_PROPERTIES = {
|
|
170
|
+
version: STRING,
|
|
171
|
+
revision: STRING,
|
|
172
|
+
repositoryId: { type: ["string", "null"] },
|
|
173
|
+
status: {
|
|
174
|
+
type: "string",
|
|
175
|
+
enum: ["planned", "canceled", "deployed"],
|
|
176
|
+
},
|
|
177
|
+
publishedAt: { type: ["string", "null"] },
|
|
178
|
+
description: STRING,
|
|
179
|
+
};
|
|
180
|
+
|
|
168
181
|
const DEPLOYMENT_PROPERTIES = {
|
|
169
182
|
key: APPLICATION_PROPERTIES.key,
|
|
170
183
|
name: STRING,
|
|
@@ -183,15 +196,7 @@ const DEPLOYMENT_PROPERTIES = {
|
|
|
183
196
|
required: ["version"],
|
|
184
197
|
properties: {
|
|
185
198
|
id: ID,
|
|
186
|
-
|
|
187
|
-
revision: STRING,
|
|
188
|
-
repositoryId: { type: ["string", "null"] },
|
|
189
|
-
status: {
|
|
190
|
-
type: "string",
|
|
191
|
-
enum: ["planned", "canceled", "deployed"],
|
|
192
|
-
},
|
|
193
|
-
publishedAt: { type: ["string", "null"] },
|
|
194
|
-
description: STRING,
|
|
199
|
+
...PUBLICATION_PROPERTIES,
|
|
195
200
|
recordedAt: { type: ["string", "null"] },
|
|
196
201
|
recordedBy: STRING,
|
|
197
202
|
},
|
|
@@ -553,6 +558,15 @@ export const catalogTools = [
|
|
|
553
558
|
["deploymentId"],
|
|
554
559
|
),
|
|
555
560
|
),
|
|
561
|
+
definition(
|
|
562
|
+
"deployments_record_publication",
|
|
563
|
+
"Registra uma publicação no histórico append-only de um deployment sem reenviar as entradas existentes.",
|
|
564
|
+
recordDeploymentPublication,
|
|
565
|
+
schema({ deploymentId: ID, ...PUBLICATION_PROPERTIES }, [
|
|
566
|
+
"deploymentId",
|
|
567
|
+
"version",
|
|
568
|
+
]),
|
|
569
|
+
),
|
|
556
570
|
definition(
|
|
557
571
|
"runtimes_create",
|
|
558
572
|
"Cria um runtime de deployment com metadata limitada e sem segredos.",
|
|
@@ -396,7 +396,7 @@ export async function updateDemandTask(args = {}) {
|
|
|
396
396
|
export async function updateDemandTaskStatus(args = {}) {
|
|
397
397
|
if (!args.requestId) throw new Error("requestId is required");
|
|
398
398
|
if (!args.taskId) throw new Error("taskId is required");
|
|
399
|
-
validateTaskStatus(args.status);
|
|
399
|
+
await validateTaskStatus(args.status);
|
|
400
400
|
|
|
401
401
|
const { request, task } = await readDemandTask(args.requestId, args.taskId);
|
|
402
402
|
return sendJson(
|
package/src/tools.js
CHANGED
|
@@ -45,6 +45,13 @@ const DEMAND_TASK_STATUS_SCHEMA = {
|
|
|
45
45
|
"Status configurado em Configurações/Listas de Opções; a API valida o valor vigente.",
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
const DEMAND_TASK_UPDATE_STATUS_SCHEMA = {
|
|
49
|
+
type: "string",
|
|
50
|
+
enum: ["Pendente", "Andamento", "Aguardando Decisão", "Concluído"],
|
|
51
|
+
description:
|
|
52
|
+
"Status válido da tarefa. Use exatamente um dos valores declarados no enum.",
|
|
53
|
+
};
|
|
54
|
+
|
|
48
55
|
const DEMAND_TASK_FIELDS = {
|
|
49
56
|
code: { type: "string", description: "Código opcional da tarefa" },
|
|
50
57
|
title: { type: "string" },
|
|
@@ -710,7 +717,8 @@ const tools = [
|
|
|
710
717
|
},
|
|
711
718
|
{
|
|
712
719
|
name: "demands_update_task_status",
|
|
713
|
-
description:
|
|
720
|
+
description:
|
|
721
|
+
"Altera somente o status de uma tarefa da melhoria. Requer um status válido declarado no schema.",
|
|
714
722
|
inputSchema: {
|
|
715
723
|
type: "object",
|
|
716
724
|
required: ["requestId", "taskId", "status"],
|
|
@@ -718,7 +726,7 @@ const tools = [
|
|
|
718
726
|
properties: {
|
|
719
727
|
requestId: { type: "string", description: "ID ou código da melhoria" },
|
|
720
728
|
taskId: { type: "string" },
|
|
721
|
-
status:
|
|
729
|
+
status: DEMAND_TASK_UPDATE_STATUS_SCHEMA,
|
|
722
730
|
},
|
|
723
731
|
},
|
|
724
732
|
handler: updateDemandTaskStatus,
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const SERVER_NAME = "biaws-mcp";
|
|
2
|
-
export const SERVER_VERSION = "0.
|
|
2
|
+
export const SERVER_VERSION = "0.8.0";
|