📓 memotty

Gemini CLIでserena MCP Serverを使う

TL;DR #

グローバルであれば ~/.gemini/settings.json, プロジェクトごとであれば <project>/.gemini/settings.jsonmcpServersの設定を追記する。

実際の settings.json が以下。

{
  "selectedAuthType": "gemini-api-key",
  "theme": "Ayu Light",
  "mcpServers": {
    "playwright": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--config",
        "/home/motty93/playwright-config.json"
      ],
      "env": {}
    },
    "github": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    },
    "serena": {
      "type": "sse",
      "url": "http://localhost:9121/sse"
    }
  }
}

終わり #

claude codeのmcp serverの設定と全く同じなので超簡単。