Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,48 @@ Edit `%APPDATA%\Claude\claude_desktop_config.json`:
}
```

## Configuration for Cursor

1. Install mcp-zero:

```bash
go install github.com/zeromicro/mcp-zero@latest
```

2. In Cursor: **Cursor Settings** → **Tools & MCP** → **New MCP Server**

3. Add the following configuration (replace paths with your own Go bin path):

### macOS / Linux

```json
{
"mcpServers": {
"mcp-zero": {
"command": "/Users/yourname/go/bin/mcp-zero",
"env": {
"GOCTL_PATH": "/Users/yourname/go/bin/goctl"
}
}
}
}
```

### Windows

```json
{
"mcpServers": {
"mcp-zero": {
"command": "C:\\Users\\30454\\go\\bin\\mcp-zero.exe",
"env": {
"GOCTL_PATH": "C:\\Users\\30454\\go\\bin\\goctl.exe"
}
}
}
}
```

## Available Tools

### 1. create_api_service
Expand Down
42 changes: 42 additions & 0 deletions readme_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,48 @@ go build -o go-zero-mcp main.go
}
```

## 配置 Cursor

1. 安装 mcp-zero:

```bash
go install github.com/zeromicro/mcp-zero@latest
```

2. 在 Cursor 中:**Cursor Settings** → **Tools & MCP** → **New MCP Server**

3. 添加如下配置(请将路径改为你自己的 Go bin 路径):

### macOS / Linux

```json
{
"mcpServers": {
"mcp-zero": {
"command": "/Users/yourname/go/bin/mcp-zero",
"env": {
"GOCTL_PATH": "/Users/yourname/go/bin/goctl"
}
}
}
}
```

### Windows

```json
{
"mcpServers": {
"mcp-zero": {
"command": "C:\\Users\\30454\\go\\bin\\mcp-zero.exe",
"env": {
"GOCTL_PATH": "C:\\Users\\30454\\go\\bin\\goctl.exe"
}
}
}
}
```

## 可用工具

### 1. create_api_service
Expand Down