Gemini CLI Setup
Configure gopls-mcp with Gemini CLI.
Setup gopls-mcp for Your Project
Section titled “Setup gopls-mcp for Your Project”Ensure gemini-cli is installed, and run command below to add mcp server.
gemini mcp add gopls-mcp gopls-mcpYou will see the similar log below if succeed.
MCP server "gopls-mcp" added to project settings. (stdio)Configure Project Instructions (GEMINI.md)
Section titled “Configure Project Instructions (GEMINI.md)”Gemini needs specific instructions to know when to use the semantic tools. Run this command in your project root to add the rules:
curl -sL https://gopls-mcp.org/gopls-mcp.prompt >> GEMINI.mdVerify gopls-mcp
Section titled “Verify gopls-mcp”Inside gemini-cli, run mcp list command to verify gopls-mcp is available.
$ gemini mcp listIf the tool is successfully added, you will see gopls-mcp in the server list.
Configured MCP servers:
✓ gopls-mcp: gopls-mcp (stdio) - Connected