Serveur MCP

Mercos

io.github.mcp-dir/mercos-mcp

Ce que fait ce MCP

Connects to Mercos to manage customers, products, orders, inventory, price tables, payment terms, commissions, users, and logistics records.

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'}}}
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': ''}}}
mercos_ajustar_estoque
Ajusta o estoque de produtos em lote (POST /v1/ajustar_estoque_em_lote). `data` = array de ajustes.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['data'], 'properties': {'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_create_cliente
Inclui cliente(s) (POST /v1/clientes). `data` = objeto ou array de clientes.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['data'], 'properties': {'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_create_pedido
Inclui um pedido (POST /v2/pedidos). `data` com cliente, itens, condição de pagamento etc.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['data'], 'properties': {'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_create_produto
Inclui produto(s) (POST /v1/produtos). `data` = objeto ou array de produtos.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['data'], 'properties': {'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_create_tabela_preco
Inclui uma tabela de preço (POST /v1/tabelas_preco). `data` com os campos da tabela.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['data'], 'properties': {'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_list_accounts
Lista as empresas (CompanyToken) Mercos conectadas a este install, com id e label.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}}}
mercos_list_categorias
Lista categorias de produtos (GET /v1/categorias).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_clientes
Lista clientes (GET /v1/clientes). Use `alterado_apos` pra incremental.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_comissoes
Lista comissões (GET /v1/comissoes). Filtre por colaborador_id ou pedido_id via `filters`.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_condicoes_pagamento
Lista condições de pagamento (GET /v1/condicoes_pagamento).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_pedidos
Lista pedidos (GET /v2/pedidos). Use `alterado_apos` pra incremental. (Pedidos vivem na v2.)
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_produtos
Lista produtos cadastrados (GET /v1/produtos). Use `alterado_apos` pra incremental.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_tabelas_preco
Lista tabelas de preço (GET /v1/tabelas_preco).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_titulos
Lista títulos financeiros (GET /v1/titulos).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_transportadoras
Lista transportadoras (GET /v1/transportadoras).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_list_usuarios
Lista vendedores/usuários (GET /v1/usuarios).
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}, 'filters': {'type': 'string'}, 'alterado_apos': {'type': 'string'}}}
mercos_update_cliente
Altera um cliente (PUT /v1/clientes/{id}). `id` + `data` com os campos a alterar. Bulk support: accepts ids for batched execution.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id', 'data'], 'properties': {'id': {'anyOf': [{'type': 'string'}, {'type': 'number'}]}, 'ids': {'type': 'array', 'items': {'anyOf': [{'type': 'string'}, {'type': 'number'}]}}, 'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_update_pedido
Altera um pedido (PUT /v2/pedidos/{id}). `id` + `data` com os campos a alterar. Bulk support: accepts ids for batched execution.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id', 'data'], 'properties': {'id': {'anyOf': [{'type': 'string'}, {'type': 'number'}]}, 'ids': {'type': 'array', 'items': {'anyOf': [{'type': 'string'}, {'type': 'number'}]}}, 'data': {'type': 'string'}, 'account': {'type': 'string'}}}
mercos_update_produto
Altera um produto (PUT /v1/produtos/{id}). `id` + `data` com os campos a alterar. Bulk support: accepts ids for batched execution.
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id', 'data'], 'properties': {'id': {'anyOf': [{'type': 'string'}, {'type': 'number'}]}, 'ids': {'type': 'array', 'items': {'anyOf': [{'type': 'string'}, {'type': 'number'}]}}, 'data': {'type': 'string'}, 'account': {'type': 'string'}}}
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:44
Ajouté
marketplace
17 September 2026 12:44
Ajouté
toolkit_info
17 September 2026 12:44
Ajouté
connect
17 September 2026 12:44
Ajouté
report_bug
17 September 2026 12:44
Ajouté
show_version
17 September 2026 12:44
Ajouté
mercos_create_tabela_preco
17 September 2026 12:44
Ajouté
mercos_ajustar_estoque
17 September 2026 12:44
Ajouté
mercos_update_pedido
17 September 2026 12:44
Ajouté
mercos_create_pedido
17 September 2026 12:44
Ajouté
mercos_update_produto
17 September 2026 12:44
Ajouté
mercos_create_produto
17 September 2026 12:44
Ajouté
mercos_update_cliente
17 September 2026 12:44
Ajouté
mercos_create_cliente
17 September 2026 12:44
Ajouté
mercos_list_titulos
17 September 2026 12:44
Ajouté
mercos_list_comissoes
17 September 2026 12:44
Ajouté
mercos_list_usuarios
17 September 2026 12:44
Ajouté
mercos_list_transportadoras
17 September 2026 12:44
Ajouté
mercos_list_condicoes_pagamento
17 September 2026 12:44
Ajouté
mercos_list_categorias
17 September 2026 12:44
Ajouté
mercos_list_tabelas_preco
17 September 2026 12:44
Ajouté
mercos_list_pedidos
17 September 2026 12:44
Ajouté
mercos_list_clientes
17 September 2026 12:44
Ajouté
mercos_list_produtos
17 September 2026 12:44
Ajouté
mercos_list_accounts
17 September 2026 12:44