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
相关服务器
Scout Monitoring MCP
赞助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
赞助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Makefile MCP Server
Exposes Makefile targets as callable tools for AI assistants.
BitFactory MCP
Simplifies and standardizes interactions with the BitFactory API.
Langfuse Prompt Management
Open-source tool for collaborative editing, versioning, evaluating, and releasing prompts.
API Tester
This MCP Server accepts swagger/postman documents as input. It then generates API & Load test scenarios, executes the tests and generates the execution report.
DocC MCP
Exposes Apple DocC documentation archives to AI agents, enabling real-time access to Swift documentation.
WordPress MCP Server
An MCP server for integrating with and managing WordPress sites.
vigile-mcp
Security scanner for MCP servers and agent skills — query trust scores, check for vulnerabilities, and search the Vigile trust registry
MCP Playground
A demonstration MCP server implementation in Go featuring real-time bidirectional file communication.
Claude Code Memory Server
A Neo4j-based MCP server providing persistent memory and contextual assistance for Claude Code.
Template MCP Server
A CLI template for quickly bootstrapping an MCP server with FastMCP, supporting both stdio and HTTP transport.