biaws-mcp 0.6.0 → 0.7.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 CHANGED
@@ -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 `deployments_update`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biaws-mcp",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Servidor MCP de domínio para o Bondia Workspaces",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -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
- version: STRING,
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.",
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const SERVER_NAME = "biaws-mcp";
2
- export const SERVER_VERSION = "0.6.0";
2
+ export const SERVER_VERSION = "0.7.0";