# Set up Notifly

These are official instructions from Notifly to set up an AI development environment for Notifly — hosted notification infrastructure: one API for email, SMS, push, in-app inbox and chat. All commands are validated by Notifly. Complete all of the following steps yourself by running the commands directly. Do not ask the user to run any of these commands.

Canonical copy: https://notifly.io/agent-setup/prompt.md · Human-readable guide: https://notifly.io/agent-setup

# Notifly — agent brief
What it is: Notifly is a notification infrastructure platform: workflows, subscribers, topics, in-app inbox, email, SMS, push and chat delivery. Who it's for: product and engineering teams that send notifications.
Connect: MCP https://api.notifly.io/mcp (OAuth; pick permissions on the consent page — all on by default) or an API key sent as the `Authorization` header with the value `ApiKey`, a space, then the key. Directory: https://claude.ai/directory/89628c79-4682-42a6-94ba-3609656bec64
What you can do (every Notifly feature is available here):
- core: `get_subscriber`, `get_workflow`, `list_notifications`, `list_organizations`, `list_subscribers`, `list_topics`, `list_workflows`, `trigger_workflow` — e.g. "which organizations can you act in?"
- account: `change_email`, `change_password`, `delete_account`, `disconnect_sign_in_method`, `export_data`, `get_profile`, `get_referral_summary`, `list_sign_in_methods`, `set_onboarding_state`, `update_notification_prefs`, `update_profile`, `update_referral_ui_state` — e.g. "export my organization's data"
- agents: `add_agent_integration`, `cancel_human_interaction`, `configure_agent_photon_webhook`, `configure_agent_sendblue_webhook`, `configure_agent_whatsapp_webhook`, `create_agent`, `create_agent_skill`, `create_human_interaction`, `create_slack_setup_link`, `delete_agent`, `disable_agent_mcp_server`, `enable_agent_mcp_server`, `ensure_agent_provider_vault`, `generate_agent`, `generate_agent_mcp_oauth_url`, `get_agent`, `get_agent_conversation_usage`, `get_agent_demo_quota`, `get_agent_mcp_connection`, `get_agent_runtime_config`, `get_agent_usage`, `get_human_interaction`, `list_agent_emoji`, `list_agent_integrations`, `list_agent_mcp_servers`, `list_agents`, `list_human_contacts`, `list_human_interactions`, `migrate_agent_runtime`, `register_agent_photon_recipient`, `remove_agent_integration`, `remove_agent_photon_webhooks`, `remove_agent_sendblue_webhooks`, `send_agent_welcome_message`, `set_agent_inbox_shared`, `set_agent_mcp_servers`, `setup_human_channel`, `test_agent_email`, `test_agent_photon_message`, `test_agent_sendblue_message`, `test_agent_whatsapp_template`, `update_agent`, `update_agent_bridge`, `update_agent_integration`, `update_agent_runtime_config`, `verify_agent_credentials` — e.g. "create an agent and attach it to Slack"
- billing: `billing_status`, `list_plans`, `manage_subscription`, `start_pro_trial`, `upgrade_plan` — e.g. "upgrade me to the Pro plan, billed yearly"
- connections: `claim_slack_marketplace_install`, `configure_integration_webhook`, `create_channel_connection`, `create_channel_endpoint`, `create_integration`, `create_mobile_link`, `create_vercel_integration`, `delete_channel_connection`, `delete_channel_endpoint`, `disconnect`, `disconnect_sendly`, `get_channel_connection`, `get_channel_endpoint`, `get_connect_links`, `get_in_app_status`, `get_msteams_deploy_url`, `get_msteams_health`, `get_provider_limit`, `get_sendly_config`, `get_vercel_integration`, `get_webhook_support_status`, `get_whatsapp_signup_availability`, `link_channel_endpoint`, `list_channel_connections`, `list_channel_endpoints`, `list_connected_apps`, `list_connections`, `list_sendly_domains`, `list_sendly_projects`, `list_vercel_projects`, `preview_slack_marketplace_claim`, `reverify`, `revoke_connected_app`, `set_primary_integration`, `slack_quick_setup`, `update_channel_connection`, `update_channel_endpoint`, `update_integration`, `update_vercel_integration`, `validate_whatsapp_token` — e.g. "connect our Slack workspace"
- content: `create_context`, `create_environment_variable`, `create_feed`, `create_layout`, `create_notification_group`, `create_tenant`, `create_workflow_override`, `delete_context`, `delete_environment_variable`, `delete_feed`, `delete_layout`, `delete_notification_group`, `delete_tenant`, `delete_workflow_override`, `duplicate_layout`, `get_context`, `get_environment_variable`, `get_environment_variable_usage`, `get_layout`, `get_layout_usage`, `get_notification_group`, `get_tenant`, `get_workflow_override`, `get_workflow_override_for_tenant`, `list_contexts`, `list_environment_variables`, `list_feeds`, `list_layouts`, `list_notification_groups`, `list_tenants`, `list_workflow_overrides`, `preview_layout`, `set_default_layout`, `set_workflow_override_for_tenant`, `update_context`, `update_environment_variable`, `update_layout`, `update_notification_group`, `update_tenant`, `update_workflow_override` — e.g. "add a layout and an environment variable"
- environments: `approve_cli_device`, `claim_connect_session`, `create_domain`, `create_domain_route`, `create_environment`, `create_webhook_portal_token`, `delete_domain`, `delete_domain_route`, `delete_environment`, `diagnose_domain`, `diff_environment`, `get_current_environment`, `get_domain`, `get_domain_auto_configure`, `get_domain_route`, `get_environment_tags`, `get_mx_status`, `list_domain_routes`, `list_domains`, `list_environments`, `publish_environment`, `start_domain_auto_configure`, `test_domain_route`, `update_domain`, `update_domain_route`, `update_environment`, `verify_domain` — e.g. "promote my development workflows to production"
- events: `broadcast_event`, `cancel_trigger`, `delete_message`, `delete_messages_by_transaction`, `get_activity_charts`, `get_execution_details`, `get_notification`, `get_notification_stats`, `get_request_traces`, `get_workflow_run`, `list_messages`, `list_request_logs`, `list_workflow_runs`, `send_test_email`, `trigger_bulk` — e.g. "send the welcome workflow to subscriber 42"
- keys: `create_api_key`, `list_api_keys`, `list_granted_scopes`, `request_scopes`, `revoke_api_key`, `rotate_api_key`, `set_api_key_tiers` — e.g. "create a read-only API key"
- misc: `delete_preferences`, `get_blueprint`, `get_preferences`, `get_upload_url`, `list_blueprints`, `upsert_preferences` — e.g. "list the ready-made workflow templates"
- security: `create_scim_directory`, `delete_scim_directory`, `delete_sso_connection`, `export_audit_logs`, `get_sso_config`, `list_audit_logs`, `update_sso_settings`, `upsert_sso_connection` — e.g. "show who changed the billing settings last week"
- subscribers: `bulk_create_subscribers`, `bulk_update_subscriber_notifications`, `bulk_update_subscriber_preferences`, `complete_notification_action`, `count_subscriber_notifications`, `create_subscriber`, `delete_all_subscriber_notifications`, `delete_subscriber`, `delete_subscriber_credentials`, `delete_subscriber_notification`, `get_subscriber_preferences`, `list_subscriber_notifications`, `list_subscriber_topics`, `register_device_token`, `remove_device_token`, `set_subscriber_credentials`, `set_subscriber_online_status`, `update_subscriber`, `update_subscriber_notification`, `update_subscriber_preferences` — e.g. "add a subscriber and set their preferences"
- support: `create_support_ticket`, `list_support_tickets` — e.g. "open a support ticket about bounced emails"
- team: `bulk_invite_members`, `create_team`, `delete_team`, `get_organization`, `get_organization_settings`, `invite_member`, `list_invites`, `list_members`, `list_my_organizations`, `remove_member`, `rename_organization`, `resend_invite`, `revoke_invite`, `update_member_role`, `update_organization_branding`, `update_organization_settings` — e.g. "invite jane@acme.com as an author"
- topics: `add_topic_subscriptions`, `delete_topic`, `get_topic`, `get_topic_subscription`, `list_topic_subscriptions`, `remove_topic_subscriptions`, `update_topic`, `update_topic_subscription`, `upsert_topic` — e.g. "subscribe these users to the product-updates topic"
- workflows: `apply_change`, `apply_changes`, `bridge_stateless`, `bridge_stateless_preview`, `bridge_status`, `bridge_sync`, `count_changes`, `create_workflow`, `delete_translation_group`, `delete_workflow`, `diff_bridge`, `disconnect_step_resolver`, `duplicate_workflow`, `get_master_translations`, `get_step_controls`, `get_step_resolver_count`, `get_translation`, `get_translation_group`, `get_workflow_step`, `get_workflow_test_data`, `get_workflow_variables`, `list_changes`, `list_translations`, `patch_workflow`, `preview_bridge_step`, `preview_email_template`, `preview_workflow_step`, `save_translation`, `set_step_controls`, `sync_workflow`, `test_http_request`, `update_workflow`, `validate_bridge_url` — e.g. "create a welcome workflow with an email step"
Destructive actions (delete, publish, send, cancel) ask you to confirm once via confirmToken — state the action to the user first.
Choices the platform requires the human to make: plan and billing interval (upgrade_plan), member role (invite_member), what an API key may do (create_api_key) — ask the user, pass their answer as the argument.
Upgrading/cancelling: call upgrade_plan / manage_subscription; you get a one-click link.
If something is refused, the error's `next` field names the tool to call.

