You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add monitor_activity tool, realign env vars with scrapegraph-py #84
Track the latest push on scrapegraph-py PR #84:
- Base URL: https://api.scrapegraphai.com/v2 -> /api/v2 (matches py env.py)
- Env var: SGAI_TIMEOUT_S -> SGAI_TIMEOUT (default 120s)
SGAI_TIMEOUT_S is kept as a legacy alias and still honored.
- New tool: monitor_activity (GET /monitor/:id/activity) with limit/cursor
pagination, mirroring sgai.monitor.activity() in the Python/JS SDKs.
Returns tick history (id, createdAt, status, changed, elapsedMs, diffs)
plus nextCursor for paging.
- README.md, server.json, .agent docs: update base URL, env var names,
and tool listing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- ✅ Migrated MCP client and tools to **API v2** ([scrapegraph-py#84](https://github.com/ScrapeGraphAI/scrapegraph-py/pull/84)): base `https://api.scrapegraphai.com/v2`, `SGAI-APIKEY` header (matches SDK wire format), new crawl/monitor/credits/history tools; removed sitemap, agentic_scrapper, status polling tools. Env vars aligned with SDK: `SGAI_API_URL`, `SGAI_TIMEOUT_S`.
382
+
- ✅ Migrated MCP client and tools to **API v2** ([scrapegraph-py#84](https://github.com/ScrapeGraphAI/scrapegraph-py/pull/84)): base `https://api.scrapegraphai.com/api/v2`, `SGAI-APIKEY` header (matches SDK wire format), new crawl/monitor/credits/history tools; removed sitemap, agentic_scrapper, status polling tools. Env vars aligned with SDK: `SGAI_API_URL`, `SGAI_TIMEOUT` (legacy alias `SGAI_TIMEOUT_S` still honored).
383
+
- ✅ Added `monitor_activity` tool for paginated tick history (GET /monitor/:id/activity), mirroring `sgai.monitor.activity()` in scrapegraph-py v2.
383
384
384
385
### January 2026
385
386
- ✅ Added `time_range` parameter to SearchScraper for filtering results by recency (v1-era; **ignored on API v2**)
- v2 methods include `scrape_v2`, `extract`, `search_api`, `crawl_*`, `monitor_*`, `credits`, `history`, plus compatibility wrappers used by MCP tools
147
147
@@ -188,7 +188,7 @@ The server follows a simple, single-file architecture:
188
188
189
189
The server exposes many `@mcp.tool()` handlers (see repository `README.md` for the full table). The detailed subsections below still use **v1-style endpoint names** in several places; treat them as illustrative and prefer the v2 mapping in **API Integration**.
0 commit comments