byaml-mcp
v0.1.0byaml-mcp v2 (ByaML-004) — BYaML Architecture Graph MCP para agentes (Kiro/Cursor/Claude).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
graph_from_evaluation
Construye un Architecture Graph v0.4 desde una evaluación SOFE (findings). Args: findings: lista de findings (con resource_id/resource_type/severity/policy). cost_map: opcional, {resource_id: monthly_cost}. eval_id: id de la evaluación. account: cuenta/entorno (ej. 'aws-acc-123').
| Parameter | Type | Description |
|---|---|---|
findings * | array | |
account | ||
cost_map | ||
eval_id |
graph_from_terraform
Convierte un `terraform show -json` plan en un Architecture Graph v0.4. Args: plan_path: ruta al tfplan JSON (`terraform show -json plan.tfplan > plan.json`). account: opcional, cuenta/entorno.
| Parameter | Type | Description |
|---|---|---|
plan_path * | string | |
account |
graph_from_account
Convierte un perfil AWS (scan) en un Architecture Graph v0.4. NOTA: por ahora con `sample: true` devuelve un grafo de ejemplo (pour no requerir credenciales AWS en el agente). Con `sample: false` espera un scan previo (SOFE).
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
sample | boolean |
validate_graph
Valida un Architecture Graph v0.4 y devuelve errors/warnings (byaml.validate).
| Parameter | Type | Description |
|---|---|---|
graph * | object |
blast_radius
Downstream impact de un nodo: qué se cae si falla (nan-graph blast_radius). Args: node_id: id del nodo origen (ej. 'api'). graph: graph JSON v0.4 (output de graph_from_*). max_depth: profundidad máxima (None = infinito). rel_types: filtrar a estos relType (ej. ['invokes']).
| Parameter | Type | Description |
|---|---|---|
graph * | object | |
node_id * | string | |
max_depth | ||
rel_types |
cost_summary
Resumen de costo del grafo. Args: graph: graph JSON v0.4. by: agrupar por 'layer' | 'type' | 'owner'.
| Parameter | Type | Description |
|---|---|---|
graph * | object | |
by | string |
remediation_plan
Genera un plan de remediación (pasos IaC con snippet terraform) para findings. Args: findings: lista JSON de findings (ej. [{"resource":"i-0abc","type":"no-idle-ec2"}]). graph: opcional, graph v0.4 para contexto.
| Parameter | Type | Description |
|---|---|---|
findings * | array | |
graph |
schema_latest
Versión vigente del schema + resumen del catálogo (fetch schema.byaml.org). Devuelve latest + count de tipos del catalog v0.4.