Codex CLI Setup
Configure gopls-mcp with Codex CLI.
Setup gopls-mcp for Your Project
Section titled “Setup gopls-mcp for Your Project”Ensure codex-cli is installed, and run command below to add mcp server.
codex mcp add gopls-mcp -- gopls-mcpYou will see the similar log below if succeed.
Added global MCP server 'gopls-mcp'.Configure Project Instructions (AGENTS.md)
Section titled “Configure Project Instructions (AGENTS.md)”Codex 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 >> AGENTS.mdVerify gopls-mcp
Section titled “Verify gopls-mcp”Inside codex-cli, run mcp list command to verify gopls-mcp is available.
$ codex mcp listName Command Args Env Cwd Status Authgopls-mcp gopls-mcp - - - enabled UnsupportedIf the tool is successfully added, you will see gopls-mcp in the server list.
Enter codex and run command /mcp:
/mcp
🔌 MCP Tools
• gopls-mcp • Status: enabled • Auth: Unsupported • Command: gopls-mcp ...