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.
| Way | Use it for | Auth |
|---|---|---|
| Hosted MCP server | Claude (Code, desktop, web), Codex, Cursor and other MCP clients | Browser sign-in (OAuth) |
Local MCP server and CLI (audryo npm package) | CI jobs, scripts, servers, agents without a browser | Workspace API key |
| Skills | Teaching any agent Audryo's rules for API usage, email design and sending | None |
- npm: npmjs.com/package/audryo
- Source, skills and issues: github.com/Audryo/agent-toolkit
Hosted MCP server (recommended)
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
claude mcp add --transport http audryo https://mcp.audryo.com/mcpRun /mcp in Claude Code to sign in.
Codex
codex mcp add audryo --url https://mcp.audryo.com/mcp
codex mcp login audryoClaude app (desktop, web, mobile): Customize → Connectors → + Add → Add custom connector, paste the URL, then Connect.
Cursor and other JSON configs
{
"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.
export AUDRYO_API_KEY="sf_live_..."
claude plugin marketplace add Audryo/agent-toolkit
claude plugin install audryo@audryoSkills for any agent
Works with Claude Code, Codex, Cursor and other agents that read skills.
npx skills add audryo/agent-toolkitMCP server by hand
Codex
codex mcp add audryo \
--env AUDRYO_API_KEY=sf_live_... \
--env AUDRYO_PROJECT_ID=<project-id> \
-- npx -y audryo mcpClaude Code
claude mcp add audryo \
-e AUDRYO_API_KEY=sf_live_... \
-e AUDRYO_PROJECT_ID=<project-id> \
-- npx -y audryo mcpCursor and other JSON configs
{
"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)
| Variable | Required | Default |
|---|---|---|
AUDRYO_API_KEY | yes | — |
AUDRYO_PROJECT_ID | for project tools | list with npx audryo bootstrap |
AUDRYO_API_BASE | no | https://api.audryo.com/v1 |
Skills
Skills give an agent Audryo-specific know-how before it starts working.
| Skill | Teaches the agent to |
|---|---|
| API usage | Discover endpoints, use scopes and idempotency, stop at review |
| Email authoring | Build valid email documents, upload images, render, and save as drafts |
| Sending best practices | Choose 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
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 healthIngest files can be a plain array or { "contacts": [...] } / { "events": [...] }.
Sending commands need a deliver key and should only run when you mean it:
npx audryo journeys activate "$WORKFLOW_ID"
npx audryo transactional send --message-id "$MESSAGE_ID" \
--email amelia@example.com --idempotency-key receipt-ord_1842MCP tool catalog
| Tool | Scope | What it does |
|---|---|---|
get_manifest | read | Operating model and review policy |
get_bootstrap | read | Workspaces and projects for this token |
get_setup_context | read | First-run progress and next action |
get_product_context | read | Confirmed Foundation and brand |
get_data_context | read | Schema, coverage, readiness |
list_journeys | read | Journeys and audiences |
inspect_journey | read | Runtime, enrollments, delivery |
list_audiences / get_audience | read | Saved audiences, optional consent-aware reach |
list_contacts | read | Contacts, optional search |
list_campaigns | read | Campaign drafts and sends |
get_delivery_health | read | Sending identity and ESP status |
get_performance | read | Ranked Journeys and messages |
get_brief | read | Findings and recommended actions |
get_observation / run_observation | read | Observation snapshot |
get_plan_usage | read | Workspace plan usage |
ingest_contacts / ingest_events | write | Sync data |
preview_audience | write | Size and sample for a definition; saves nothing |
create_audience / update_audience / delete_audience | write | Manage live audiences |
suggest_audiences | write | Segments proposed from the confirmed schema |
create_journey_proposal | write | Review-only Journey |
revise_journey | write | Edit a draft graph |
propose_from_finding | write | Graph revision from a brief finding |
run_dry_run | write | No mail leaves |
create_email / create_journey_email | write | Draft message documents |
draft_campaign | write | Reviewable campaign |
get_delivery_mode | read | Sandbox or live, plus the go-live checklist |
list_sandbox_messages / get_sandbox_message | read | Emails captured in sandbox mode |
fast_forward_journey | write | Skip waits for sandbox enrollments |
activate_journey / pause_journey | deliver | Start or pause |
send_campaign / send_transactional | deliver | Customer mail |
A worked propose → dry-run loop: Agent walkthrough.
What each scope unlocks
| Scope | MCP tools and commands |
|---|---|
read | List, inspect, reports, delivery health |
write | Ingest, draft campaigns, propose Journeys, create emails |
deliver | Start or pause Journeys, send campaigns, transactional sends |
Related
Additional hosted operations
The hosted server extends the npm toolkit with the following operations:
| Area | Tools |
|---|---|
| Existing campaigns | get_campaign, get_campaign_reach, update_campaign, schedule_campaign, cancel_campaign_schedule, delete_campaign |
| Mailing lists | list_mailing_lists, create_mailing_list, update_mailing_list, delete_mailing_list |
| Contacts and consent | get_contact, update_contact, get_contact_timeline, list_consent_events, record_consent, list_suppressions, create_suppression, erase_contact |
| Event contracts | get_event_catalog, sync_event_catalog |
| Journey review and history | get_journey, test_journey, review_journey, rename_journey, update_journey_objective, list_journey_versions, restore_journey_version, delete_journey |
| Email management | list_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.