Skip to main content
AntiGravity AntiGravity is supported now via Streamable HTTPS MCP transport.

Prerequisites

  • An AdsGateway account
  • AntiGravity access with MCP server configuration enabled
  • A connected Meta Ads account in AdsGateway for analytics workflows

Connect AdsGateway

Open AntiGravity MCP settings and add this entry to your mcp_config.json:
{
  "mcpServers": {
    "ads-gateway": {
      "serverUrl": "https://ads-gateway.onrender.com/mcp"
    }
  }
}
Keep the config minimal: only serverUrl is required. Do not add a custom oauth block.
Then:
  1. Enable the ads-gateway server.
  2. Complete browser authentication with AdsGateway.
  3. Return to AntiGravity and confirm the server is connected.

Copy/Paste Agent Prompt (MCP Install)

Use this if AntiGravity (or its assistant) supports in-chat MCP config help:
Install Ads Gateway MCP in AntiGravity for me.

Requirements:
1) Edit my AntiGravity MCP config and safely MERGE this server entry:
{
  "mcpServers": {
    "ads-gateway": {
      "serverUrl": "https://ads-gateway.onrender.com/mcp"
    }
  }
}
2) Do not remove or overwrite existing MCP servers.
3) Do not add custom oauth/callback fields.
4) Validate JSON syntax before saving.
5) Show me exactly what changed and how to re-enable/restart the MCP server.

Guardrails

  • Preserve existing MCP servers and settings.
  • Use exact URL: https://ads-gateway.onrender.com/mcp.
  • Keep OAuth default behavior.
  • Return a diff/summary of changes.

Use AdsGateway for Analytics

Use this sequence:
  1. Connect AdsGateway MCP in AntiGravity.
  2. Authenticate and connect Meta.
  3. Select the ad account you want to analyze.
  4. Run analytics/journey prompts.
Prompt categories:
  • Account management
    • List my Meta ad accounts
    • Which account am I currently using?
  • Performance insights
    • Give me an account summary for the last 7 days
    • Are there any anomalies in my ad performance?
  • Journey reports
    • Generate a campaign report for campaign <id> since 2026-02-01 until 2026-02-07
  • Creative analysis
    • Analyze the creative for ad <id>

Verify Analytics

Run:
List my Meta ad accounts
Then:
Give me my account performance summary for the last 7 days

Troubleshooting

  • invalid_token or repeated auth prompts:
    • disable server, remove entry, clear cookies for ads-gateway.onrender.com and adsgateway.io, re-add config, reconnect