TryzenAPI

AI assistants and the CLI

Connect Claude, ChatGPT, Cursor or any MCP client to Tryzen's hosted MCP server, and run the same jobs from your terminal with the tryzen CLI.

Your Tryzen app runs an MCP server at https://<your app>/mcp (on a white-label domain, that domain's /mcp). Connect an assistant to it in one of two ways:

  • Sign in (OAuth). Claude.ai, Claude Desktop, ChatGPT and Claude Code connect with the URL alone: you sign in to Tryzen, pick the workspace and choose what the assistant may do. No key to copy. You see and disconnect these assistants in Settings → Connected apps.
  • An API key. Clients you set up with a URL and headers (Cursor, VS Code, n8n, your own code) send a workspace key in x-api-key (or Authorization: Bearer nrk_…).

The app's API page has the exact URL under Connect an AI assistant.

Connect with the hosted server

Claude and ChatGPT

  1. In Claude, open Settings → Connectors → Add custom connector. In ChatGPT, open Settings → Apps & Connectors and create one (developer mode).
  2. Paste https://app.example.com/mcp (your app's address).
  3. Sign in to Tryzen when asked, pick the workspace, and tick what the assistant may do. Launching campaigns, sending messages, disconnecting senders and CRM export are off unless you tick them.

The assistant's access lasts as long as you allow it: it acts as you, never with more than your own permissions, and stops working at once when you disconnect it or lose access to the workspace.

Claude Code

claude mcp add --transport http tryzen https://app.example.com/mcp

Then type /mcp in Claude Code and sign in.

Cursor and other clients, with a key

Create a key in API → Create key with only the scopes the assistant needs, then:

.cursor/mcp.json
{
  "mcpServers": {
    "tryzen": {
      "url": "https://app.example.com/mcp",
      "headers": { "x-api-key": "nrk_…" }
    }
  }
}

A request without a working credential gets HTTP 401 with a WWW-Authenticate header that points at the server's OAuth metadata (/.well-known/oauth-protected-resource/mcp), which is how OAuth clients find where to sign in.

The tryzen program

Tryzen also ships one small program, tryzen, that does two jobs:

  • an MCP server, so an AI assistant (Claude Desktop, Claude Code, Cursor, or any client that speaks the Model Context Protocol) can read your campaigns, build drafts and answer conversations;
  • a CLI with the same commands, for scripts and quick checks.

Both call the public API with a workspace key, so they can do exactly what the key's scopes allow, in that key's workspace only.

Install

You need Node.js 24 or later.

npm install -g @tryzen/cli
tryzen --version

Sign in

Create a key in API → Create key (see Quickstart) with the scopes the assistant should have, then save it with the address of your Tryzen app:

tryzen auth login --api-url https://app.example.com
# paste the key when asked; it is not shown on screen
tryzen auth status

The key is saved in ~/.config/tryzen/credentials.json, readable by you only. Instead of signing in you can set TRYZEN_API_URL and TRYZEN_API_KEY, or pass --api-url and --api-key (environment and flags win over the saved login).

Give the assistant only what it needs

A key for reading stats needs campaigns: view and nothing else. Add campaigns: manage for drafts and pausing, leads: manage for adding leads, and inbox: view plus inboxReply for conversations. A key never holds more than the person who created it.

Run the MCP server yourself

Clients that start a program

Instead of the hosted server, a client can start tryzen mcp on your computer with a key (claude_desktop_config.json for Claude Desktop, .cursor/mcp.json for Cursor):

MCP settings
{
  "mcpServers": {
    "tryzen": {
      "command": "npx",
      "args": ["-y", "@tryzen/cli", "mcp"],
      "env": {
        "TRYZEN_API_URL": "https://app.example.com",
        "TRYZEN_API_KEY": "nrk_…"
      }
    }
  }
}

Claude Code, on your computer

claude mcp add tryzen \
  --env TRYZEN_API_URL=https://app.example.com \
  --env TRYZEN_API_KEY=nrk_… \
  -- npx -y @tryzen/cli mcp

Over HTTP

tryzen mcp --http --port 3333 serves streamable HTTP at http://127.0.0.1:3333/mcp. It holds no key of its own: every request sends its caller's key in x-api-key (or Authorization: Bearer nrk_…) and acts only as that key. It listens on 127.0.0.1 unless you pass --host; put it behind HTTPS before exposing it.

Tools

The server has 68 tools. Each one is also a CLI command (see The CLI). The Scope column names what an API key needs; a connected assistant (OAuth) needs the same thing under its OAuth name (see Scopes for connected assistants).

Tools marked Destructive tell the assistant they can't be taken back or reach real people, so clients such as Claude ask you before calling them. Read-only tools change nothing.

Campaigns

