Skip to content

Set up MCP

After this page you can point any MCP client at CountViews and have it list, call and understand the brand tools. MCP is one of three doors to the same tool registry; REST and POST /call reach the same tools.

Address https://countviews.com/mcp
Alias https://countviews.com/api/public/v1/mcp (same server, same answers)
Transport Streamable HTTP, no session: nothing is kept between requests
Auth Authorization: Bearer cvk_… (a key), or OAuth sign-in for apps that support it

A key is checked before the protocol starts: a wrong or revoked key is a plain 401 with WWW-Authenticate: Bearer, not an MCP error.

What it is
Tools The brand tools your key may use (see below).
instructions Sent in initialize. Built for this key: only its tools, its world (test or live), the rules, the main paths. Never longer than 6 KB.
Prompts launch_campaign, review_clips, end_campaign, fund_and_verify_account (live keys only), try_in_test_space (test keys only). A prompt is offered only if every tool it needs is in the key’s list.
Resources countviews://guide (the instructions plus example arguments and the hand-over script) and countviews://errors (every error code and what to do).

Every tool result carries _meta.space (test or live). A failed call is isError: true with text code: message, then Next: …, and _meta.error with code, status, retryAfterSec and next.

The list depends on the key’s scopes and on its world. A key never sees more than 20 tools, and a test key sees a different set from a live key (the five sandbox_* tools exist only in the test space; the bank and company tools only on live keys). A call to a tool the key does not have is a tool failure that names the missing scope or the other world’s equivalent.

Tools carry MCP annotations so a client knows when to ask a person first:

Annotation Tools
readOnlyHint: true Every read: whoami, campaigns_list, campaign_report, review_queue, events_list, …
readOnlyHint: false, idempotentHint: true Every write.
destructiveHint: true The writes that take money or cannot be undone: campaign_activate, campaign_budget_add, campaign_end, campaign_terms_update, campaign_draft_discard, sandbox_reset.

29 tools

Who this token is

whoami

Returns which brand workspace this token belongs to, the token's name and the scopes it holds, and — in one answer — what stands between this brand and its first campaign.

  • Scope: any key
  • reads
Full description

Returns which brand workspace this token belongs to, the token's name and the scopes it holds, and — in one answer — what stands between this brand and its first campaign. limits: calls per minute, page sizes, and the key's own limits — what it may launch without asking a person (autoActivateUpTo, dailyCap, monthlyCap; null means none, so every launch waits for a person) and how much of each it has used, and how many clips it may decide in a day. A key cannot change its limits: a person does. readiness: whether the brand can launch (canLaunch, blockers, next), and the company on record — its state (missing, submitted, verified), whether publishing is gated on it (gate), missing (what is still to send, in words), details (legal name, country, registration number, site and logo) and countries (where a company may be registered); company_set sets it. Call it first when you do not know what the token can do; a tool whose scope is missing from the list will be refused. It needs no scope and changes nothing.

Arguments

This tool takes no arguments.

Try it

bash
curl https://countviews.com/api/public/v1/call \
  -H "Authorization: Bearer $COUNTVIEWS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"whoami","arguments":{}}'

Replace $COUNTVIEWS_KEY with your key. Nothing here is sent anywhere.

Put the key in COUNTVIEWS_KEY. Make a key in the workspace under Agent; a test key (cvk_test_…) is described in Test everything.

claude mcp add --transport http countviews https://countviews.com/mcp \
--header "Authorization: Bearer $COUNTVIEWS_KEY"

The first thing to ask an agent is whoami: it returns the workspace, the scopes, the limits, what stands between the brand and a first campaign (readiness), and guide.nextBestAction.