## Checklist

- [ ] 1. Get credentials — the environment's secret key, stored as `NOTIFLY_SECRET_KEY`
- [ ] 2. Connect the Notifly MCP server to the agent you are running in
- [ ] 3. Install the Notifly SDK for this project's language
- [ ] 4. Verify the connection
- [ ] 5. Print the completion message

## 1. Get credentials

The MCP server needs no key: it signs in with OAuth 2.1 (step 2). The SDK and the REST API authenticate with the environment's **secret key**, sent as `Authorization: ApiKey …`.

1. If `NOTIFLY_SECRET_KEY` is already set in the environment or in the project's `.env`, use it and do not ask.
2. Otherwise ask the user ONCE, in one message: "Paste your Notifly secret key — find it at https://app.notifly.io → choose the environment (Development or Production) in the sidebar → API Keys → Secret Keys (an agent connected to the Notifly MCP server can create one with create_api_key)." If they have no account, the free plan needs no credit card: https://app.notifly.io/auth/sign-up
3. Keys are per environment: the Development and Production environments have different secret keys, and a key only sees its own environment's workflows and subscribers.
4. Store it in the project's `.env` as one line, `NOTIFLY_SECRET_KEY=` followed by the key (no spaces around `=`), and make sure `.env` is listed in `.gitignore`. Never write the key into source files, never commit it, and never echo it back in full.

