npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jclvsh/iris

v0.25.3

Published

MCP server for the Iris API

Readme

@jclvsh/iris

Iris MCP server

MCP server and CLI for the Iris API — AI-powered messaging assistant for automated multi-channel outreach campaigns. Lets AI agents (Claude Code, Cursor) and humans manage campaigns, contacts, conversations, AI generations, discovery, channels, and webhooks.

Installation

npm install -g @jclvsh/iris

This installs two binaries:

  • iris — CLI for terminal use
  • iris-mcp — MCP server for AI agents

Or run one-shot without installing:

npx -y -p @jclvsh/iris iris-mcp

Imported as a library, the package resolves only through its exports map (., ./hosted, ./tool-policy, ./policy, ./package.json); deep imports of dist/* are not supported.

CLI

# set your API key
export IRIS_API_KEY=is_live_...

# manage campaigns
iris campaigns list
iris campaigns create -n "spring outreach" -o product_promotion --product-name "acme widgets"
iris campaigns analyze <id>
iris campaigns usage <id>

# manage contacts
iris contacts list --campaign-id <id>
iris contacts create --campaign-id <id> -e [email protected] --full-name "Jane Doe" --company-name "Acme"

# review the AI approval queue
iris messages pending --campaign-id <id>
iris messages approve <id>
iris messages reject <id> --reason "off-topic"
iris messages bulk -a approve --ids id1,id2,id3

# manage webhooks
iris webhooks create -u https://example.com/hook -e campaign.created,message.delivered
iris webhooks test <id>
iris webhooks deliveries <id>

# check your key
iris keys me

# table output
iris --format table campaigns list

# full help
iris --help
iris campaigns --help

CLI Commands

| Group | Alias | Commands | Count | | ------------- | ------ | ------------------------------------------------------------- | ----- | | campaigns | c | list, get, create, update, delete, usage, analyze, contacts, add-contacts, chats, chat-messages, rename-chat, delete-chat | 13 | | contacts | ct | list, get, create, update, delete, usage | 6 | | messages | m | pending, approve, reject, retry, feedback, bulk | 6 | | conversations | conv | list, get, create, send, messages, read, update | 7 | | discovery | d | search, search-campaign, sources, job | 4 | | ai | — | generate, generate-campaign, analyze, usage | 4 | | keys | k | me, list, create, rename, revoke | 5 | | webhooks | w | list, create, get, update, delete, test, deliveries | 7 | | notifications | n | list, update, delete, read-all | 4 | | analytics | a | overview, campaign, performance, response-time, contact-types | 5 | | billing | b | plans | 1 | | channels | ch | accounts, availability, send | 3 | | credits | cr | balance, buy | 2 | | affiliate | — | (status, link, sign-ups, and commission totals) | 1 | | recap | — | (your last 30 days of outreach as counts) | 1 | | responder | r | status, configure, activity, show, pause, resume, triggers list, triggers add, triggers update, triggers remove, triggers posts | 11 |

MCP Server Configuration

Environment Variables

| Variable | Required | Description | | -------------- | -------- | ---------------------------------------------------- | | IRIS_API_KEY | Yes | API key (must start with is_live_) | | IRIS_API_URL | No | API base URL (default: https://iris-ai.dev/api/v1) |

Note: the args use -p @jclvsh/iris iris-mcp to explicitly select the MCP-server bin. The package ships two binaries (iris for the CLI, iris-mcp for the MCP server), so a bare npx @jclvsh/iris would launch the CLI by default.

Get your API key at iris-ai.dev/settings/api-keys.

Claude Code

Add to your .claude/settings.json:

{
	"mcpServers": {
		"iris": {
			"command": "npx",
			"args": ["-y", "-p", "@jclvsh/iris", "iris-mcp"],
			"env": {
				"IRIS_API_KEY": "is_live_your_key_here"
			}
		}
	}
}

Cursor

Add to .cursor/mcp.json:

{
	"mcpServers": {
		"iris": {
			"command": "npx",
			"args": ["-y", "-p", "@jclvsh/iris", "iris-mcp"],
			"env": {
				"IRIS_API_KEY": "is_live_your_key_here"
			}
		}
	}
}

Hosted Endpoint

Clients that connect to a remote MCP server can use the hosted endpoint instead of this package:

https://api.iris-ai.dev/mcp
  • Transport: MCP streamable HTTP, POST only.
  • Registry: listed in the official MCP registry as io.github.JCLVSH/iris.
  • Auth: Authorization: Bearer is_live_... (the same API key; its scopes apply). initialize and tools/list answer without a key, so a client can read the tool list before signing up; calling a tool needs the key.
  • Tools: a subset of this package. Credits, API key, webhook, affiliate, and recap tools are only available through the npm package. The class of each hosted tool is listed at https://www.iris-ai.dev/docs#mcp-hosted.

Available Tools

Campaigns

| Tool | Description | | ------------------------ | ------------------------------------------------------- | | list_campaigns | List campaigns with optional status filter | | create_campaign | Create a new outreach campaign | | get_campaign | Get a campaign by ID with stats | | update_campaign | Update a campaign's name, status, or follow-up settings | | delete_campaign | Soft-delete a campaign (sets status to deleted) | | list_campaign_contacts | List contacts in a campaign with optional status filter | | add_campaign_contacts | Add contacts to a campaign by id or inline; needed before activation | | list_campaign_chats | List iris chat sessions (the conversational campaign builder) | | get_campaign_chat_messages | List the messages in a chat session, oldest first | | rename_campaign_chat | Rename a chat session | | delete_campaign_chat | Soft-delete a chat session | | get_campaign_usage | Get usage limits and current counts for a campaign | | analyze_campaign | Trigger AI analysis to generate target profiles | | list_target_profiles | List target profiles for a campaign | | create_target_profile | Create a target profile for a campaign | | delete_target_profile | Delete a target profile from a campaign |

create_campaign Parameters

| Parameter | Type | Required | Description | | --------------------- | -------------- | -------- | ------------------------------------------------------- | | name | string (1-100) | Yes | Campaign name | | objective_type | enum | Yes | venue_dj, venue_host, product_promotion, custom | | product_name | string (≤200) | No | Product name (for product_promotion) | | product_url | string (URL) | No | Product URL (for product_promotion) | | product_description | string (≤2000) | No | Product description (for product_promotion) |

update_campaign Parameters

| Parameter | Type | Required | Description | | ---------------------- | -------------- | -------- | --------------------------------------------------- | | id | string (UUID) | Yes | Campaign ID | | name | string (1-100) | No | New campaign name | | status | enum | No | draft, active, paused, completed, deleted | | follow_up_enabled | boolean | No | Enable follow-up emails | | follow_up_max_count | number (0-10) | No | Max follow-up count | | follow_up_delay_days | number (1-30) | No | Days between follow-ups |

create_target_profile Parameters

| Parameter | Type | Required | Description | | ---------------------- | -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- | | id | string (UUID) | Yes | Campaign ID | | name | string (1-200) | Yes | Profile name | | profile_type | enum | Yes | local_business, content_creator, influencer, b2b_professional, ecommerce, saas_company, agency, freelancer, other | | job_titles | string[] | No | Target job titles | | industries | string[] | No | Target industries | | discovery_keywords | string[] | No | Keywords for contact discovery | | recommended_channels | string[] | No | email, instagram, twitter, linkedin |

Contacts

| Tool | Description | | ---------------------------- | ----------------------------------------- | | list_contacts | List contacts with search | | create_contact | Create a new contact | | get_contact | Get a contact by ID | | update_contact | Update a contact's details | | delete_contact | Soft-delete a contact | | bulk_import_contacts | Import up to 500 contacts at once | | get_contact_usage | Get usage limits for the billing period | | list_contact_conversations | List conversations for a specific contact |

create_contact Parameters

| Parameter | Type | Required | Description | | -------------- | -------------- | -------- | ----------------------- | | email | string (email) | Yes | Contact email address | | first_name | string (≤100) | No | First name | | last_name | string (≤100) | No | Last name | | company_name | string (≤200) | No | Company name | | job_title | string (≤200) | No | Job title | | phone | string (≤50) | No | Phone number | | website | string (URL) | No | Website URL | | tags | string[] | No | Tags for categorization |

bulk_import_contacts Parameters

| Parameter | Type | Required | Description | | ------------- | ---------------- | -------- | ------------------------------------------------------------------------------------------------ | | contacts | object[] (1-500) | Yes | Array of contacts (email, first_name?, last_name?, company_name?, job_title?, tags?) | | campaign_id | string (UUID) | No | Campaign to add contacts to |

Messages

| Tool | Description | | ------------------------- | ------------------------------------------------ | | list_pending_messages | List messages pending approval | | approve_message | Approve a single pending message | | reject_message | Reject a single pending message | | retry_message | Retry a failed message send | | submit_message_feedback | Submit feedback to improve future AI generations | | bulk_message_action | Bulk approve or reject pending messages |

Conversations

| Tool | Description | | --------------------------- | ------------------------------------------------------- | | list_conversations | List conversations with optional channel/status filters | | get_conversation | Get a conversation by ID | | update_conversation | Update a conversation's status (active, archived, closed) | | get_conversation_messages | List messages in a conversation | | mark_conversation_read | Mark a conversation as read | | get_engagement_metrics | Get engagement metrics across conversations |

AI

| Tool | Description | | --------------------------- | -------------------------------------------------------------------------------- | | generate_content | Generate AI content for a contact conversation (initial email, follow-up, reply) | | generate_campaign_content | Generate campaign-level content (email templates, subject lines, briefs) | | analyze_response | Analyze inbound message sentiment, intent, and suggested action | | get_ai_usage | Get AI generation usage limits |

generate_content Parameters

| Parameter | Type | Required | Description | | ----------------- | -------------- | -------- | ------------------------------------- | | contact_id | string (UUID) | Yes | Contact ID | | conversation_id | string (UUID) | Yes | Conversation ID | | generation_type | enum | Yes | initial_email, follow_up, reply | | context | string (≤2000) | No | Additional context for the AI |

Discovery

| Tool | Description | | -------------------------- | ------------------------------------------------------------- | | search_contacts | Search for contacts by criteria (location, keywords, sources) | | search_campaign_contacts | Run discovery scoped to a campaign's target profiles | | get_discovery_job | Get the status of a discovery job | | list_discovery_sources | List available discovery sources (Google Maps, social) |

Channels

| Tool | Description | | ---------------------------- | ------------------------------------------------------------------ | | list_connected_accounts | List your connected social accounts (Twitter, Instagram, LinkedIn) | | check_channel_availability | Check which channels are reachable for a contact | | send_channel_message | Send a message via a specific channel |

Analytics

| Tool | Description | | ------------------------- | -------------------------------------- | | get_analytics_overview | Account-level analytics overview | | get_campaign_analytics | Per-campaign performance metrics | | get_performance_metrics | Aggregate performance across campaigns | | get_response_time | Response time distribution | | get_contact_types | Engagement broken down by contact type |

Notifications

| Tool | Description | | ----------------------------- | ----------------------------------------------- | | list_notifications | List your notifications | | update_notification | Mark a notification as read or update its state | | delete_notification | Delete a notification | | mark_all_notifications_read | Mark every unread notification as read |

Billing

| Tool | Description | | ------------------- | --------------------------------- | | get_billing_plans | List available subscription plans |

Affiliate

| Tool | Description | | --------------- | ---------------------------------------------------------------------------------------- | | get_affiliate | Your affiliate status, link, sign-ups, and commission totals, with the terms (stdio only) |

CLI: iris affiliate.

Recap

| Tool | Description | | ----------- | ------------------------------------------------------------------------------------------------------------ | | get_recap | Your last 30 days of outreach as counts: sent, conversations, replies, and messages per channel (stdio only) |

CLI: iris recap.

API Keys

| Tool | Description | | --------------------- | ------------------------------------------------- | | get_current_api_key | Get details about the currently authenticated key | | list_api_keys | List all API keys for the account | | create_api_key | Create a new API key (raw key returned once) | | revoke_api_key | Revoke (delete) an API key |

create_api_key Parameters

| Parameter | Type | Required | Description | | ------------ | ----------------- | -------- | --------------------------------------------------------------------------- | | name | string (1-100) | Yes | Key name for identification | | scopes | string[] | No | Permission scopes (defaults to all scopes) — see Scopes | | expires_at | string (ISO 8601) | No | Expiration date |

Webhooks

| Tool | Description | | ------------------------- | ---------------------------------------------------- | | list_webhooks | List all configured webhooks | | create_webhook | Create a new webhook endpoint | | get_webhook | Get a webhook by ID | | update_webhook | Update a webhook's URL, events, or active status | | delete_webhook | Delete a webhook | | test_webhook | Send a test event to a webhook URL | | rotate_webhook_secret | Rotate the signing secret (new secret returned once) | | list_webhook_deliveries | List delivery history for a webhook |

create_webhook Parameters

| Parameter | Type | Required | Description | | ------------- | ------------------ | -------- | -------------------------------------------------------------- | | url | string (HTTPS URL) | Yes | Webhook endpoint URL — HTTPS only | | events | string[] (≥1) | Yes | Events to subscribe to — see Webhook Events | | description | string (≤500) | No | Webhook description |

update_webhook Parameters

| Parameter | Type | Required | Description | | --------- | ------------------ | -------- | ----------------------------- | | id | string (UUID) | Yes | Webhook ID | | url | string (HTTPS URL) | No | New endpoint URL | | events | string[] (≥1) | No | New events to subscribe to | | active | boolean | No | Enable or disable the webhook |

Agent Credits

Credits apply only to agents authenticating via x402 (USDC on Base) or MPP (Stripe). API key users do not need credits.

| Tool | Description | | ---------------------- | ----------------------------------------- | | get_credit_balance | Check the agent credit balance | | purchase_credit_pack | Purchase a 5-credit pack via MPP ($12.00) |

Responder

| Tool | Description | | ---------------------------------- | ------------------------------------------------------------------------------- | | get_responder | Get the config, whether iris is replying right now, and last-30-days counts | | configure_responder | Create or update the responder config | | list_responder_activity | List what the responder did (replies sent, handoffs, skips, failures) | | get_conversation_responder | Get the responder's state for a single conversation | | set_conversation_responder | Pause or resume the responder for a single conversation | | list_responder_comment_triggers | List comment triggers | | create_responder_comment_trigger | Create a comment trigger | | update_responder_comment_trigger | Update a comment trigger's keyword, message, post, or enabled state | | delete_responder_comment_trigger | Delete a comment trigger | | list_responder_posts | List the newest Instagram posts and their media ids, for a trigger's media_id |

The responder answers inbound Instagram DMs for the account owner. It is off by default. It needs an API key and a connected Instagram account, so agents paying by x402 or MPP cannot use it.

  • Replies go only to someone who wrote first.
  • A reply goes out only within 24 hours of their last message.
  • It cannot read photos, videos, or story replies.
  • It cannot see whether someone booked.

A comment trigger watches for a keyword in the comments on the account's Instagram posts. When someone comments it, iris sends that person one direct message: the owner's message as written, followed by the notice that it is automated. Instagram allows one such message per comment, within 7 days of the comment, and nothing more unless the person replies.

  • It sends only while the responder is enabled and not paused, the subscription is active, and status.comment_triggers on get_responder is ready.
  • needs_permission means the owner has to allow comments on the Instagram connection, from the responder settings page in the iris web app. unavailable means comment triggers are not offered on the account yet, and their tools return a 403.
  • A trigger applies to every post, or to one post named by media_id. list_responder_posts lists the newest posts with their ids.
  • Each message sent counts as a message against the plan and shares the account's send pacing. A comment gets no message when it arrives while that pace or the plan's message allowance is reached, or when Instagram refuses or fails the send. iris does not try the same comment again.
  • An account holds up to 20 triggers.

API Key & Scopes

Generate an API key at iris-ai.dev/settings/api-keys.

API keys support fine-grained scopes per resource:

| Scope | Access | | -------------------------------------------- | -------------------------------------------- | | campaigns:read / campaigns:write | Read or modify campaigns | | contacts:read / contacts:write | Read or modify contacts | | conversations:read / conversations:write | Read conversations or send messages | | messages:read / messages:write | Read the queue, approve/reject/send | | ai:read / ai:write | Read AI usage or trigger generations | | discovery:read / discovery:write | Read sources or run discovery jobs | | analytics:read | Read analytics dashboards | | billing:read | Read billing plans | | channels:read / channels:write | Read connected accounts or send via channels | | notifications:read / notifications:write | Read or modify notifications | | webhooks:read / webhooks:write | Read or manage webhook subscriptions | | keys:read / keys:write | Read or manage API keys |

Recommended Scopes by Use Case

| Use Case | Recommended Scopes | | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | AI agents / MCP | campaigns:read, campaigns:write, contacts:read, contacts:write, messages:read, messages:write, ai:read, ai:write, conversations:read, conversations:write | | Read-only monitoring | *:read scopes only | | Webhook management | webhooks:read, webhooks:write | | Discovery automation | discovery:read, discovery:write, contacts:write, campaigns:read |

Webhook Events

| Event | Description | | ----------------------------- | ----------------------------------- | | campaign.created | New campaign created | | campaign.updated | Campaign details changed | | campaign.deleted | Campaign soft-deleted | | contact.created | New contact added | | contact.updated | Contact details changed | | contact.deleted | Contact soft-deleted | | conversation.created | New conversation started | | conversation.reply_received | Inbound reply received | | message.sent | Outbound message sent | | message.delivered | Message confirmed delivered | | message.opened | Email opened (filtered for bots) | | message.bounced | Message bounced | | message.approved | Message approved in the queue | | message.rejected | Message rejected in the queue | | discovery.completed | Discovery job finished successfully | | discovery.failed | Discovery job failed | | responder.reply_sent | Responder sent an automatic reply | | responder.handoff | Responder handed a conversation off |

Webhook deliveries are signed with HMAC-SHA256 using the secret returned from create_webhook / rotate_webhook_secret. Verify the signature in the X-Iris-Signature header before trusting the payload.

Documentation

Full API reference: iris-ai.dev/docs

Development

# install dependencies
npm install

# build
npm run build

# run the MCP server
IRIS_API_KEY=is_live_... npm start