ToolCLI commandWhat it doesScope
list_campaignscampaigns listCampaigns with status, senders, lead progress and headline numberscampaigns: view
get_campaigncampaigns get <id>One campaign: list, senders, schedule, exclusions and sequencecampaigns: view
get_campaign_statscampaigns stats <id>The funnel and each sender's numberscampaigns: view
get_campaign_analyticscampaigns analytics <id>One analytics view: funnel, steps with A/B variants, or senders over a date rangecampaigns: view
list_campaign_templatescampaigns templatesReady-made sequences a campaign can start fromcampaigns: view
create_campaign_draftcampaigns createA draft, optionally with its list, senders and sequencecampaigns: manage
create_campaign_from_templatecampaigns create-from-templateA draft with a template's sequencecampaigns: manage
update_campaign_settingscampaigns update-settings <id>Name, lead list (drafts only), exclude list and exclusion togglescampaigns: manage
update_campaign_schedulecampaigns set-schedule <id>Time zone, days, daily window, start and end datecampaigns: manage
get_campaign_sequencecampaigns sequence <id>The sequence tree, in the shape set_campaign_sequence takescampaigns: view
set_campaign_sequencecampaigns set-sequence <id>Replace a draft's sequence, or edit texts and delays after launchcampaigns: manage
add_campaign_sendercampaigns add-sender <id>Add one sender to the rotationcampaigns: manage
remove_campaign_sendercampaigns remove-sender <id>Take one sender out; its uncontacted leads move to the otherscampaigns: manage
set_campaign_senderscampaigns set-senders <id>Replace the whole sender list (1–100, in rotation order)campaigns: manage
check_campaign_launchcampaigns launch-check <id>Run every launch check on a draft and list the problems, changing nothingcampaigns: view
start_campaigncampaigns start <id>Destructive. Launch a draft: real LinkedIn outreach startscampaigns: manage + launchCampaigns (OAuth campaigns:launch)
pause_campaigncampaigns pause <id>Pause a running campaigncampaigns: manage
resume_campaigncampaigns resume <id>Resume a paused or finished campaigncampaigns: manage

Campaign leads

ToolCLI commandWhat it doesScope
add_leads_to_campaigncampaigns add-leads <id>Add up to 100 leads, or a whole list, to a launched campaigncampaigns: manage
list_campaign_leadscampaigns leads <id>A campaign's leads with status, sender, current step and failure reasoncampaigns: view
stop_campaign_leadcampaigns stop-leadDestructive. End one lead's sequence for goodcampaigns: manage
pause_campaign_leadcampaigns pause-leadHold one lead before its next stepcampaigns: manage
resume_campaign_leadcampaigns resume-leadLet a paused lead continuecampaigns: manage

Lists

ToolCLI commandWhat it doesScope
list_lead_listslists listLead lists with their size and the campaigns using themleads: view
create_listlists createAn empty people or company listleads: manage
add_leads_to_listlists add-leads <id>Up to 100 leads by profile URL or lead idleads: manage
list_list_leadslists leads <id>A people list's leads, with profile, email, tags and custom fieldsleads: view
list_list_companieslists companies <id>A company list's companiesleads: view
remove_leads_from_listlists remove-leads <id>Destructive. Take up to 100 leads out of a list (they stay in the workspace)leads: manage
combine_listslists combineA new list with every lead in any of 2–10 lists (preview counts first)leads: manage
intersect_listslists intersectA new list with the leads in all of 2–10 listsleads: manage
exclude_listslists excludeA new list: a base list minus 1–9 othersleads: manage

Leads, tags and credits

ToolCLI commandWhat it doesScope
get_leadleads get <id>One lead's record: profile, email, custom fields, tags, connections, lists, campaignsleads: view
get_lead_campaignsleads campaigns <id>The campaigns a lead is in, with its status and sender in eachcampaigns: view
get_lead_listsleads lists <id>The lists a lead is inleads: view
update_lead_custom_fieldsleads set-fields <id>Set or delete a lead's custom fields (the {variables} in messages)leads: manage
tag_leadleads tag <id>Add tags to a lead, keeping its othersleads: manage
replace_lead_tagsleads set-tags <id>Destructive. Make the named tags a lead's whole setleads: manage
list_tagstags listThe workspace's tags (leads and conversations share them)leads: view
create_tagtags createA new tag with a name and colorleads: manage
find_emailleads find-email <id>Look up a lead's work email (1 credit, only when found)leads: manage
get_creditscredits getThe workspace's credit balanceany key or connection

Network and blacklist

ToolCLI commandWhat it doesScope
list_networknetwork listSenders' 1st-degree connections or pending invitations among your leadsnetwork: view
check_connectionnetwork check <id>Whether a lead is connected to, or invited by, each sendernetwork: view
list_blacklistblacklist listBlacklisted leads or companies, with each entry's match statusleads: view
add_to_blacklistblacklist addBlacklist up to 100 profiles, companies, emails or names, and/or leads by idleads: manage
remove_from_blacklistblacklist removeDestructive. Remove 1–100 entries; campaigns may contact them againleads: manage

