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(orAuthorization: Bearer nrk_…).
The app's API page has the exact URL under Connect an AI assistant.
Connect with the hosted server
Claude and ChatGPT
- In Claude, open Settings → Connectors → Add custom connector. In ChatGPT, open Settings → Apps & Connectors and create one (developer mode).
- Paste
https://app.example.com/mcp(your app's address). - 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/mcpThen 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:
{
"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 --versionSign 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 statusThe 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):
{
"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 mcpOver 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
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
list_campaigns | campaigns list | Campaigns with status, senders, lead progress and headline numbers | campaigns: view |
get_campaign | campaigns get <id> | One campaign: list, senders, schedule, exclusions and sequence | campaigns: view |
get_campaign_stats | campaigns stats <id> | The funnel and each sender's numbers | campaigns: view |
get_campaign_analytics | campaigns analytics <id> | One analytics view: funnel, steps with A/B variants, or senders over a date range | campaigns: view |
list_campaign_templates | campaigns templates | Ready-made sequences a campaign can start from | campaigns: view |
create_campaign_draft | campaigns create | A draft, optionally with its list, senders and sequence | campaigns: manage |
create_campaign_from_template | campaigns create-from-template | A draft with a template's sequence | campaigns: manage |
update_campaign_settings | campaigns update-settings <id> | Name, lead list (drafts only), exclude list and exclusion toggles | campaigns: manage |
update_campaign_schedule | campaigns set-schedule <id> | Time zone, days, daily window, start and end date | campaigns: manage |
get_campaign_sequence | campaigns sequence <id> | The sequence tree, in the shape set_campaign_sequence takes | campaigns: view |
set_campaign_sequence | campaigns set-sequence <id> | Replace a draft's sequence, or edit texts and delays after launch | campaigns: manage |
add_campaign_sender | campaigns add-sender <id> | Add one sender to the rotation | campaigns: manage |
remove_campaign_sender | campaigns remove-sender <id> | Take one sender out; its uncontacted leads move to the others | campaigns: manage |
set_campaign_senders | campaigns set-senders <id> | Replace the whole sender list (1–100, in rotation order) | campaigns: manage |
check_campaign_launch | campaigns launch-check <id> | Run every launch check on a draft and list the problems, changing nothing | campaigns: view |
start_campaign | campaigns start <id> | Destructive. Launch a draft: real LinkedIn outreach starts | campaigns: manage + launchCampaigns (OAuth campaigns:launch) |
pause_campaign | campaigns pause <id> | Pause a running campaign | campaigns: manage |
resume_campaign | campaigns resume <id> | Resume a paused or finished campaign | campaigns: manage |
Campaign leads
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
add_leads_to_campaign | campaigns add-leads <id> | Add up to 100 leads, or a whole list, to a launched campaign | campaigns: manage |
list_campaign_leads | campaigns leads <id> | A campaign's leads with status, sender, current step and failure reason | campaigns: view |
stop_campaign_lead | campaigns stop-lead | Destructive. End one lead's sequence for good | campaigns: manage |
pause_campaign_lead | campaigns pause-lead | Hold one lead before its next step | campaigns: manage |
resume_campaign_lead | campaigns resume-lead | Let a paused lead continue | campaigns: manage |
Lists
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
list_lead_lists | lists list | Lead lists with their size and the campaigns using them | leads: view |
create_list | lists create | An empty people or company list | leads: manage |
add_leads_to_list | lists add-leads <id> | Up to 100 leads by profile URL or lead id | leads: manage |
list_list_leads | lists leads <id> | A people list's leads, with profile, email, tags and custom fields | leads: view |
list_list_companies | lists companies <id> | A company list's companies | leads: view |
remove_leads_from_list | lists remove-leads <id> | Destructive. Take up to 100 leads out of a list (they stay in the workspace) | leads: manage |
combine_lists | lists combine | A new list with every lead in any of 2–10 lists (preview counts first) | leads: manage |
intersect_lists | lists intersect | A new list with the leads in all of 2–10 lists | leads: manage |
exclude_lists | lists exclude | A new list: a base list minus 1–9 others | leads: manage |
Leads, tags and credits
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
get_lead | leads get <id> | One lead's record: profile, email, custom fields, tags, connections, lists, campaigns | leads: view |
get_lead_campaigns | leads campaigns <id> | The campaigns a lead is in, with its status and sender in each | campaigns: view |
get_lead_lists | leads lists <id> | The lists a lead is in | leads: view |
update_lead_custom_fields | leads set-fields <id> | Set or delete a lead's custom fields (the {variables} in messages) | leads: manage |
tag_lead | leads tag <id> | Add tags to a lead, keeping its others | leads: manage |
replace_lead_tags | leads set-tags <id> | Destructive. Make the named tags a lead's whole set | leads: manage |
list_tags | tags list | The workspace's tags (leads and conversations share them) | leads: view |
create_tag | tags create | A new tag with a name and color | leads: manage |
find_email | leads find-email <id> | Look up a lead's work email (1 credit, only when found) | leads: manage |
get_credits | credits get | The workspace's credit balance | any key or connection |
Network and blacklist
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
list_network | network list | Senders' 1st-degree connections or pending invitations among your leads | network: view |
check_connection | network check <id> | Whether a lead is connected to, or invited by, each sender | network: view |
list_blacklist | blacklist list | Blacklisted leads or companies, with each entry's match status | leads: view |
add_to_blacklist | blacklist add | Blacklist up to 100 profiles, companies, emails or names, and/or leads by id | leads: manage |
remove_from_blacklist | blacklist remove | Destructive. Remove 1–100 entries; campaigns may contact them again | leads: manage |
Unibox
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
list_conversations | inbox list | Conversations, newest first, filtered by unread, sender, campaign, tag or who wrote last | inbox: view |
get_conversation | inbox get <id> | One conversation and its latest messages | inbox: view |
reply_to_conversation | inbox reply <id> | Queue a reply, sent by the conversation's own sender | inboxReply (OAuth inbox:reply) |
mark_conversation_seen | inbox seen <id> | Mark read or unread (in Tryzen only) | inbox: view |
archive_conversation | inbox archive <id> | Archive or unarchive | inbox: view |
favorite_conversation | inbox favorite <id> | Star or unstar | inbox: view |
list_inbox_tags | inbox tags | The workspace's conversation tags | inbox: view |
tag_conversation | inbox tag <id> | Replace a conversation's tags | inbox: view |
bulk_update_conversations | inbox bulk | Read, unread, archive or star up to 100 conversations at once | inbox: view |
Senders and voices
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
list_senders | senders list | LinkedIn senders, their limits and today's usage | senders: view |
get_sender | senders get <id> | One sender: status, limits, working hours, warm-up, health and voice | senders: view |
update_sender_limits | senders limits <id> | Daily and weekly limits (capped at the safety ceilings) and working hours | senders: manage |
list_voices | voices list | The voices voice-note steps can speak with | senders: view |
assign_sender_voice | senders voice <id> | Choose (or clear) a sender's voice | senders: manage |
Stats and webhooks
| Tool | CLI command | What it does | Scope |
|---|---|---|---|
get_dashboard_stats | stats dashboard | Totals and rates between two days, per campaign and per sender | campaigns: view |
list_webhooks | webhooks list | The workspace's webhooks | integrations: view |
get_webhook | webhooks get <id> | One webhook's settings | integrations: view |
create_webhook | webhooks create | A signed webhook for one event type; the secret is shown once | integrations: manage |
update_webhook | webhooks update <id> | Change a webhook, or turn it off and on | integrations: manage |
delete_webhook | webhooks delete <id> | Destructive. Delete a webhook for good | integrations: manage |
test_webhook | webhooks test <id> | Send one signed test POST | integrations: 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:
| Prompt | What it does | Arguments |
|---|---|---|
launch_campaign | Plan, 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 starts | goal, optional listId, senders |
measure_pipeline | Report on outreach between two days: totals and rates, the best and weakest campaigns, A/B results and the positive replies, with next steps. Reads only | from, to, optional campaignId |
triage_replies | Go through interested replies, draft a follow-up for each, and send only the ones you approve | optional 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."--jsonprints the API's answer as JSON instead of a table, forjqand scripts.--input '{…}'or--input @file.jsongives 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> --helplists 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.