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
| Variable | Flag | Description |
|---|---|---|
CHANNLIZE_SERVER_API_KEY | --server-api-key | Server key (ch_live_…). Enables the conversation, contact, event and log tools. |
CHANNLIZE_WIDGET_KEY | --widget-key | Widget key (wk_…). Enables the visitor tools (contact form, chat). |
CHANNLIZE_API_KEY | --api-key | Either kind, detected by its prefix. |
CHANNLIZE_PROJECT_ID | --project-id | Project for Events and logs. Default: the key's first project. |
CHANNLIZE_BASE_URL | --base-url | Default https://api.channlize.com. |
CHANNLIZE_TIMEOUT | --timeout | Request 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
claude mcp add channlize \
--env CHANNLIZE_SERVER_API_KEY=ch_live_your_server_key \
--env CHANNLIZE_PROJECT_ID=your-project-id \
-- npx -y @channlize/mcpAdd --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:
{
"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:
{
"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:
CHANNLIZE_SERVER_API_KEY=ch_live_your_server_key npx -y @channlize/mcp --transport http --port 3333
# → http://127.0.0.1:3333/mcpIt 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
npx -y @channlize/mcp --help
# Browse tools, resources and prompts interactively
npx @modelcontextprotocol/inspector npx -y @channlize/mcpTools
With a server key:
| Tool | Scope | Input |
|---|---|---|
get_project | any | none. The project, usage and Slack status. |
get_analytics | any | none. Daily figures for the last 30 days. |
list_conversations | read or inbox:read | Filters for status, priority, assignee, project, tag, source, updatedSince and AI triage intent / urgency. Paginated on the server (total, hasMore). |
get_conversation | read or inbox:read | conversationId. The full thread, internal notes flagged. |
create_conversation | write | customerEmail, customerName?, subject, message, channel?, tags? (up to 20) |
list_contacts | read | limit (1-100, default 50), offset |
get_contact | read | contactId |
create_contact | write | email, name?, company?, phone?, tags? |
notify_event | write | event, data?, idempotencyKey?, channel?. See Events. |
list_event_definitions | read | none |
list_event_deliveries | read | definitionId?, limit (1-100, default 20) |
query_logs | read | severity?, source?, search?, from?, to?, projectId?, limit, offset |
track_log | write | name, severity (default info), properties? |
With a server key and the inbox scopes (0.5.0 and later):
| Tool | Scope | What it does |
|---|---|---|
search_conversations | inbox:read | Like list_conversations, matching the subject, customer name or email, or any message's text. |
reply_to_conversation | inbox:write | Reply 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_note | inbox:write | A note in the Slack thread and the conversation, never sent to the customer. |
assign_conversation | inbox:write | Assign to a teammate by user ID or email, or unassign with null. |
tag_conversation | inbox:write | add, remove or set tags. |
close_conversation, reopen_conversation | inbox:write | Status closed (or resolved), or back to open. Nothing is sent to the customer. |
get_analytics_summary | analytics:read | KPIs for a period against the previous one, and the inbox now. |
get_analytics_report | analytics:read | The 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_breakdown | analytics:read | One row per project, source, Connection, assignee, AI agent, tag, intent, urgency, sentiment or language. |
get_analytics_assignees | analytics:read | Workload and response times per teammate, AI agent and unassigned. |
list_routing_rules | routing:write, inbox:read or read | Routing rules in evaluation order. |
create_routing_rule, update_routing_rule, delete_routing_rule | routing:write | Manage routing rules. |
get_conversation_sla | inbox:read | The 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_deliveries | webhooks:read | Read 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_delivery | webhooks:write | Manage endpoints. A new or rotated secret is returned once. |
get_ai_overage_status | org:read | Whether AI overage is available and on, the spend limit state (off, ok, warning, reached) and when the period ends. No amounts. |
get_sso_settings | org:read | The 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:
| Tool | Input |
|---|---|
submit_contact_form | name, email, subject?, message, pageUrl? |
create_chat_session | metadata? |
send_message | sessionId, content (up to 5,000 characters) |
get_chat_messages | sessionId, limit, offset |
close_chat_session | sessionId |
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
| Prompt | Arguments | Needs |
|---|---|---|
triage-conversations | status?, limit? | server key |
summarize-conversation | conversationId | server key |
check-events | none | server key |
setup-events | events? | none |
setup-live-chat | framework? | none |
integrate-contact-form | styling? | 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
| URI | Content |
|---|---|
channlize://docs/quick-start | Quick start for the SDK. |
channlize://docs/react-components | React components and props. |
channlize://docs/events | Events and notify(). |
channlize://project | Your project as JSON (server key only). |