@comando.one/mcp-server 0.10.0 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.js +34 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -279,6 +279,7 @@ var MANIFEST = [
279
279
  // Módulos operacionais que tinham tela e nenhuma exposição (COBERTURA.md item 1).
280
280
  // Somente leitura — escrever em conciliação/cartão/DDA mexe em dinheiro e entra depois.
281
281
  { operationId: "updateInboxMessageStatus", tool: "inbox_messages_update_status", write: true },
282
+ { operationId: "resolveStatementEntry", tool: "reconciliation_resolve", write: true },
282
283
  { operationId: "deleteReconciliationMatch", tool: "reconciliation_unmatch", write: true, destructive: true },
283
284
  { operationId: "triageDdaBoleto", tool: "dda_boletos_triage", write: true },
284
285
  { operationId: "updateRecurringExpenseStatus", tool: "recurring_expenses_set_status", write: true },
@@ -1055,6 +1056,21 @@ var SCHEMAS = {
1055
1056
  created_at: { type: "string", format: "date-time" }
1056
1057
  }
1057
1058
  },
1059
+ ReconciliationMatch: {
1060
+ type: "object",
1061
+ properties: {
1062
+ id: { type: "string", format: "uuid" },
1063
+ company_id: { type: "string", format: "uuid" },
1064
+ reconciliation_period_id: { type: "string", format: "uuid" },
1065
+ bank_statement_entry_id: { type: "string", format: "uuid" },
1066
+ ledger_origin: { type: "string" },
1067
+ ledger_origin_id: { type: "string", format: "uuid" },
1068
+ match_type: { type: "string" },
1069
+ created_ledger_origin: { type: "string" },
1070
+ created_ledger_origin_id: { type: "string", format: "uuid" },
1071
+ matched_at: { type: "string", format: "date-time" }
1072
+ }
1073
+ },
1058
1074
  ReconciliationPeriod: {
1059
1075
  type: "object",
1060
1076
  properties: {
@@ -3537,6 +3553,24 @@ var OPENAPI_SPEC = {
3537
3553
  responses: { "200": { description: "Mensagem atualizada", content: { "application/json": { schema: { $ref: "#/components/schemas/InboxMessage" } } } }, "404": errorResponse("Mensagem n\xE3o encontrada"), ...COMMON_ERRORS }
3538
3554
  }
3539
3555
  },
3556
+ "/reconciliation/entries/{id}/resolve": {
3557
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string", format: "uuid" } }],
3558
+ post: {
3559
+ tags: ["Concilia\xE7\xE3o"],
3560
+ summary: "Conciliar um lan\xE7amento do extrato",
3561
+ operationId: "resolveStatementEntry",
3562
+ description: "Concilia pela mesma rotina que a tela usa. As recusas v\xEAm de l\xE1 e s\xE3o espec\xEDficas: per\xEDodo fechado, lan\xE7amento ignorado, lan\xE7amento j\xE1 conciliado, e a dire\xE7\xE3o do dinheiro por a\xE7\xE3o (recebimento s\xF3 resolve entrada; despesa e pagamento a fornecedor, s\xF3 sa\xEDda). Omitindo `period_id`, usa o per\xEDodo do lan\xE7amento ou o per\xEDodo ABERTO da conta. Criar REGRA de automa\xE7\xE3o junto n\xE3o \xE9 exposto: \xE9 outra decis\xE3o e fica no aplicativo.",
3563
+ security: [{ ApiKeyAuth: ["reconciliation:write"] }],
3564
+ requestBody: { required: true, content: { "application/json": { schema: { type: "object", required: ["action"], properties: {
3565
+ action: { type: "string", enum: ["match_existing", "create_payment_from_customer_charge", "create_supplier_payment_from_purchase_charge", "create_expense", "create_financial_movement"] },
3566
+ period_id: { type: "string", format: "uuid", description: "Opcional: o per\xEDodo. Omitido, resolve sozinho." },
3567
+ target_kind: { type: "string", enum: ["existing_payment", "existing_supplier_payment", "existing_expense", "existing_split_payout"], description: "S\xF3 em `match_existing`. O destino precisa existir nesta empresa." },
3568
+ target_id: { type: "string", format: "uuid", description: "S\xF3 em `match_existing`." },
3569
+ payload: { type: "object", description: "Campos da a\xE7\xE3o (ex.: `supplier_id` e `category_id` em `create_expense`; `charge_id` nas que partem de uma parcela).", additionalProperties: true }
3570
+ } } } } },
3571
+ responses: { "201": { description: "Conciliado", content: { "application/json": { schema: { $ref: "#/components/schemas/ReconciliationMatch" } } } }, "409": errorResponse("N\xE3o foi poss\xEDvel conciliar (j\xE1 conciliado, per\xEDodo fechado, dire\xE7\xE3o incompat\xEDvel)"), "404": errorResponse("Lan\xE7amento, per\xEDodo ou destino n\xE3o encontrado"), ...COMMON_ERRORS }
3572
+ }
3573
+ },
3540
3574
  "/reconciliation/matches/{id}": {
3541
3575
  parameters: [{ name: "id", in: "path", required: true, schema: { type: "string", format: "uuid" } }],
3542
3576
  delete: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comando.one/mcp-server",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Servidor MCP (Model Context Protocol) para a API pública do Comando1 — opere seu ERP por linguagem natural.",
5
5
  "type": "module",
6
6
  "license": "MIT",