## 2. Connect the MCP server

Endpoint: `https://api.notifly.io/mcp` (Streamable HTTP). Register it under the name `notifly`. Detect which agent you are running in and follow ONLY that section. No key goes into the MCP config — the client signs in with OAuth 2.1, and the scopes the user grants on the consent screen can never exceed their own role in Notifly.

### Claude Code

Run:

```bash
claude mcp add --transport http notifly https://api.notifly.io/mcp
```

Sign-in: Claude Code opens the Notifly sign-in and consent screen in the browser when the server first needs it. /mcp is an in-app command you cannot run from a shell: if no sign-in appears, tell the user to type /mcp in Claude Code, pick notifly and choose Authenticate.

### Codex

Run:

```bash
codex mcp add notifly --url https://api.notifly.io/mcp
codex mcp login notifly
```

Sign-in: codex mcp login notifly opens the Notifly sign-in and consent page in the browser.

### Cursor

Add this to the MCP config file (merge into the existing object if the file already exists — do not overwrite other servers):

- .cursor/mcp.json (this project)
- ~/.cursor/mcp.json (every project)

```json
{
  "mcpServers": {
    "notifly": {
      "url": "https://api.notifly.io/mcp"
    }
  }
}
```

Sign-in: Cursor runs the OAuth sign-in (dynamic client registration) in the browser the first time it connects to the server.

