Skip to main content
Glama
Ivan-Madera

midd-nestjs-hexagonal-architecture-mcp

by Ivan-Madera

install_agentic_kit

Installs or updates agent files, the middleware spec template, and the AGENTS.md MCP section in a NestJS repo so it is ready to create services with this MCP; reruns upgrade the kit.

Instructions

Instala (o actualiza) en el repo consumidor el punto de entrada del MCP: los agentes middleware-generator (el unico que se selecciona), middleware-gen-worker y middleware-auditor (.kiro/agents), la plantilla del middleware.spec.yaml (agentic/templates) y la sección del MCP en AGENTS.md (entre marcadores BEGIN/END; el resto del archivo no se toca). Idempotente: volver a correrla actualiza a la versión del MCP. Un archivo con el mismo nombre que no instaló este MCP se respeta salvo overwrite=true. Úsala cuando el usuario quiera dejar el repo listo para crear servicios con el MCP.

Input Schema

NameRequiredDescriptionDefault
modelsNoSobrescribe el modelo de cada agente. Los defaults son los del kit de lib-midd-mcp-architecture. Como volver a instalar reemplaza los archivos, usa este parametro para cambiar un modelo en vez de editar el .md a mano.
overwriteNoSi false (default), un archivo con el mismo nombre que NO fue instalado por este MCP se respeta y se reporta. Si true, lo reemplaza.
projectRootYesRuta absoluta de la raíz del servicio NestJS destino donde se escriben los archivos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden and does well: it discloses idempotency (re-running updates to the MCP version), non-destructive default behavior (files not installed by this MCP are respected unless overwrite=true), and marker-scoped editing of AGENTS.md so the rest of the file is untouched. It omits any mention of permissions or what the call reports back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Information is front-loaded: what gets installed first, then the idempotency/overwrite contract, then the usage trigger. It is dense but nearly every clause carries distinct operational detail; only the file enumeration is slightly long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with no output schema, the description covers target files, safety behavior, and the select-the-orchestrator detail that matters when calling it. Missing only return/report information and permission expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters including the models defaults and the overwrite semantics. The description reinforces the overwrite rule consistently with the schema but adds no extra syntax or constraint detail beyond it, making the baseline of 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (installs/updates) plus an enumerated resource list (middleware agents, spec template, AGENTS.md section), leaving no ambiguity about what gets written. It does not explicitly name a sibling to distinguish against, but the scope (repo bootstrap) is clearly different from scaffolding-oriented siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The closing sentence gives a clear trigger: use it when the user wants the repo ready to create services with the MCP. It also implies a precondition via 'repo consumidor'. No explicit when-not or named alternative (e.g., scaffold_service) is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.