@comando.one/mcp-server 0.3.2 → 0.4.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/dist/index.js +38 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172,6 +172,7 @@ var MANIFEST = [
|
|
|
172
172
|
{ operationId: "getPurchaseInvoice", tool: "purchase_invoices_get" },
|
|
173
173
|
{ operationId: "createPurchaseInvoice", tool: "purchase_invoices_create", write: true },
|
|
174
174
|
{ operationId: "cancelPurchaseInvoice", tool: "purchase_invoices_cancel", write: true, destructive: true },
|
|
175
|
+
{ operationId: "deletePurchaseInvoice", tool: "purchase_invoices_delete", write: true, destructive: true },
|
|
175
176
|
// ----- Despesas & Serviços -----
|
|
176
177
|
{ operationId: "listExpenses", tool: "expenses_list" },
|
|
177
178
|
{ operationId: "createExpense", tool: "expenses_create", write: true },
|
|
@@ -834,10 +835,32 @@ var SCHEMAS = {
|
|
|
834
835
|
description: { type: "string" },
|
|
835
836
|
amount: { type: "number" },
|
|
836
837
|
due_date: { type: "string", format: "date" },
|
|
837
|
-
payment_status: { type: "string", enum: ["pendente", "parcial", "pago", "vencido"], default: "pendente" }
|
|
838
|
+
payment_status: { type: "string", enum: ["pendente", "parcial", "pago", "vencido"], default: "pendente" },
|
|
839
|
+
boleto_barcode: { type: "string", description: "Linha digit\xE1vel / c\xF3digo de barras do boleto (s\xF3 d\xEDgitos)." },
|
|
840
|
+
pix_key: { type: "string" },
|
|
841
|
+
pix_copia_e_cola: { type: "string" }
|
|
838
842
|
}
|
|
839
843
|
}
|
|
840
844
|
},
|
|
845
|
+
items: {
|
|
846
|
+
type: "array",
|
|
847
|
+
description: "Itens da fatura. Se omitido, o valor de 'amount' vira um item \xFAnico \u2014 a fatura n\xE3o pode ficar sem item (o formul\xE1rio do app n\xE3o salva assim).",
|
|
848
|
+
items: {
|
|
849
|
+
type: "object",
|
|
850
|
+
required: ["name"],
|
|
851
|
+
properties: {
|
|
852
|
+
name: { type: "string" },
|
|
853
|
+
description: { type: "string" },
|
|
854
|
+
unit: { type: "string", default: "un" },
|
|
855
|
+
quantity: { type: "number", default: 1 },
|
|
856
|
+
unit_price: { type: "number" },
|
|
857
|
+
subtotal: { type: "number", description: "Calculado de quantity \xD7 unit_price quando omitido." }
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
title: { type: "string", description: "Descri\xE7\xE3o da fatura; vira o nome do item quando 'items' n\xE3o \xE9 informado." },
|
|
862
|
+
digitable_line: { type: "string", description: "Atalho: grava o boleto na parcela \xFAnica criada por 'due_date'." },
|
|
863
|
+
pix_key: { type: "string", description: "Atalho: grava a chave Pix na parcela \xFAnica." },
|
|
841
864
|
notes: { type: "string" }
|
|
842
865
|
}
|
|
843
866
|
},
|
|
@@ -2643,6 +2666,14 @@ var OPENAPI_SPEC = {
|
|
|
2643
2666
|
operationId: "getPurchaseInvoice",
|
|
2644
2667
|
security: [{ ApiKeyAuth: ["purchase_invoices:read"] }],
|
|
2645
2668
|
responses: { "200": { description: "Conta a pagar", content: { "application/json": { schema: { $ref: "#/components/schemas/PurchaseInvoice" } } } }, "404": errorResponse("Conta a pagar n\xE3o encontrada"), ...COMMON_ERRORS }
|
|
2669
|
+
},
|
|
2670
|
+
delete: {
|
|
2671
|
+
tags: ["Contas a Pagar"],
|
|
2672
|
+
summary: "Excluir conta a pagar",
|
|
2673
|
+
operationId: "deletePurchaseInvoice",
|
|
2674
|
+
description: "Exclus\xE3o definitiva. Recusa (409) contas com pagamento registrado ou parcela paga \u2014 nesses casos use o cancelamento, que preserva o hist\xF3rico.",
|
|
2675
|
+
security: [{ ApiKeyAuth: ["purchase_invoices:delete"] }],
|
|
2676
|
+
responses: { "204": { description: "Exclu\xEDda" }, "404": errorResponse("Conta a pagar n\xE3o encontrada"), "409": errorResponse("H\xE1 pagamento registrado ou registros vinculados que impedem a exclus\xE3o"), ...COMMON_ERRORS }
|
|
2646
2677
|
}
|
|
2647
2678
|
},
|
|
2648
2679
|
"/purchase-invoices/{id}/cancel": {
|
|
@@ -3233,7 +3264,8 @@ var API_MODULES = [
|
|
|
3233
3264
|
permissions: [
|
|
3234
3265
|
{ key: "read", label: "Listar e visualizar", description: "Consultar contas a pagar" },
|
|
3235
3266
|
{ key: "create", label: "Criar", description: "Lan\xE7ar contas a pagar" },
|
|
3236
|
-
{ key: "cancel", label: "Cancelar", description: "Cancelar contas a pagar" }
|
|
3267
|
+
{ key: "cancel", label: "Cancelar", description: "Cancelar contas a pagar" },
|
|
3268
|
+
{ key: "delete", label: "Excluir", description: "Excluir contas a pagar definitivamente" }
|
|
3237
3269
|
]
|
|
3238
3270
|
},
|
|
3239
3271
|
{
|
|
@@ -3358,7 +3390,9 @@ function describeOperation(operationId) {
|
|
|
3358
3390
|
const d = declaredByName.get(name);
|
|
3359
3391
|
properties[name] = {
|
|
3360
3392
|
...d?.schema ?? { type: "string" },
|
|
3361
|
-
description: d?.description ??
|
|
3393
|
+
description: d?.description ?? // Sem dizer que é UUID, o planner manda o identificador humano que tem em mãos
|
|
3394
|
+
// (o número da nota) e a chamada morre. Observado em 2026-08-24.
|
|
3395
|
+
`UUID do registro (${name}). Obtenha em uma listagem ou consulta \u2014 N\xC3O \xE9 n\xFAmero, c\xF3digo ou nome.`
|
|
3362
3396
|
};
|
|
3363
3397
|
required.push(name);
|
|
3364
3398
|
}
|
|
@@ -3399,6 +3433,7 @@ function describeOperation(operationId) {
|
|
|
3399
3433
|
scopes: extractScopes(operation),
|
|
3400
3434
|
inputSchema,
|
|
3401
3435
|
summary: operation.summary,
|
|
3436
|
+
description: operation.description,
|
|
3402
3437
|
description: operation.description
|
|
3403
3438
|
};
|
|
3404
3439
|
}
|
package/package.json
CHANGED