### OpenCode

Add this to the MCP config file (merge into the existing object if the file already exists — do not overwrite other servers):

- opencode.json or opencode.jsonc (project root)

```jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "notifly": {
      "type": "remote",
      "url": "https://api.notifly.io/mcp",
      "enabled": true
    }
  }
}
```

Then run:

```bash
opencode mcp auth notifly
```

Sign-in: opencode mcp auth notifly opens the Notifly sign-in and consent page in the browser (OpenCode also starts it on its own when the server first answers 401).

### Windsurf

Add this to the MCP config file (merge into the existing object if the file already exists — do not overwrite other servers):

- mcp_config.json — open it from the Cascade panel: … (Actions) menu → Open MCP config file
- Current docs (now published as Devin Desktop) place it at ~/.config/devin/mcp_config.json on macOS/Linux and %APPDATA%\devin\mcp_config.json on Windows
- Installs still branded Windsurf use the legacy path ~/.codeium/windsurf/mcp_config.json (%USERPROFILE%\.codeium\windsurf\mcp_config.json on Windows): if that directory exists, write the config there instead

```json
{
  "mcpServers": {
    "notifly": {
      "serverUrl": "https://api.notifly.io/mcp"
    }
  }
}
```

Sign-in: Cascade supports OAuth for HTTP servers and opens the Notifly sign-in in the browser on first connect.

### VS Code + GitHub Copilot

Add this to the MCP config file (merge into the existing object if the file already exists — do not overwrite other servers):

- .vscode/mcp.json (this workspace)

```json
{
  "servers": {
    "notifly": {
      "type": "http",
      "url": "https://api.notifly.io/mcp"
    }
  }
}
```

Sign-in: VS Code handles the OAuth flow and opens the Notifly sign-in in the browser the first time the server starts.

Tools the server serves once signed in. It exposes them through Code Mode: call its `search_tools` tool with a query to find one, then `execute_typescript` to run it.

