Skip to content

AI

MCP server

@channlize/mcp lets Claude, Cursor, VS Code, Windsurf and other MCP clients read conversations and contacts, send events and query logs.

On this page

@channlize/mcp (0.10.2) is a Model Context Protocol server. It lets an AI assistant work your support inbox (search, reply, add notes, assign, tag, close, routing rules), look up contacts, send Events, query logs and set up the SDK in your code. It runs locally with npx and needs Node.js 20 or later.

Keys

VariableFlagDescription
CHANNLIZE_SERVER_API_KEY--server-api-keyServer key (ch_live_…). Enables the conversation, contact, event and log tools.
CHANNLIZE_WIDGET_KEY--widget-keyWidget key (wk_…). Enables the visitor tools (contact form, chat).
CHANNLIZE_API_KEY--api-keyEither kind, detected by its prefix.
CHANNLIZE_PROJECT_ID--project-idProject for Events and logs. Default: the key's first project.
CHANNLIZE_BASE_URL--base-urlDefault https://api.channlize.com.
CHANNLIZE_TIMEOUT--timeoutRequest timeout in ms, default 10000.

Only the tools your keys allow are listed. Give it a server key with just the read scope for a read-only assistant (see API keys). Run npx -y @channlize/mcp --help for every flag.

Setup

Claude Code

Shell
claude mcp add channlize \
  --env CHANNLIZE_SERVER_API_KEY=ch_live_your_server_key \
  --env CHANNLIZE_PROJECT_ID=your-project-id \
  -- npx -y @channlize/mcp

Add --scope user to use it in every project. Check it with claude mcp list, or /mcp inside Claude Code.

Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude:

claude_desktop_config.json
{
  "mcpServers": {
    "channlize": {
      "command": "npx",
      "args": ["-y", "@channlize/mcp"],
      "env": {
        "CHANNLIZE_SERVER_API_KEY": "ch_live_your_server_key",
        "CHANNLIZE_PROJECT_ID": "your-project-id"
      }
    }
  }
}

Cursor and Windsurf

The same mcpServers block, in ~/.cursor/mcp.json (global) or .cursor/mcp.json (project) for Cursor, and ~/.codeium/windsurf/mcp_config.json for Windsurf. The dashboard's SDK & Integration → MCP Server page also has an Add to Cursor link that installs it in one click.

VS Code

In .vscode/mcp.json, VS Code prompts for the key once and stores it securely, so it never sits in the file:

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "channlize-server-key",
      "description": "Channlize server API key (ch_live_…)",
      "password": true
    }
  ],
  "servers": {
    "channlize": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@channlize/mcp"],
      "env": {
        "CHANNLIZE_SERVER_API_KEY": "${input:channlize-server-key}",
        "CHANNLIZE_PROJECT_ID": "your-project-id"
      }
    }
  }
}

Streamable HTTP

For clients that connect by URL:

Shell
CHANNLIZE_SERVER_API_KEY=ch_live_your_server_key npx -y @channlize/mcp --transport http --port 3333
# → http://127.0.0.1:3333/mcp

It binds to 127.0.0.1 and rejects requests whose Host or Origin isn't localhost. Anyone who can reach the port acts with your key, so don't expose it on a public interface.

Debugging

Shell
npx -y @channlize/mcp --help

# Browse tools, resources and prompts interactively
npx @modelcontextprotocol/inspector npx -y @channlize/mcp

Tools

With a server key:

ToolScopeInput
get_projectanynone. The project, usage and Slack status.
get_analyticsanynone. Daily figures for the last 30 days.
list_conversationsread or inbox:readFilters for status, priority, assignee, project, tag, source, updatedSince and AI triage intent / urgency. Paginated on the server (total, hasMore).
get_conversationread or inbox:readconversationId. The full thread, internal notes flagged.
create_conversationwritecustomerEmail, customerName?, subject, message, channel?, tags? (up to 20)
list_contactsreadlimit (1-100, default 50), offset
get_contactreadcontactId
create_contactwriteemail, name?, company?, phone?, tags?
notify_eventwriteevent, data?, idempotencyKey?, channel?. See Events.
list_event_definitionsreadnone
list_event_deliveriesreaddefinitionId?, limit (1-100, default 20)
query_logsreadseverity?, source?, search?, from?, to?, projectId?, limit, offset
track_logwritename, severity (default info), properties?

With a server key and the inbox scopes (0.5.0 and later):

