Connect your agent
After this page your agent is connected to https://countviews.com/mcp and has made its first call.
Key or sign-in
Section titled “Key or sign-in”| Key | Sign-in (OAuth) | |
|---|---|---|
| You do | make a key in Agent → Connect an agent, paste it into the client | paste only the address; the client registers itself and opens a consent screen |
| Works in | every client below | ChatGPT, claude.ai, Claude Code, VS Code |
| Scopes | the preset you pick | what you tick on the consent screen; only reads are ticked by default |
Details of the sign-in: OAuth. A key never does more than the person who made it (permissions).
Pick a client
Section titled “Pick a client”Choose a client, paste your key, and copy the exact config.
Steps
- This key is shown as cvk_…: the real one cannot be shown again. Put your key there, or make a new one.
- Run this line in a terminal, once.
- Then ask the agent to call whoami. That is the first call we will see.
claude mcp add --transport http countviews https://countviews.com/mcp --header "Authorization: Bearer cvk_…"The recipes
Section titled “The recipes”A key is sent as Authorization: Bearer <key>. The MCP address is the same everywhere. The first call to ask for is whoami.
claude mcp add --transport http countviews https://countviews.com/mcp \ --header "Authorization: Bearer $COUNTVIEWS_KEY"No key: claude mcp add --transport http countviews https://countviews.com/mcp, then type /mcp inside Claude Code and authenticate. For a key that can launch campaigns, never choose “always allow” for campaign_activate.
Put the key in an environment variable, add this to .cursor/mcp.json (or the global file) and restart Cursor.
export COUNTVIEWS_KEY="cvk_…"{ "mcpServers": { "countviews": { "url": "https://countviews.com/mcp", "headers": { "Authorization": "Bearer ${env:COUNTVIEWS_KEY}" } } }}Cursor cannot sign in (it returns through its own cursor:// address), so it uses a key. Do not add campaign_activate to its allowed tools.
Sign-in, no key. Add to .vscode/mcp.json:
{ "servers": { "countviews": { "type": "http", "url": "https://countviews.com/mcp" } }}Settings → Connectors → add a custom connector (ChatGPT needs developer mode). Paste https://countviews.com/mcp. Leave client ID and secret empty. Press Connect, read the consent screen, approve.
A tool of a Responses API call. For a read-only key require_approval is "never"; for a key that writes it is switched off only for the tools that do not move money, which the recipe lists by name.
import osfrom openai import OpenAI
client = OpenAI()response = client.responses.create( model=os.environ["OPENAI_MODEL"], tools=[{ "type": "mcp", "server_label": "countviews", "server_url": "https://countviews.com/mcp", "authorization": os.environ["COUNTVIEWS_KEY"], "require_approval": "never", }], input="Call whoami, then campaigns_list.",)print(response.output_text)The MCP connector is a beta: send the header mcp-client-2025-11-20. The server goes in mcp_servers; an mcp_toolset entry in tools switches it on. For a key that can spend, the toolset is an allowlist so that campaign_activate and the other money tools go through a person.
import osimport anthropic
client = anthropic.Anthropic()response = client.beta.messages.create( model=os.environ["ANTHROPIC_MODEL"], max_tokens=1024, messages=[{"role": "user", "content": "Call whoami, then campaigns_list."}], mcp_servers=[{ "type": "url", "url": "https://countviews.com/mcp", "name": "countviews", "authorization_token": os.environ["COUNTVIEWS_KEY"], }], tools=[{"type": "mcp_toolset", "mcp_server_name": "countviews"}], betas=["mcp-client-2025-11-20"],)print(response.content)Give the model the tools from openapi.json or tools.json and send every call it makes to /call. A Gemini client that takes a remote MCP server over streamable HTTP can use the MCP address with the same header.
curl -H "Authorization: Bearer $COUNTVIEWS_KEY" https://countviews.com/api/public/v1/tools.jsonOpenAPI (public): https://countviews.com/api/public/v1/openapi.json
Any model that calls functions but has no MCP: fetch tools.json, pass its openai array as tools, forward every call to /call. Show money tools to a person first.
tools = requests.get(TOOLS_URL, headers=AUTH).json()["openai"]# for each tool call the model makes:answer = requests.post(CALL_URL, headers=AUTH, json={"name": call.function.name, "arguments": arguments})TOOLS_URL is https://countviews.com/api/public/v1/tools.json, CALL_URL is https://countviews.com/api/public/v1/call.
Use the HTTP request step. Import openapi.json if the tool takes one, otherwise POST https://countviews.com/api/public/v1/call with the header and a body naming the tool:
{ "name": "campaigns_list", "arguments": {} }There is no push for new clips here: poll inside the call limit or use webhooks. Put a human approval step before any money tool.
Give it https://countviews.com/llms.txt and the key. The page also lists openapi.json and the MCP address.
Check it worked
Section titled “Check it worked”Ask the agent to call whoami. The key in Agent then shows when and through what it was first used (rest, call or mcp). Keep at most 5 keys per workspace; revoke one in the same screen.