- core: `get_subscriber`, `get_workflow`, `list_notifications`, `list_organizations`, `list_subscribers`, `list_topics`, `list_workflows`, `trigger_workflow`
- account: `change_email`, `change_password`, `delete_account`, `disconnect_sign_in_method`, `export_data`, `get_profile`, `get_referral_summary`, `list_sign_in_methods`, `set_onboarding_state`, `update_notification_prefs`, `update_profile`, `update_referral_ui_state`
- agents: `add_agent_integration`, `cancel_human_interaction`, `configure_agent_photon_webhook`, `configure_agent_sendblue_webhook`, `configure_agent_whatsapp_webhook`, `create_agent`, `create_agent_skill`, `create_human_interaction`, `create_slack_setup_link`, `delete_agent`, `disable_agent_mcp_server`, `enable_agent_mcp_server`, `ensure_agent_provider_vault`, `generate_agent`, `generate_agent_mcp_oauth_url`, `get_agent`, `get_agent_conversation_usage`, `get_agent_demo_quota`, `get_agent_mcp_connection`, `get_agent_runtime_config`, `get_agent_usage`, `get_human_interaction`, `list_agent_emoji`, `list_agent_integrations`, `list_agent_mcp_servers`, `list_agents`, `list_human_contacts`, `list_human_interactions`, `migrate_agent_runtime`, `register_agent_photon_recipient`, `remove_agent_integration`, `remove_agent_photon_webhooks`, `remove_agent_sendblue_webhooks`, `send_agent_welcome_message`, `set_agent_inbox_shared`, `set_agent_mcp_servers`, `setup_human_channel`, `test_agent_email`, `test_agent_photon_message`, `test_agent_sendblue_message`, `test_agent_whatsapp_template`, `update_agent`, `update_agent_bridge`, `update_agent_integration`, `update_agent_runtime_config`, `verify_agent_credentials`
- billing: `billing_status`, `list_plans`, `manage_subscription`, `start_pro_trial`, `upgrade_plan`
- connections: `claim_slack_marketplace_install`, `configure_integration_webhook`, `create_channel_connection`, `create_channel_endpoint`, `create_integration`, `create_mobile_link`, `create_vercel_integration`, `delete_channel_connection`, `delete_channel_endpoint`, `disconnect`, `disconnect_sendly`, `get_channel_connection`, `get_channel_endpoint`, `get_connect_links`, `get_in_app_status`, `get_msteams_deploy_url`, `get_msteams_health`, `get_provider_limit`, `get_sendly_config`, `get_vercel_integration`, `get_webhook_support_status`, `get_whatsapp_signup_availability`, `link_channel_endpoint`, `list_channel_connections`, `list_channel_endpoints`, `list_connected_apps`, `list_connections`, `list_sendly_domains`, `list_sendly_projects`, `list_vercel_projects`, `preview_slack_marketplace_claim`, `reverify`, `revoke_connected_app`, `set_primary_integration`, `slack_quick_setup`, `update_channel_connection`, `update_channel_endpoint`, `update_integration`, `update_vercel_integration`, `validate_whatsapp_token`
- content: `create_context`, `create_environment_variable`, `create_feed`, `create_layout`, `create_notification_group`, `create_tenant`, `create_workflow_override`, `delete_context`, `delete_environment_variable`, `delete_feed`, `delete_layout`, `delete_notification_group`, `delete_tenant`, `delete_workflow_override`, `duplicate_layout`, `get_context`, `get_environment_variable`, `get_environment_variable_usage`, `get_layout`, `get_layout_usage`, `get_notification_group`, `get_tenant`, `get_workflow_override`, `get_workflow_override_for_tenant`, `list_contexts`, `list_environment_variables`, `list_feeds`, `list_layouts`, `list_notification_groups`, `list_tenants`, `list_workflow_overrides`, `preview_layout`, `set_default_layout`, `set_workflow_override_for_tenant`, `update_context`, `update_environment_variable`, `update_layout`, `update_notification_group`, `update_tenant`, `update_workflow_override`
- environments: `approve_cli_device`, `claim_connect_session`, `create_domain`, `create_domain_route`, `create_environment`, `create_webhook_portal_token`, `delete_domain`, `delete_domain_route`, `delete_environment`, `diagnose_domain`, `diff_environment`, `get_current_environment`, `get_domain`, `get_domain_auto_configure`, `get_domain_route`, `get_environment_tags`, `get_mx_status`, `list_domain_routes`, `list_domains`, `list_environments`, `publish_environment`, `start_domain_auto_configure`, `test_domain_route`, `update_domain`, `update_domain_route`, `update_environment`, `verify_domain`
- events: `broadcast_event`, `cancel_trigger`, `delete_message`, `delete_messages_by_transaction`, `get_activity_charts`, `get_execution_details`, `get_notification`, `get_notification_stats`, `get_request_traces`, `get_workflow_run`, `list_messages`, `list_request_logs`, `list_workflow_runs`, `send_test_email`, `trigger_bulk`
- keys: `create_api_key`, `list_api_keys`, `list_granted_scopes`, `request_scopes`, `revoke_api_key`, `rotate_api_key`, `set_api_key_tiers`
- misc: `delete_preferences`, `get_blueprint`, `get_preferences`, `get_upload_url`, `list_blueprints`, `upsert_preferences`
- security: `create_scim_directory`, `delete_scim_directory`, `delete_sso_connection`, `export_audit_logs`, `get_sso_config`, `list_audit_logs`, `update_sso_settings`, `upsert_sso_connection`
- subscribers: `bulk_create_subscribers`, `bulk_update_subscriber_notifications`, `bulk_update_subscriber_preferences`, `complete_notification_action`, `count_subscriber_notifications`, `create_subscriber`, `delete_all_subscriber_notifications`, `delete_subscriber`, `delete_subscriber_credentials`, `delete_subscriber_notification`, `get_subscriber_preferences`, `list_subscriber_notifications`, `list_subscriber_topics`, `register_device_token`, `remove_device_token`, `set_subscriber_credentials`, `set_subscriber_online_status`, `update_subscriber`, `update_subscriber_notification`, `update_subscriber_preferences`
- support: `create_support_ticket`, `list_support_tickets`
- team: `bulk_invite_members`, `create_team`, `delete_team`, `get_organization`, `get_organization_settings`, `invite_member`, `list_invites`, `list_members`, `list_my_organizations`, `remove_member`, `rename_organization`, `resend_invite`, `revoke_invite`, `update_member_role`, `update_organization_branding`, `update_organization_settings`
- topics: `add_topic_subscriptions`, `delete_topic`, `get_topic`, `get_topic_subscription`, `list_topic_subscriptions`, `remove_topic_subscriptions`, `update_topic`, `update_topic_subscription`, `upsert_topic`
- workflows: `apply_change`, `apply_changes`, `bridge_stateless`, `bridge_stateless_preview`, `bridge_status`, `bridge_sync`, `count_changes`, `create_workflow`, `delete_translation_group`, `delete_workflow`, `diff_bridge`, `disconnect_step_resolver`, `duplicate_workflow`, `get_master_translations`, `get_step_controls`, `get_step_resolver_count`, `get_translation`, `get_translation_group`, `get_workflow_step`, `get_workflow_test_data`, `get_workflow_variables`, `list_changes`, `list_translations`, `patch_workflow`, `preview_bridge_step`, `preview_email_template`, `preview_workflow_step`, `save_translation`, `set_step_controls`, `sync_workflow`, `test_http_request`, `update_workflow`, `validate_bridge_url`

