Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mcp-server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ def integrate_gravity_ads(framework: str = "fastapi", format: str = "card") -> s

Important:
- ALWAYS extract and pass site theme tokens. Never generate code without them.
- Generated code defaults to test mode (`production=False`). Remind the publisher
to set `production: true` (JS) or `production=True` (Python) when ready to serve
real ads. Without this, the API returns 204 No Content or only test ads.
- The `getAds()` / `get_ads()` function **never throws** — returns empty array on failure.
- Start the ad request early (before/alongside the LLM stream), await after streaming.
- Always use `ad.clickUrl` for links, not `ad.url`.
Expand Down
Loading