Serveur MCP

CIGAM

io.github.mcp-dir/cigam-mcp

Ce que fait ce MCP

Connects to CIGAM ERP data for retail and industrial operations, including sales, purchases, inventory, cash flow, payables, receivables, invoices, and management reports.

authenticate
MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.
Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'token': {'type': 'string'}}}
cigam_caixa
Lista fechamentos de caixa por período. Entradas, saídas, fundo de caixa, vendas líquidas/do dia, saldo.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'situacao': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}, 'numero_caixa': {'type': 'string'}}}
cigam_compras
Compras de uma loja por período (notas fiscais de entrada do tipo Compra). Retorna as NFs de compra + `resumo` com quantidade e valor total.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_consulta
Consulta genérica ao gateway do CIGAM (ObterCarga) para listas auxiliares (planos de conta, formas de pagamento, marcas, etc.). Informe o `guid` e os `params`.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['guid'], 'properties': {'guid': {'type': 'string'}, 'params': {'type': 'string'}, 'account': {'type': 'string'}}}
cigam_contas_pagar
Lista contas a pagar por período. Fornecedor, vencimento, plano de contas, nota fiscal/duplicata, valores, juros.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'situacao': {'type': 'string'}, 'duplicata': {'type': 'string'}, 'numero_nf': {'type': 'string'}, 'tipo_data': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}, 'cod_fornecedor': {'type': 'string'}, 'cod_plano_contas': {'type': 'string'}}}
cigam_contas_receber
Lista contas a receber por período. Cliente, vencimento, forma de pagamento, valores, parcelas, NSU/autorização de cartão.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'situacao': {'type': 'string'}, 'tipo_data': {'type': 'string'}, 'data_final': {'type': 'string'}, 'cod_cliente': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_devolucoes
Devoluções de uma loja por período (notas fiscais com movimento de devolução, entrada e saída). Retorna as NFs + `resumo` com quantidade e valor total.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_estoque
Posição atual de estoque (saldo por código de barras). Operação LENTA (gera um relatório, ~1 min); espera até `aguardar_segundos`, senão retorna um job_id (busque com cigam_job). Informe `codigo_barra` para o saldo de um produto específico, ou nada para um resumo (total de SKUs, SKUs com saldo, unidades) + amostra dos itens com saldo. Obs.: traz só o código de barras, sem nome de produto.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'codigo_barra': {'type': 'string'}, 'aguardar_segundos': {'type': 'number'}}}
cigam_fluxo_caixa
Fluxo de caixa projetado de uma loja por período: total a receber (contas a receber em aberto) vs total a pagar (contas a pagar), e o saldo projetado. Janela máxima de 60 dias.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_formas_pagamento
Mix de formas de recebimento de uma loja por período: total recebido por forma de pagamento, por bandeira de cartão e por adquirente (maquininha). Janela máxima de 60 dias.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_fornecedores
Lista/pesquisa fornecedores cadastrados. Razão social, nome fantasia, CNPJ, endereço, contato, situação.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'cnpj': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}}}
cigam_inadimplencia
Contas a receber vencidas e ainda em aberto (inadimplência). Cada item traz dias de atraso e valor em aberto, ordenados do mais atrasado. Default: vencimentos dos últimos 60 dias (janela máxima de 60 dias por consulta).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_job
Busca o resultado de um job assíncrono (ex.: relatório) pelo `job_id` retornado por outra tool. Espera inline até `aguardar_segundos`. Sem polling: só chame de novo se voltar status 'running'. Bulk support: accepts job_ids for batched execution.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['job_id'], 'properties': {'job_id': {'type': 'string'}, 'account': {'type': 'string'}, 'job_ids': {'type': 'array', 'items': {'type': 'string'}}, 'aguardar_segundos': {'type': 'number'}}}
cigam_lancamentos
Lista lançamentos financeiros por período. Competência, plano de contas, histórico, valor, forma de pagamento, tipo (débito/crédito).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'tipo_data': {'type': 'string'}, 'data_final': {'type': 'string'}, 'tipo_conta': {'type': 'string'}, 'data_inicial': {'type': 'string'}, 'cod_plano_contas': {'type': 'string'}}}
cigam_list_accounts
Lista as contas CIGAM conectadas a este install — id, label (instância/usuário).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}}}
cigam_listar_lojas
Lista as lojas/empresas que a conta enxerga (código, nome, CNPJ). Use o `loja` retornado nos demais filtros.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}}}
cigam_notas_fiscais
Lista notas fiscais de uma loja por período. Retorna número, série, destinatário, valor, status, chave NF-e, etc.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'status': {'type': 'array', 'items': {'type': 'number'}}, 'account': {'type': 'string'}, 'numero_nf': {'type': 'number'}, 'data_final': {'type': 'string'}, 'referencia': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_ranking_clientes
Ranking de clientes por valor vendido no período (agrupa as vendas por destinatário/CNPJ-CPF). Retorna os maiores compradores ordenados por valor.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'top': {'type': 'number'}, 'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_relatorio
Gera um relatório do CIGAM (operação LENTA, ~2 min, produz um arquivo Excel). Espera inline até `aguardar_segundos`; se não ficar pronto, retorna um `job_id` (busque depois com cigam_job, sem ficar repetindo). Retorna `arquivo_url` (link temporário do Excel). Ex. de report_id: REL_201 (Vendas por Período), REL_610 (posição atual de estoque). Bulk support: accepts report_ids for batched execution.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['report_id'], 'properties': {'account': {'type': 'string'}, 'filtros': {'type': 'string'}, 'report_id': {'type': 'string'}, 'report_ids': {'type': 'array', 'items': {'type': 'string'}}, 'aguardar_segundos': {'type': 'number'}}}
cigam_resultado
Resultado gerencial simplificado de uma loja por período: receita (vendas faturadas líquidas de devolução) menos despesas (lançamentos financeiros por plano de contas), com o detalhe das despesas por categoria.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_vendas
Vendas de uma loja por período (notas fiscais de saída do tipo Venda). Retorna as NFs de venda (data, destinatário, valor) + `resumo` com quantidade e valor total do período.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_vendas_por_dia
Série de vendas por dia no período (quantidade e valor por data) + resumo com total e ticket médio.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_vendas_resumo
Panorama do período numa loja: totais de vendas, compras e devoluções (quantidade e valor de cada). Um único resumo, sem listar as notas.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
connect
Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
marketplace
The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.
Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'number', 'default': 10}, 'query': {'type': 'string', 'default': ''}, 'action': {'enum': ['search', 'describe', 'install', 'uninstall', 'subscribe', 'cancel', 'resume', 'report_bug', 'request_mcp', 'list_tools', 'invoke', 'search_prompts', 'get_prompt', 'publish_prompt'], 'type': 'string', 'default': 'search'}, 'mcp_id': {'type': 'string', 'default': ''}, 'message': {'type': 'string', 'default': ''}, 'tool_id': {'type': 'string', 'default': ''}, 'arguments': {'type': 'string', 'default': '{}'}, 'immediate': {'type': 'boolean', 'default': False}, 'tier_slug': {'type': 'string', 'default': ''}, 'prompt_body': {'type': 'string', 'default': ''}, 'prompt_slug': {'type': 'string', 'default': ''}, 'prompt_tool': {'type': 'string', 'default': ''}, 'prompt_vars': {'type': 'string', 'default': '{}'}, 'conversation': {'type': 'string', 'default': '[]'}, 'prompt_title': {'type': 'string', 'default': ''}, 'request_name': {'type': 'string', 'default': ''}, 'cancel_reason': {'enum': ['too_expensive', 'missing_features', 'switched_service', 'unused', 'customer_service', 'too_complex', 'low_quality', 'other'], 'type': 'string'}, 'cancel_comment': {'type': 'string', 'default': ''}, 'prompt_targets': {'type': 'array', 'items': {'enum': ['claude', 'chatgpt', 'cursor', 'lovable'], 'type': 'string'}, 'default': []}, 'report_context': {'type': 'string', 'default': ''}, 'prompt_category': {'type': 'string', 'default': ''}, 'request_details': {'type': 'string', 'default': ''}, 'prompt_description': {'type': 'string', 'default': ''}}}
report_bug
Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['message'], 'properties': {'context': {'type': 'string', 'default': ''}, 'message': {'type': 'string'}, 'conversation': {'type': 'string', 'default': '[]'}}}
show_version
Show the current MCP platform and adapter versions.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
toolkit_info
Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
Ajouté
authenticate
17 September 2026 12:43
Ajouté
marketplace
17 September 2026 12:43
Ajouté
toolkit_info
17 September 2026 12:43
Ajouté
connect
17 September 2026 12:43
Ajouté
report_bug
17 September 2026 12:43
Ajouté
show_version
17 September 2026 12:43
Ajouté
cigam_consulta
17 September 2026 12:43
Ajouté
cigam_fornecedores
17 September 2026 12:43
Ajouté
cigam_lancamentos
17 September 2026 12:43
Ajouté
cigam_caixa
17 September 2026 12:43
Ajouté
cigam_contas_pagar
17 September 2026 12:43
Ajouté
cigam_contas_receber
17 September 2026 12:43
Ajouté
cigam_estoque
17 September 2026 12:43
Ajouté
cigam_job
17 September 2026 12:43
Ajouté
cigam_relatorio
17 September 2026 12:43
Ajouté
cigam_formas_pagamento
17 September 2026 12:43
Ajouté
cigam_resultado
17 September 2026 12:43
Ajouté
cigam_inadimplencia
17 September 2026 12:43
Ajouté
cigam_vendas_por_dia
17 September 2026 12:43
Ajouté
cigam_ranking_clientes
17 September 2026 12:43
Ajouté
cigam_fluxo_caixa
17 September 2026 12:43
Ajouté
cigam_vendas_resumo
17 September 2026 12:43
Ajouté
cigam_devolucoes
17 September 2026 12:43
Ajouté
cigam_compras
17 September 2026 12:43
Ajouté
cigam_vendas
17 September 2026 12:43
Ajouté
cigam_notas_fiscais
17 September 2026 12:43
Ajouté
cigam_listar_lojas
17 September 2026 12:43
Ajouté
cigam_list_accounts
17 September 2026 12:43