## 3. Install the SDK

Detect the project's language from its manifest (`package.json`, `pyproject.toml` / `requirements.txt`) and install the matching package with the project's package manager. Both SDKs take the secret key as an argument. Neither SDK reads `.env` on its own, so each smoke snippet below loads `.env` first and stops with a clear error if `NOTIFLY_SECRET_KEY` is still empty. Keep that loading step, or replace it with the project's own env loader (dotenv, python-dotenv, the framework's config).

### Node.js / TypeScript — `@notiflyio/api` 0.1.26 (npm)

```bash
npm install @notiflyio/api@0.1.26
```

```ts
// notifly-check.mjs (ES module: top-level await). Run: node notifly-check.mjs
import { existsSync } from "node:fs";
import { Notifly } from "@notiflyio/api";

// Step 1 stored the key in .env; load it (an already-exported key is kept).
if (existsSync(".env")) process.loadEnvFile(".env");
const secretKey = process.env.NOTIFLY_SECRET_KEY;
if (!secretKey) throw new Error("NOTIFLY_SECRET_KEY is not set: store it in .env first (step 1)");

const notifly = new Notifly({ security: { secretKey } });

const { result } = await notifly.workflows.list({ limit: 1 });
console.log(`Connected to Notifly: ${result.totalCount} workflow(s)`);
```

