Agents

MCP, CLI, and skills

Hosted MCP server, CLI, and agent skills: every way to connect an agent.

There are three ways for an agent or a terminal to work with Audryo. Pick the first one unless you have a reason not to.

WayUse it forAuth
Hosted MCP serverClaude (Code, desktop, web), Codex, Cursor and other MCP clientsBrowser sign-in (OAuth)
Local MCP server and CLI (audryo npm package)CI jobs, scripts, servers, agents without a browserWorkspace API key
SkillsTeaching any agent Audryo's rules for API usage, email design and sendingNone

Start at audryo.com/mcp. Step-by-step for every client, with screenshots: Connect your agent.

https://mcp.audryo.com/mcp is a remote MCP server. The first time your agent uses it, it opens Audryo in the browser: sign in, pick the workspace, and choose what the agent may do. There is no key to create, store or rotate, and you can disconnect the agent anytime under Settings → Developer → Connected agents.

Claude Code

curl
claude mcp add --transport http audryo https://mcp.audryo.com/mcp

Run /mcp in Claude Code to sign in.

Codex

curl
codex mcp add audryo --url https://mcp.audryo.com/mcp
codex mcp login audryo

Claude app (desktop, web, mobile): Customize → Connectors → + Add → Add custom connector, paste the URL, then Connect.

Cursor and other JSON configs

JSON
{
  "mcpServers": {
    "audryo": { "url": "https://mcp.audryo.com/mcp" }
  }
}

Add the skills separately with npx skills add audryo/agent-toolkit.

Access levels on the consent screen map to the API scopes: Read (read), Draft and set up (write) and Send and go live (deliver). Sending is never preselected; when a task needs it, the agent asks you to approve it in the browser.

Beyond the tools in the catalog below, the hosted server adds create_project, update_project_settings (name, languages, timezone, double opt-in and the shared email footer; workspace admins only), get_brand_kit and update_brand_kit (colors, typography, voice and the logo new emails are styled with) and connect_sending_provider (which returns a link; provider keys are never entered in chat). projectId is optional when the connected workspace has a single project. The hosted tools preview_email and preview_email_draft also display rendered email previews inside MCP Apps clients; see the preview guide.

Local MCP server and CLI (API key)

For scripts, CI jobs and servers without a browser, create an API key under Settings → Developer. Requires Node 20 or newer.

Claude Code: plugin

Installs the MCP server and all skills in one step.

curl
export AUDRYO_API_KEY="sf_live_..."
claude plugin marketplace add Audryo/agent-toolkit
claude plugin install audryo@audryo

Skills for any agent

Works with Claude Code, Codex, Cursor and other agents that read skills.

curl
npx skills add audryo/agent-toolkit

MCP server by hand

Codex

curl
codex mcp add audryo \
  --env AUDRYO_API_KEY=sf_live_... \
  --env AUDRYO_PROJECT_ID=<project-id> \
  -- npx -y audryo mcp

Claude Code

curl
claude mcp add audryo \
  -e AUDRYO_API_KEY=sf_live_... \
  -e AUDRYO_PROJECT_ID=<project-id> \
  -- npx -y audryo mcp

Cursor and other JSON configs

JSON
{
  "mcpServers": {
    "audryo": {
      "command": "npx",
      "args": ["-y", "audryo", "mcp"],
      "env": {
        "AUDRYO_API_KEY": "sf_live_...",
        "AUDRYO_PROJECT_ID": "<project-id>"
      }
    }
  }
}

Ask the agent to "list my Audryo journeys" to check the connection.

Environment (local server and CLI)

VariableRequiredDefault
AUDRYO_API_KEYyes—
AUDRYO_PROJECT_IDfor project toolslist with npx audryo bootstrap
AUDRYO_API_BASEnohttps://api.audryo.com/v1

Skills

Skills give an agent Audryo-specific know-how before it starts working.

SkillTeaches the agent to
API usageDiscover endpoints, use scopes and idempotency, stop at review
Email authoringBuild valid email documents, upload images, render, and save as drafts
Sending best practicesChoose communication classes, respect consent, protect deliverability

Install them with npx skills add audryo/agent-toolkit or the Claude Code plugin above. The source lives at github.com/Audryo/agent-toolkit.

CLI

curl
npx audryo bootstrap
npx audryo contacts ingest contacts.json
npx audryo events ingest events.json
npx audryo emails create --title "July update" --subject "What's new in July"
npx audryo journeys list
npx audryo journeys inspect "$WORKFLOW_ID"
npx audryo campaigns draft --name "July update" --audience-id "$AUDIENCE_ID" --subject "What's new"
npx audryo delivery health

Ingest files can be a plain array or { "contacts": [...] } / { "events": [...] }.

