
zeromicro/mcp-zero
Database management이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
zeromicro/mcp-zero는 MCP 서버 후보가 https://github.com/zeromicro/mcp-zero.에서 가져온
개요
zeromicro/mcp-zero는 MCP 서버 후보가 https://github.com/zeromicro/mcp-zero.에서 가져온
개요(AI 번역)
개발자가 신속하게 비계를 돕는 모델 Context Protocol (MCP) 도구로, go-zero 프로젝트를 쉽게 생성합니다.
빠른 시작
새로운 mcp-zero? 시작하기에 단계별 튜토리얼에 대한 빠른 시작 가이드를 확인하십시오!
Quickstart 덮개:
- 설치 및 구성
- 첫 번째 API 서비스 만들기
- 일반적인 사용 사례 및 워크플로우
- Claude 데스크탑과의 통합
특징
핵심 서비스 발생
- Create API 서비스: customizable 항구 및 작풍을 가진 새로운 REST API 서비스를 생성하십시오
- ** RPC 서비스 **: protobuf 정의에서 gRPC 서비스를 생성
- Generate API Code: API 사양 파일을 GO 코드로 변환
- Generate 모델: 다양한 소스에서 데이터베이스 모델을 생성 (MySQL, PostgreSQL, MongoDB, DDL)
- Create API Specs: 샘플 API 사양 파일 생성
고급 기능
- **Analyze 프로젝트 **: 기존의 go-zero 프로젝트를 분석하여 구조 및 의존성을 이해합니다.
- ** 관리 **: 적절한 구조 검증을 가진 구성 파일 생성
- Generate Templates: 미들웨어, 오류 핸들러 및 배포 템플릿 만들기
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Go-Zero MCP Tool
A Model Context Protocol (MCP) tool that helps developers quickly scaffold and generate go-zero projects with ease.
Quick Start
New to mcp-zero? Check out our Quick Start Guide for a step-by-step tutorial on getting started!
The quickstart covers:
- Installation and configuration
- Creating your first API service
- Common use cases and workflows
- Integration with Claude Desktop
Features
Core Service Generation
- Create API Services: Generate new REST API services with customizable ports and styles
- Create RPC Services: Generate gRPC services from protobuf definitions
- Generate API Code: Convert API specification files to Go code
- Generate Models: Create database models from various sources (MySQL, PostgreSQL, MongoDB, DDL)
- Create API Specs: Generate sample API specification files
Advanced Features
- Analyze Projects: Analyze existing go-zero projects to understand structure and dependencies
- Manage Configuration: Generate configuration files with proper structure validation
- Generate Templates: Create middleware, error handlers, and deployment templates
- Query Documentation: Access go-zero concepts and migration guides from other frameworks
- Validate Input: Comprehensive validation for API specs, protobuf definitions, and configurations
Prerequisites
-
Go (1.19 or later)
-
go-zero CLI (goctl): Install with
go install github.com/zeromicro/go-zero/tools/goctl@latest -
Claude Desktop (or other MCP-compatible client)
For detailed installation instructions, see the Quick Start Guide.
Installation
-
Create a new directory for your MCP tool:
mkdir go-zero-mcp && cd go-zero-mcp -
Initialize Go module:
go mod init go-zero-mcp -
Install dependencies:
go get github.com/modelcontextprotocol/go-sdk go get gopkg.in/yaml.v3 -
Save the main tool code as
main.go -
Build the tool:
go build -o go-zero-mcp main.go
Configuration for Claude Desktop
Add this configuration to your Claude Desktop MCP settings:
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mcp-zero": {
"command": "/path/to/your/mcp-zero",
"env": {
"GOCTL_PATH": "/Users/yourname/go/bin/goctl"
}
}
}
}
Linux
Edit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mcp-zero": {
"command": "/path/to/your/mcp-zero",
"env": {
"GOCTL_PATH": "/usr/local/bin/goctl"
}
}
}
}
Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"mcp-zero": {
"command": "C:\\path\\to\\your\\mcp-zero.exe",
"env": {
"GOCTL_PATH": "C:\\Go\\bin\\goctl.exe"
}
}
}
}
Available Tools
1. create_api_service
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"mcp-zero": {
"command": "/path/to/your/mcp-zero",
"env": {
"GOCTL_PATH": "/Users/yourname/go/bin/goctl"
}
}
}
}