A Go-focused Model Context Protocol (MCP) server that provides idiomatic Go code generation, style guidelines, and best practices. This tool helps Language Models understand and generate high-quality Go code following established patterns and conventions.
Note: This project is under active development. The following features are currently being implemented:
- Go-specific code pattern recognition and generation
- Idiomatic Go code style enforcement
- Go project structure templates
The project follows clean architecture principles and is designed for extensibility.
The Model Context Protocol (MCP) is implemented using the github.com/metoro-io/mcp-golang library. The server:
- Uses stdio transport for communication
- Supports graceful shutdown
- Handles concurrent operations using errgroups
- Provides Go-specific code generation tools
go install github.com/ksysoev/mcp-go-tools/cmd/mcp-go-tools@latest- Go-specific code generation and style guidelines
- Command-line interface built with Cobra
- Flexible configuration using YAML/JSON files
- Structured logging with slog
- File output support with --log-file flag (writes to file instead of stdout)
- JSON and text formats
- Configurable log levels
- Debug logging for request tracking
- Server management commands
- Signal handling for graceful shutdown