Sending commands need a deliver key and should only run when you mean it:

curl
npx audryo journeys activate "$WORKFLOW_ID"
npx audryo transactional send --message-id "$MESSAGE_ID" \
  --email amelia@example.com --idempotency-key receipt-ord_1842

MCP tool catalog

ToolScopeWhat it does
get_manifestreadOperating model and review policy
get_bootstrapreadWorkspaces and projects for this token
get_setup_contextreadFirst-run progress and next action
get_product_contextreadConfirmed Foundation and brand
get_data_contextreadSchema, coverage, readiness
list_journeysreadJourneys and audiences
inspect_journeyreadRuntime, enrollments, delivery
list_audiences / get_audiencereadSaved audiences, optional consent-aware reach
list_contactsreadContacts, optional search
list_campaignsreadCampaign drafts and sends
get_delivery_healthreadSending identity and ESP status
get_performancereadRanked Journeys and messages
get_briefreadFindings and recommended actions
get_observation / run_observationreadObservation snapshot
get_plan_usagereadWorkspace plan usage
ingest_contacts / ingest_eventswriteSync data
preview_audiencewriteSize and sample for a definition; saves nothing
create_audience / update_audience / delete_audiencewriteManage live audiences
suggest_audienceswriteSegments proposed from the confirmed schema
create_journey_proposalwriteReview-only Journey
revise_journeywriteEdit a draft graph
propose_from_findingwriteGraph revision from a brief finding
run_dry_runwriteNo mail leaves
create_email / create_journey_emailwriteDraft message documents
draft_campaignwriteReviewable campaign
get_delivery_modereadSandbox or live, plus the go-live checklist
list_sandbox_messages / get_sandbox_messagereadEmails captured in sandbox mode
fast_forward_journeywriteSkip waits for sandbox enrollments
activate_journey / pause_journeydeliverStart or pause
send_campaign / send_transactionaldeliverCustomer mail

A worked propose → dry-run loop: Agent walkthrough.

What each scope unlocks

ScopeMCP tools and commands
readList, inspect, reports, delivery health
writeIngest, draft campaigns, propose Journeys, create emails
deliverStart or pause Journeys, send campaigns, transactional sends

Additional hosted operations

The hosted server extends the npm toolkit with the following operations:

AreaTools
Existing campaignsget_campaign, get_campaign_reach, update_campaign, schedule_campaign, cancel_campaign_schedule, delete_campaign
Mailing listslist_mailing_lists, create_mailing_list, update_mailing_list, delete_mailing_list
Contacts and consentget_contact, update_contact, get_contact_timeline, list_consent_events, record_consent, list_suppressions, create_suppression, erase_contact
Event contractsget_event_catalog, sync_event_catalog
Journey review and historyget_journey, test_journey, review_journey, rename_journey, update_journey_objective, list_journey_versions, restore_journey_version, delete_journey
Email managementlist_email_versions, list_email_recipients, rename_email, copy_email_to_journey, send_test_email, get_double_opt_in_email, prepare_double_opt_in_email, set_email_display_conditions

list_contacts supports after, size, audience, activity and status filters. draft_campaign supports mailing lists and communication classes and always creates a draft. Update an existing campaign's audienceId with update_campaign; you do not need to recreate it or change its shared audience.

Read operations require read; proposed edits require write. Scheduling, test sends, evidenced consent changes, suppressions, journey review, live email attachment and version restoration require deliver and explicit authorization. Test sends may reach real inboxes even in sandbox mode.

Successful results include app links as standard MCP resource links. The agent can include these directly in its reply after creating an email or changing contacts, events, audiences, campaigns or journeys. Saved revisions link to the returned version; deleted objects link to the collection. Unsaved previews do not claim a saved object exists. These links require the usual app login.

See conditional content for targeted display-condition edits and previews. Provider credentials and switching live remain in the app; the MCP connection does not imply consent or send approval.

The hosted management catalog also covers the former audit gaps: individual attribute/event definitions and histories, paginated Journey enrollments and manual enrollment, template/theme/section management, translations, CSV import/export, tags, inbound/outbound/Stripe/Zapier integrations, asset usages, Foundation sources, sandbox maintenance and workspace administration. Each is a typed tool, with normal API permissions and role checks; there is no arbitrary HTTP tool.

list_journey_enrollments returns page.nextCursor; pass it as after to keep reading. export_contacts returns CSV text. Topic membership updates require source/evidence and do not grant global consent. Only reviewed manual suppressions can be released. Generated integration credentials are one-time sensitive results and should never be repeated in a chat reply.

Search uses literal case-insensitive substrings: lifetime finds juno_premium_lifetime_bundle, including within event keys and content fields. It does not correct typos. This applies to the app's record lists and project search; search before pagination finds records beyond the current page.