Deterministic Go code editing for LLM agents. AST-based CLI and MCP server that replaces Edit, Read, and Grep on .go files for Claude Code, Cursor, and any agent.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"go-surgeon": {
"command": "go",
"args": [
"run",
"github.com/JLugagne/go-surgeon@latest"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add go-surgeon go run github.com/JLugagne/go-surgeon@latest
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"go-surgeon": {
"command": "go",
"args": [
"run",
"github.com/JLugagne/go-surgeon@latest"
]
}
}
}
📋 Copy