Gemini CLI

Add Marketing OS to the Gemini CLI with a one-key httpUrl entry in settings.json.

~/.gemini/settings.json:

json
{
  "mcpServers": {
    "marketing-os": {
      "httpUrl": "https://marketing-api.keyescode.com/mcp"
    }
  }
}

Note the key is httpUrl, not url — Gemini CLI uses that to select the Streamable HTTP transport. The first tool call opens the browser for consent.

Connect with an API key

json
{
  "mcpServers": {
    "marketing-os": {
      "httpUrl": "https://marketing-api.keyescode.com/mcp",
      "headers": { "Authorization": "Bearer mos_xxxxxxxx" }
    }
  }
}

First prompts

  • "Which of my Marketing OS campaigns is losing money, and by how much?"
  • "What are my current spend caps?"

If something goes wrong

See troubleshooting.


Something wrong or missing on this page? Tell us and we will fix it.