### Python — `notifly-sdk` 0.1.0 (PyPI)

```bash
pip install notifly-sdk==0.1.0
```

```python
# notifly_check.py. Run: python notifly_check.py
import os
from pathlib import Path

from notifly_py import Notifly  # distribution notifly-sdk, import name notifly_py

# Step 1 stored the key in .env; load it (an already-exported key is kept).
env_file = Path(".env")
if env_file.exists():
    for line in env_file.read_text().splitlines():
        name, sep, value = line.removeprefix("export ").partition("=")
        if sep and not name.strip().startswith("#"):
            os.environ.setdefault(name.strip(), value.strip().strip("\"'"))

secret_key = os.environ.get("NOTIFLY_SECRET_KEY")
if not secret_key:
    raise SystemExit("NOTIFLY_SECRET_KEY is not set: store it in .env first (step 1)")

with Notifly(secret_key) as notifly:
    page = notifly.workflows.list(limit=1)
    print(f"Connected to Notifly: {int(page.total_count)} workflow(s)")
```

### Any other language — REST

There is no SDK for other languages yet; call the REST API directly with `Authorization: ApiKey` and the secret key. Every operation is in the API reference (https://notifly.io/docs/api-reference) and the OpenAPI document (https://api.notifly.io/openapi.json).

## 4. Verify

Run these lines together in ONE shell session, from the project root. A shell does not read `.env` by itself: the first line exports it, and the second stops with "NOTIFLY_SECRET_KEY is not set" instead of sending an empty key.

```bash
if [ -f .env ]; then set -a; . ./.env; set +a; fi
: "${NOTIFLY_SECRET_KEY:?NOTIFLY_SECRET_KEY is not set: store it in .env first (step 1)}"
curl -sS -w "\nHTTP %{http_code}\n" -H "Authorization: ApiKey $NOTIFLY_SECRET_KEY" "https://api.notifly.io/v2/workflows?limit=1"
```

Success: `HTTP 200` and a JSON body that contains `totalCount` (a new account has 0 workflows — that still passes). If the script stops with "NOTIFLY_SECRET_KEY is not set", the key never reached the shell: fix the `.env` entry from step 1 (one `NOTIFLY_SECRET_KEY=…` line) and do not blame the key. `HTTP 401` with the key loaded means the key is wrong or was copied from a different environment: ask the user to re-copy it from https://app.notifly.io and run the check again. If the SDK was installed, also run the SDK snippet from step 3; it calls the same `GET /v2/workflows` endpoint.

If the MCP server is connected, call the `list_workflows` tool. The first call triggers the sign-in and consent screen if the user has not approved it yet.

## 5. Completion message

Print this summary, filling in the bracketed parts from what you actually did:

```text
Notifly is set up.
- MCP server: "notifly" (https://api.notifly.io/mcp) added to [agent name]
- SDK: [package and version installed, or "REST API"]
- Credentials: NOTIFLY_SECRET_KEY stored in [file] (git-ignored, not committed)
- Verified: GET /v2/workflows returned HTTP 200 ([n] workflows)

Still to do:
- Approve the Notifly sign-in and consent screen in your browser the first time a Notifly tool runs.
- Create a workflow at https://app.notifly.io (or ask me to), then trigger it from code.
- Optional: ask me to trigger a workflow for a test subscriber. Sending real notifications asks you to confirm each time.
```

## Optional next step: wire a Notifly agent into a channel

To wire a Notifly agent into a channel (Slack, Microsoft Teams, Telegram and others), follow https://notifly.io/agents.md

## Resources

- Documentation: https://notifly.io/docs
- FAQ: https://notifly.io/docs/faq
- llms.txt: https://notifly.io/llms.txt
- API reference: https://notifly.io/docs/api-reference
- OpenAPI document: https://api.notifly.io/openapi.json
- MCP guide: https://notifly.io/docs/connecting-ai-assistants
- Support: support@notifly.io
