mcp-10-logs¶
Camada: Operações & Infraestrutura
Ferramentas: 5
Pacote: packages/mcp-10-logs
logs_search¶
Busca por termo/regex no log. Retorna linhas com numero.
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
file |
string | não | |
text |
string | não | |
query |
string | sim | termo ou regex |
limit |
number | não | default 50 |
logs_tail¶
Ultimas N linhas do log.
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
file |
string | não | |
text |
string | não | |
n |
number | não | default 50 |
logs_stats¶
Contagem por nivel (ERROR/WARN/INFO/...) e total de linhas.
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
file |
string | não | |
text |
string | não |
logs_anomalies¶
Mensagens de erro mais repetidas e taxa de erro (sinal de anomalia).
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
file |
string | não | |
text |
string | não | |
top |
number | não | default 10 |
logs_correlate¶
Agrupa linhas por uma chave capturada via regex (ex.: requestId).
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
file |
string | não | |
text |
string | não | |
pattern |
string | sim | regex com 1 grupo de captura, ex.: req_id=(\w+) |