MCP Go Generator Node.js
Generate Go microservices with a hexagonal architecture in a Node.js environment.
MCP Go Generator Node.js
Un MCP (Model Context Protocol) eficiente en Node.js para generar microservicios Go con arquitectura hexagonal.
🚀 Características
- ✅ Detección automática del proyecto saas-mt
- ✅ Generación de módulos siguiendo convenciones del proyecto
- ✅ Arquitectura hexagonal completa
- ✅ Repositorios PostgreSQL con patrón correcto
- ✅ Controladores HTTP con estructura estándar
- ✅ Manejo de errores con exception package
- ✅ Criterios de búsqueda usando sharedCriteria
📦 Instalación
cd mcp/mcp-go-generator-node
npm install
🔧 Configuración en Cursor
Agregar al archivo de configuración MCP de Cursor:
{
"mcpServers": {
"mcp-go-generator-node": {
"command": "node",
"args": ["/Users/hornosg/MyProjects/saas-mt/mcp/mcp-go-generator-node/src/index.js"],
"cwd": "/Users/hornosg/MyProjects/saas-mt"
}
}
}
🛠️ Comandos Disponibles
add_module_to_service
Agrega un nuevo módulo a un servicio Go existente.
Parámetros:
service_path: Ruta al servicio (ej: "saas-mt-pim-service")module_name: Nombre del módulo (ej: "attribute")entities: Lista de entidades para el módulo (opcional)
Ejemplo:
{
"service_path": "saas-mt-pim-service",
"module_name": "attribute",
"entities": ["attribute"]
}
show_project_status
Muestra el estado actual del proyecto y servicios disponibles.
create_go_service
Crear un nuevo microservicio Go completo (en desarrollo).
📁 Estructura Generada
src/
├── {module_name}/
│ ├── domain/
│ │ ├── entity/
│ │ │ └── {entity}.go
│ │ ├── port/
│ │ │ └── {entity}_repository.go
│ │ └── exception/
│ │ └── errors.go
│ ├── application/
│ │ ├── usecase/
│ │ ├── request/
│ │ └── response/
│ └── infrastructure/
│ ├── persistence/
│ │ └── repository/
│ │ └── {entity}_postgres_repository.go
│ └── controller/
│ └── http_handler.go
✨ Ventajas sobre la versión Python
- 🚀 Más rápido: Node.js es más eficiente para este tipo de operaciones
- 🔧 Más estable: Menos problemas de dependencias y configuración
- 📝 Mejor manejo de archivos: fs-extra proporciona operaciones más robustas
- 🎯 Detección más precisa: Mejor algoritmo de detección del proyecto
- 💾 Menor uso de memoria: Más eficiente en recursos
🔄 Migración desde Python
El MCP en Node.js reemplaza completamente al de Python. Simplemente:
- Instala las dependencias:
npm install - Actualiza la configuración de Cursor
- Reinicia Cursor
- ¡Listo para usar!
🐛 Debugging
Para ver logs del MCP:
npm run dev
📋 TODO
- Implementar
create_go_servicecompleto - Agregar generación de casos de uso
- Agregar generación de migraciones
- Agregar validaciones de requests
- Integración con Kong y Postman
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Foundry MCP Server
A lightweight MCP server for Solidity development using the Foundry toolchain (Forge, Cast, and Anvil).
Terraform MCP Server by Binadox
MCP server for Terraform — automatically validates, secures, and estimates cloud costs for Terraform configurations. Developed by Binadox, it integrates with any Model Context Protocol (MCP) client (e.g. Claude Desktop or other MCP-compatible AI assistants).
Test Code Generator
Generates Vitest test code from JSON specifications using boundary value analysis and equivalence partitioning.
Aseprite MCP
A server for programmatic interaction with Aseprite, enabling batch processing and automation for sprite creation and management.
Node.js Sandbox MCP Server
Run arbitrary JavaScript in an isolated Docker container with on-the-fly npm dependency installation.
MCP-Allure
Reads Allure test reports and returns them in LLM-friendly formats for better test analysis and insights.
Cloudflare MCP Server
An example MCP server designed for easy deployment on Cloudflare Workers, operating without authentication.
Trade-MCP
A modular trading automation project using the Zerodha Kite Connect API for tool-based and resource-based automation.
MCP Tool Poisoning Attacks
A Node.js project demonstrating MCP client and server interactions for tool poisoning attacks, requiring an Anthropic API key.
Jupyter Notebook MCP Server
Interact with Jupyter notebooks, allowing for code execution, cell manipulation, and notebook management.