# GoCode MCP server

> A terminal-based AI coding agent that assists with code generation, debugging, refactoring, and command execution through a native Go CLI.

- Repository: https://github.com/mevarx/GoCode
- Page: https://hostedmcp.org/servers/mevarx/gocode
- Transport: —
- Stars: 6
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GEMINI_API_KEY` | no | no |  |
| `MY_GATEWAY_KEY` | no | no |  |

## Tools (5)

- `file_read`
- `code_search`
- `file_write`
- `file_patch`
- `shell_exec`

## FAQ

### What models can I use with GoCode?

You can use over 20 built-in provider gateways including OpenAI, Anthropic, Google Gemini, and Ollama, or any OpenAI-compatible endpoint.

### How does GoCode handle security and file changes?

GoCode uses a human-in-the-loop approach where you must review and approve file writes and shell commands before they execute.

### Can I use GoCode offline?

Yes, GoCode supports offline workflows if you have a local model and a backend like Ollama or llama.cpp installed and running.

### Does GoCode support MCP?

Yes, you can extend GoCode's capabilities by adding any MCP server over stdio.