Unibox

ToolCLI commandWhat it doesScope
list_conversationsinbox listConversations, newest first, filtered by unread, sender, campaign, tag or who wrote lastinbox: view
get_conversationinbox get <id>One conversation and its latest messagesinbox: view
reply_to_conversationinbox reply <id>Queue a reply, sent by the conversation's own senderinboxReply (OAuth inbox:reply)
mark_conversation_seeninbox seen <id>Mark read or unread (in Tryzen only)inbox: view
archive_conversationinbox archive <id>Archive or unarchiveinbox: view
favorite_conversationinbox favorite <id>Star or unstarinbox: view
list_inbox_tagsinbox tagsThe workspace's conversation tagsinbox: view
tag_conversationinbox tag <id>Replace a conversation's tagsinbox: view
bulk_update_conversationsinbox bulkRead, unread, archive or star up to 100 conversations at onceinbox: view

Senders and voices

ToolCLI commandWhat it doesScope
list_senderssenders listLinkedIn senders, their limits and today's usagesenders: view
get_sendersenders get <id>One sender: status, limits, working hours, warm-up, health and voicesenders: view
update_sender_limitssenders limits <id>Daily and weekly limits (capped at the safety ceilings) and working hourssenders: manage
list_voicesvoices listThe voices voice-note steps can speak withsenders: view
assign_sender_voicesenders voice <id>Choose (or clear) a sender's voicesenders: manage

Stats and webhooks

ToolCLI commandWhat it doesScope
get_dashboard_statsstats dashboardTotals and rates between two days, per campaign and per sendercampaigns: view
list_webhookswebhooks listThe workspace's webhooksintegrations: view
get_webhookwebhooks get <id>One webhook's settingsintegrations: view
create_webhookwebhooks createA signed webhook for one event type; the secret is shown onceintegrations: manage
update_webhookwebhooks update <id>Change a webhook, or turn it off and onintegrations: manage
delete_webhookwebhooks delete <id>Destructive. Delete a webhook for goodintegrations: manage
test_webhookwebhooks test <id>Send one signed test POSTintegrations: manage

stop-lead, pause-lead and resume-lead take --campaign-id and --campaign-lead-id (the row id from list_campaign_leads).

Prompts

Three guided prompts (in Claude, the / menu) walk the assistant through a whole job, telling it which tools to call and where to stop and ask you:

PromptWhat it doesArguments
launch_campaignPlan, write and launch a campaign for a goal: senders, list, a personalised sequence with A/B variants, the launch check, and your go-ahead before it startsgoal, optional listId, senders
measure_pipelineReport on outreach between two days: totals and rates, the best and weakest campaigns, A/B results and the positive replies, with next steps. Reads onlyfrom, to, optional campaignId
triage_repliesGo through interested replies, draft a follow-up for each, and send only the ones you approveoptional since

Scopes for connected assistants

A connected assistant asks for OAuth scopes with the same names as a key's, written area:level: campaigns:view, leads:manage, inbox:view, and so on. Four are always unticked until you tick them: campaigns:launch (the key's launchCampaigns), inbox:reply (inboxReply), senders:disconnect and crm:export.

Campaign access comes with view access to senders and leads, for keys and connected assistants alike: an assistant allowed only campaigns:view can still list senders and lead lists, because a campaign can't be read without them. Replying (inbox:reply) likewise comes with inbox: view.

An assistant launches a campaign (start_campaign) only with the Launch campaigns permission: ticked on purpose when you connect it, or launchCampaigns on its key. A reply goes out inside its sender's working hours, paced like a person typing; a resumed campaign keeps to every sender's daily limits and working hours. Reading a conversation never sends a LinkedIn read receipt.

When the API refuses something, the tool answers with the API's own error code and message (and the retry time when rate limited), so the assistant can tell you what to fix. Tool calls count toward the key's (or the connected assistant's) 300 requests a minute.

The CLI

Every tool is a command. Flags are the tool's inputs in kebab-case; the id goes first:

tryzen campaigns list --status in_progress,paused
tryzen campaigns stats 6650a1f2c3d4e5f6a7b8c9d0
tryzen campaigns create --name "Founders in Pune" --list-id 6650… --sequence @sequence.json
tryzen lists add-leads 6650… --leads @leads.json
tryzen inbox list --unread --last-message-from lead
tryzen inbox reply 6650… --text "Tuesday at 4 works, see you then."
  • --json prints the API's answer as JSON instead of a table, for jq and scripts.
  • --input '{…}' or --input @file.json gives the whole input at once; flags override it.
  • Objects and lists of objects (a sequence, leads) take JSON or @file.json; simple lists take commas.
  • tryzen <command> --help lists a command's flags.

The exit code is 0 on success, 1 when the API refused (the error is printed to stderr), and 2 for a mistake in the command itself.

On this page