Skip to content

Gemini CLI MCP for Web Monitoring: AyeWatch in settings.json

Add AyeWatch to Gemini CLI's settings.json with httpUrl and your API key, or to Antigravity CLI's mcp_config.json with serverUrl. Configs, a first prompt, tool filters and limits.

By AyeWatch Team4 min read

Short answer: To monitor websites from Gemini CLI, add AyeWatch under mcpServers in ~/.gemini/settings.json with httpUrl set to https://ayewatch.ai/api/mcp and an Authorization header holding your API key. Gemini can then list, create and pause monitors. Google stopped serving Gemini CLI to individual plans in June 2026; Antigravity CLI uses serverUrl instead.

Who can still run Gemini CLI

Google stopped serving Gemini CLI to individuals on June 18, 2026. It no longer runs on Google AI Pro or Ultra subscriptions or on free Gemini Code Assist for individuals. It still works with a paid Gemini API key, a Gemini Enterprise Agent Platform API key, and Gemini Code Assist Standard or Enterprise, and the code stays open source under Apache 2.0.

If you sign in one of those ways, the settings below apply. If you moved to Antigravity CLI, skip to its section, because the file name and the URL key are different.

The settings.json entry

Gemini CLI reads MCP servers from the mcpServers key in ~/.gemini/settings.json for your user, or .gemini/settings.json in a project. For a Streamable HTTP server such as AyeWatch, the URL goes in httpUrl. In Gemini CLI the plain url key means SSE, which AyeWatch does not offer, so an entry with url will not work.

{
  "mcpServers": {
    "ayewatch": {
      "httpUrl": "https://ayewatch.ai/api/mcp",
      "headers": { "Authorization": "Bearer ${AYEWATCH_API_KEY}" },
      "includeTools": ["list_topics", "get_topic", "create_topic", "update_topic"],
      "trust": false
    }
  }
}

Gemini CLI expands $VAR and ${VAR} in settings.json, so the file holds a reference and your shell holds the key. includeTools is an allowlist: the entry above leaves out delete_topic and the three webhook tools, so Gemini can't call them. excludeTools does the opposite and wins when a tool appears in both. trust is false by default, which keeps the confirmation before each tool call. Leave it that way, because create and update calls change what you spend.

You can also add the server from the shell:

gemini mcp add --transport http --scope user \
  --header "Authorization: Bearer aw_live_YOUR_API_KEY" \
  ayewatch https://ayewatch.ai/api/mcp

The command's default scope is project, which writes the key into .gemini/settings.json inside the repository. Use --scope user unless you mean to share the file, and then put a variable reference in it instead of a key. Type /mcp inside Gemini CLI to see whether the server connected and which tools it found.

First prompts

First prompt: List my AyeWatch monitors and tell me which ones are paused.

That calls list_topics and changes nothing. Then try a real monitor.

Next prompt: Create a paused AyeWatch monitor for https://brightkiln.example/status. Alert me when an incident is posted, updated or resolved. Check every 6 hours.

{
  "name": "https://brightkiln.example/status",
  "description": "Alert me when an incident is posted, updated or resolved. Ignore scheduled maintenance notes.",
  "interval": "6_hours",
  "is_active": false
}

Gemini shows the call and waits for you to confirm it. Read the interval and is_active before you allow it, then ask Gemini to turn the monitor on. Every 6 hours is 4 checks a day, so this monitor uses 120 credits in a 30-day month at 1 credit a check. If your plan doesn't allow an interval, the tool returns a 400 saying so.

Antigravity CLI

Antigravity CLI, started with agy, reads MCP servers from ~/.gemini/config/mcp_config.json for all workspaces and .agents/mcp_config.json inside one workspace. A remote server uses serverUrl and headers. Its docs say remote servers must use Streamable HTTP and that httpUrl and legacy SSE are not supported, so copying the Gemini CLI entry as is will fail.

{
  "mcpServers": {
    "ayewatch": {
      "serverUrl": "https://ayewatch.ai/api/mcp",
      "headers": { "Authorization": "Bearer aw_live_YOUR_API_KEY" }
    }
  }
}

Type /mcp to open the MCP manager and check the connection. This example writes the key in plain text, so keep the file out of version control. The prompts above work the same way once the server shows as connected.

Limits

  • Sign-in comes first. If Gemini CLI itself won't start on your Google account, the MCP entry can't help. Use an API key sign-in or Antigravity CLI.
  • trust: true skips every confirmation. With it, Gemini can create monitors and change intervals without asking.
  • No alert history. The tools manage monitors and the webhook. Alerts arrive by email, push in the AyeWatch app, Slack or the webhook.
  • Public pages only. AyeWatch can't sign in to a site. Some sites block automated readers, and the first check shows it.
  • Shared rate limit. MCP and the REST API share 120 requests a minute per key.

AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial.

Set it up in six steps

  1. Create an API key in API access settings.
  2. Confirm Gemini CLI starts with your sign-in: a paid Gemini API key, an Enterprise Agent Platform key, or Code Assist Standard or Enterprise.
  3. Add the ayewatch entry with httpUrl to ~/.gemini/settings.json, or run gemini mcp add with --scope user.
  4. If the entry uses ${AYEWATCH_API_KEY}, set that variable in the shell that starts Gemini CLI.
  5. Type /mcp and check that AyeWatch is connected with its tools listed.
  6. Ask Gemini to list your monitors, then create one paused monitor, confirm the call and turn it on.
Gemini CLIAntigravity CLI
User file~/.gemini/settings.json~/.gemini/config/mcp_config.json
Project file.gemini/settings.json.agents/mcp_config.json
URL key for AyeWatchhttpUrlserverUrl
Header keyheadersheaders
Add from the shellgemini mcp add --transport httpEdit the file
Check the connection/mcp/mcp (MCP manager)
Limit toolsincludeTools, excludeToolsNot covered here

Start a monitor in under a minute

Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.

Try it free for 7 days

The bottom line

Use httpUrl in Gemini CLI and serverUrl in Antigravity CLI, with the same Authorization header in both. Keep delete_topic out of the allowlist and start with one paused monitor.

FAQ

Does Gemini CLI use url or httpUrl for a remote MCP server?

httpUrl for Streamable HTTP, which is what AyeWatch uses. In Gemini CLI, url means SSE, and AyeWatch does not offer SSE.

Can I still use Gemini CLI with a Google AI Pro subscription?

No. Google stopped serving Gemini CLI to Google AI Pro and Ultra and to free Code Assist for individuals on June 18, 2026. Paid API keys and Code Assist Standard or Enterprise still work.

How do I add AyeWatch to Antigravity CLI?

Add an entry to ~/.gemini/config/mcp_config.json with serverUrl set to https://ayewatch.ai/api/mcp and an Authorization header. Antigravity does not accept httpUrl.

How do I stop Gemini from deleting my monitors?

List only the tools you want in includeTools and leave out delete_topic. Keep trust at false so Gemini asks before each tool call.

What does a status page monitor cost?

A web page monitor costs 1 credit a check. Every 6 hours is 120 checks in a 30-day month, so 120 of the 500 credits on AyeWatch Pro.

gemini cli mcp web monitoringgemini cli settings.json mcpserversgemini mcp add http headerantigravity cli mcp configayewatch gemini cli

Related articles