# Manage your full DevTune setup and loop over API v2, MCP and webhooks

Canonical: https://devtune.ai/changelog/full-setup-and-loop-api-mcp-webhooks

Published: 2026-12-01T00:00:00.000Z


Your own agents and scripts can now manage a project's setup and run the full measure-fix-prove loop across REST API v2 and MCP:

- **Project and sensor setup**: create, edit, pause, delete, restore and filter tracked prompts and topics (`promptScope`); manage brands, domains and brand terms; lock or unlock pages; pause or resume projects; manage GitHub and GitBook content sources; read status for six AI Traffic sensors (`edge_middleware`, `snippet`, `cloudflare`, `vercel_drain`, `search_console`, `ga4`), rotate the edge ingest key, configure Cloudflare log pulls, create or disconnect Vercel log drains (once the Vercel integration is installed) and disconnect GA4 or Search Console.
- **Actions, audit and agents**: dismiss or restore Audit findings, create actions from Audit findings, split merged suggestions, regenerate ready briefs, create, edit, schedule, archive and restore custom agents, send follow-ups to agent runs, and approve or dismiss managed-agent drafts under the opt-in `agents.review` scope.
- **Reads and key lifecycle**: read brand sentiment (`GET /visibility/sentiment`, `devtune_get_brand_sentiment`) and per-platform probe health (`GET /visibility/probe-health`, `devtune_get_probe_health`); API keys can rotate or revoke themselves over API v2 and MCP.

Six new webhook events notify your receivers without polling: `action.brief.ready`, `action.draft.ready`, `agent.run.completed`, `outcome.measured`, `traffic.sensor.stopped` and `traffic.sensor.recovered`.

Every paged API v2 and MCP list now uses one cursor contract (`data.pagination: { hasMore, nextCursor }`), paired with `paginate()` in `@devtune/client` and `--cursor` in `@devtune/cli`. When connecting an MCP client over OAuth, the consent screen asks for the account before its projects and lets you select scopes directly, with `agents.review` unchecked by default. Read the [REST API reference](https://docs.devtune.ai/api-reference/overview), [MCP server docs](https://docs.devtune.ai/api-reference/mcp-server), [Webhooks docs](https://docs.devtune.ai/api-reference/webhooks) and [Probe health docs](https://docs.devtune.ai/api-reference/probe-health).