ToolScopeWhat it does
search_conversationsinbox:readLike list_conversations, matching the subject, customer name or email, or any message's text.
reply_to_conversationinbox:writeReply to the customer as the key, delivered like a dashboard reply and mirrored to the Slack thread. open becomes pending. With Translation on, a reply in another language than the customer's is translated (!raw sends it as written).
add_internal_noteinbox:writeA note in the Slack thread and the conversation, never sent to the customer.
assign_conversationinbox:writeAssign to a teammate by user ID or email, or unassign with null.
tag_conversationinbox:writeadd, remove or set tags.
close_conversation, reopen_conversationinbox:writeStatus closed (or resolved), or back to open. Nothing is sent to the customer.
get_analytics_summaryanalytics:readKPIs for a period against the previous one, and the inbox now.
get_analytics_reportanalytics:readThe full report: new, resolved and reopened conversations, first-reply and resolution times (median, p90, histogram), first-reply target met %, daily series, busiest hours and AI deflection, with filters and the previous period.
get_analytics_breakdownanalytics:readOne row per project, source, Connection, assignee, AI agent, tag, intent, urgency, sentiment or language.
get_analytics_assigneesanalytics:readWorkload and response times per teammate, AI agent and unassigned.
list_routing_rulesrouting:write, inbox:read or readRouting rules in evaluation order.
create_routing_rule, update_routing_rule, delete_routing_rulerouting:writeManage routing rules.
get_conversation_slainbox:readThe first-reply target state (ok, due_soon, breached, met), when the reply is due, and the organization's target. get_conversation returns it too.
list_webhook_endpoints, get_webhook_endpoint, list_webhook_events, list_webhook_deliverieswebhooks:readRead webhook endpoints, the event catalog and delivery logs.
create_webhook_endpoint, update_webhook_endpoint, delete_webhook_endpoint, rotate_webhook_secret, test_webhook_endpoint, resend_webhook_deliverywebhooks:writeManage endpoints. A new or rotated secret is returned once.
get_ai_overage_statusorg:readWhether AI overage is available and on, the spend limit state (off, ok, warning, reached) and when the period ends. No amounts.
get_sso_settingsorg:readThe SSO protocol, enabled and enforced, verified domains, and whether two-factor is required. No secrets.

Assignee filters (GET /v1/conversations, used by list_conversations and search_conversations) are about teammates. assignee=unassigned means no teammate is assigned, so it includes conversations held by an AI agent. assigned means a teammate is assigned. Each conversation reports the AI agent holding it separately, as aiAgent: { id, name } (null when none) next to the teammate assignee. The dashboard's "Unassigned" filter is stricter: nobody, neither a teammate nor an AI agent.

The inbox tools act as a named agent, the key's name: a reply shows in Slack as "Replied by Support bot (agent)". Use one key per assistant. A plain write key can't reply or change routing.

With a widget key:

ToolInput
submit_contact_formname, email, subject?, message, pageUrl?
create_chat_sessionmetadata?
send_messagesessionId, content (up to 5,000 characters)
get_chat_messagessessionId, limit, offset
close_chat_sessionsessionId

With an agent key (0.5.0 and later), the server has the Channlize for Agents tools: send_agent_message, create_task, update_task, update_task_status, handoff_task, list_tasks, get_task_board, read_agent_inbox, ack_agent_messages, list_agents, list_agent_channels, the ask-people tools ask_human, get_answer, cancel_question, list_questions and answer_escalated_question, and the read-only get_org_chart and get_effective_policy. From 0.6.0 it also has the read-only search_agent_messages (Search), get_agent_graph, get_agent_cost and get_agent_metrics (Insights) tools (agents:read). Set CHANNLIZE_AGENT_ID (--agent-id) to the agent they act as. See the MCP section of the agents quick start.

Warning

create_conversation, notify_event, reply_to_conversation and the widget tools post to your real Slack channels, and reply_to_conversation reaches the customer. Most clients ask before running a tool; keep that confirmation on.

Prompts

PromptArgumentsNeeds
triage-conversationsstatus?, limit?server key
summarize-conversationconversationIdserver key
check-eventsnoneserver key
setup-eventsevents?none
setup-live-chatframework?none
integrate-contact-formstyling?none

The setup-* and integrate-* prompts walk the assistant through adding the SDK to your code and don't call the API, but the server still needs a server or widget key to start.

Resources

URIContent
channlize://docs/quick-startQuick start for the SDK.
channlize://docs/react-componentsReact components and props.
channlize://docs/eventsEvents and notify().
channlize://projectYour project as JSON (server key only).