AI integrations

Connect agents to Droviat and inspect the artifacts they need in one place.

Use this page for hosted MCP setup, the canonical `SKILL.md`, reusable fixtures, and the public API source contract. Everything below is viewable inline and downloadable.

AI ready

Start Droviat from the agent surfaces where remote MCP connectors already live, then point them to your hosted workspace integration.

Operational guardrails

  • write tools require explicit arguments.confirmed=true
  • session traffic stays workspace-scoped
  • Droviat records client and trust metadata, not full payload archives

MCP

Start with the live transport contract, session headers, and a minimal request flow.

Required headers

HeaderPurpose
AuthorizationDroviat bearer: a user access token, or a workspace API key (usk_…) limited to its granted scopes.
x-workspace-idExplicit workspace context for user-token sessions. Optional with API keys, which are workspace-bound.
x-mcp-client-idStable client identifier for connection records.
x-mcp-client-nameHuman-readable client label.
x-mcp-client-versionClient version metadata for support and audit trails.

Handshake flow

  1. Call POST /mcp with an initialize request.
  2. Call notifications/initialized after the handshake completes.
  3. Call tools/list to read the current workflow catalog.
  4. Call tools/call with explicit user context for any mutating workflow.
  5. Re-run mutating calls with arguments.confirmed=true after user approval.

Example initialize request

POST /mcp
Authorization: Bearer <droviat-access-token>
x-workspace-id: <workspace-id>
x-mcp-client-id: claude-code

{
  "jsonrpc": "2.0",
  "id": "init-1",
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-11-25",
    "capabilities": {},
    "clientInfo": {
      "name": "claude-code",
      "version": "2.1.177"
    }
  }
}

Example tool call

{
  "jsonrpc": "2.0",
  "id": "call-2",
  "method": "tools/call",
  "params": {
    "name": "campaign_create",
    "arguments": {
      "name": "Q4 launch",
      "slug": "q4-launch",
      "status": "draft",
      "confirmed": true
    }
  }
}

Claude Code

Register the Droviat remote MCP endpoint as a custom MCP server in Claude Code.

One-line setup (CLI)

Add the hosted endpoint with the HTTP transport and the required Droviat headers. The default scope is local (current project, private to you).

claude mcp add --transport http droviat https://api.droviat.com/mcp \
  --header "Authorization: Bearer ${DROVIAT_ACCESS_TOKEN}" \
  --header "x-workspace-id: ${DROVIAT_WORKSPACE_ID}" \
  --header "x-mcp-client-id: claude-code"

Use --scope user to make Droviat available in every project, or --scope project to share it with your team through a committed .mcp.json.

Project config (.mcp.json)

Committing this file at the repository root gives every teammate the same connection. ${VAR} references expand from each developer's environment, so tokens stay out of version control.

{
  "mcpServers": {
    "droviat": {
      "type": "http",
      "url": "https://api.droviat.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DROVIAT_ACCESS_TOKEN}",
        "x-workspace-id": "${DROVIAT_WORKSPACE_ID}",
        "x-mcp-client-id": "claude-code"
      }
    }
  }
}

Verify the connection

  1. Run claude mcp list to confirm droviat shows as connected.
  2. Inside a session, run /mcp to inspect server status and the tool catalog.
  3. Ask Claude Code to call a read tool first (for example campaign_list).
  4. Mutating tools stay two-phase: Claude Code must re-send the call with arguments.confirmed=true after you approve.

Token hygiene

  • Prefer a workspace API key (usk_…) as the bearer: it is workspace-bound, so x-workspace-id becomes optional, and tools are limited to the key's scopes.
  • Create a dedicated key with the smallest preset scope that covers the workflow.
  • Export DROVIAT_ACCESS_TOKEN (and DROVIAT_WORKSPACE_ID for user tokens) in your shell profile instead of inlining values.
  • Rotate the token from Droviat settings if it ever lands in a transcript or commit.

SKILL.md

The canonical skill document for agent-facing Droviat workflow guidance.

droviat-agent-automation-skill-v1.md

Markdown source published with the portal.

Download
Loading source…

Fixtures

Synthetic payloads for local testing, demos, prompt scaffolding, and regression setup.

campaign-create.json

Campaign creation request.

Download
Loading source…

campaign-create-response.json

Campaign creation response.

Download
Loading source…

link-create.json

Tracked link creation request.

Download
Loading source…

link-create-response.json

Tracked link creation response.

Download
Loading source…

utm-suggestions.json

Governed UTM suggestion query.

Download
Loading source…

utm-suggestions-response.json

Governed UTM suggestion response.

Download
Loading source…

analytics-summary.json

Workspace analytics query.

Download
Loading source…

analytics-summary-response.json

Workspace analytics response.

Download
Loading source…

conversion-ingest.json

Attribution conversion request.

Download
Loading source…

conversion-ingest-response.json

Attribution conversion response.

Download
Loading source…

mcp-campaign-create.json

Hosted MCP write request.

Download
Loading source…

mcp-campaign-create-response.json

Hosted MCP write response.

Download
Loading source…

Public API YAML

The same OpenAPI source used by the live reference page, viewable inline and downloadable.

control-api-public.yaml

OpenAPI 3.1 source for public automation workflows.

Download
Loading source…