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
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Tox Testing
Executes tox commands to run Python tests with pytest. Requires the TOX_APP_DIR environment variable to be set.
NovaCV
An MCP server for accessing the NovaCV resume service API.
Model Context Protocol servers
A collection of reference implementations for the Model Context Protocol (MCP), demonstrating secure and controlled access to tools and data sources for Large Language Models (LLMs).
MockLoop
An AI-native API testing platform for generating scenarios, executing tests, and analyzing results.
Agent Skill Loader
MCP server to dynamically load Claude Code skills into AI agents
sep-mpc-server
A server for processing semantic embeddings, requiring external data files mounted via a Docker volume.
Kubeshark
MCP access to cluster-wide L4 and L7 network traffic, packets, APIs, and complete payloads.
OTP MCP Server
Generates secure One-Time Passwords (OTP) using TOTP and HOTP algorithms.
SatGate
Open-source API gateway that adds budget enforcement, cost attribution, and monetization to AI agent API calls. MCP-aware with per-tool cost tracking, macaroon-based bearer tokens, L402 Lightning micropayments, and enterprise budget control (Fiat402). The economic firewall for the agent economy.
Prometheus MCP
Expose Prometheus monitoring tools to an LLM for querying and analysis.