How do Claude Code channels push external events into a running session, and what must be true before a channel server's messages actually arrive?
answer
- push, not pull
- a capability the server declares
- named at startup, every session
- allowlists for plugins and senders
- research preview, claude.ai or Console auth
basics
~20 sA channel is an MCP server declaring the claude/channel capability that pushes events into an open Claude Code session. They arrive only if you name it with --channels at startup, it is allowlisted, and your organization permits channels.
solid answer
~40 sChannels are a **research preview**. A channel server declares the `claude/channel` capability and emits `notifications/claude/channel` events, which reach Claude as `<channel>` tags in a session that is already running, so Claude can react to CI results, alerts or chat messages while you're away; two-way channels also expose a reply tool. Being configured, even in `.mcp.json`, isn't enough: you opt each server in per session with `claude --channels plugin:<name>@<marketplace>`, and during the preview it must be on the Anthropic-maintained allowlist or your organization's `allowedChannelPlugins`. Channels need claude.ai or Console API-key authentication and aren't available on Bedrock, Google Cloud's Agent Platform or Foundry. On claude.ai Team and Enterprise they stay blocked until `channelsEnabled` is set, and events arrive only while the session is open.
go deeper
Recall that a channel pushes events into a session that is already open and that you opt in with the --channels flag each time you start.
Explain the capability a channel server declares, how events reach Claude as channel tags, and how a reply tool makes the channel two-way.
Diagnose a channel that connects but delivers nothing: missing --channels, an allowlist miss, channelsEnabled unset, or a server on the newer protocol revision.
Weigh pushing events into a live local session against cloud sessions or polling, and set who may sit on a sender allowlist that can approve tool use.
## What a channel is A standard MCP server is **pulled**: Claude queries it during a task, and nothing reaches the session unless Claude asks. A **channel** is an MCP server that **pushes**: it sends events into a Claude Code session you already have open, so Claude can react to things that happen while you are not at the terminal. Channels are a **research preview**: the `--channels` flag syntax and the protocol contract may change, and the flags don't appear in `claude --help` while the preview lasts. Typical uses: - a **chat bridge**: you message Claude from Telegram, Discord or iMessage and the reply comes back in the same chat, while the work runs on your machine against your files; - a **webhook receiver**: a CI failure or error-tracker alert arrives where Claude already has the code open and remembers what you were debugging. Polling on a schedule is a different feature with its own material; a channel reacts to an event the moment it is pushed. ## How events get in 1. The server declares `capabilities.experimental['claude/channel']` (always `{}`), which tells Claude Code to register a listener. 2. When something happens, the server emits `notifications/claude/channel` with a `content` body and optional `meta` entries. 3. Claude receives it as a `<channel source="...">` tag whose attributes come from `meta`; the server's `instructions` text tells Claude what the events mean and whether to reply. 4. A **two-way** channel also exposes a reply tool; Claude calls it and the answer appears on the other platform, while your terminal shows only the tool call. ## The gates an event passes | Gate | Who controls it | What happens if it fails | | :- | :- | :- | | Session opt-in with `--channels` | you, at each startup | the server connects but nothing is pushed | | Plugin allowlist (Anthropic's, or `allowedChannelPlugins`) | Anthropic or your admins | the session starts, the channel doesn't register, the startup notice says why | | `channelsEnabled` on claude.ai Team and Enterprise | an organization Owner | tools still work, messages don't arrive, a startup warning appears | | Sender allowlist inside the plugin | you, by pairing | messages from unknown senders are silently dropped | | Authentication | your login | not available on Bedrock, Agent Platform or Foundry | Being listed in `.mcp.json` is **not** enough to push messages; a server also has to be named in `--channels`. Pro and Max users without an organization skip the organization checks. Console API-key organizations are allowed by default unless they deploy managed settings. Managing those keys centrally is the managed-policy material's subject. ## Running it in practice - Install an official channel as a plugin and start with, for example, `claude --channels plugin:telegram@claude-plugins-official`; several plugins can be passed space-separated. - Pair your account so the plugin's sender allowlist contains only you. - Events only arrive **while the session is open**, so an always-on setup runs Claude in a persistent terminal or background process. - A permission prompt pauses the session until someone answers. A channel that declares `claude/channel/permission` can relay tool approvals to your phone; anyone on its sender allowlist can then approve tool use, so allowlist only people you trust with that. - To test a channel you are building, start Claude Code with `--dangerously-load-development-channels server:<name>`, which bypasses the allowlist for local testing. ## Unattended sessions A channel is most useful when nobody is at the keyboard, which is exactly when a permission prompt stalls everything. Run with `-p` and Claude Code disables tools that need terminal input, such as multiple-choice questions and plan approval, so the session never waits for input. `--dangerously-skip-permissions` bypasses most prompts, but only belongs in an environment you trust, and the actions no mode auto-approves still apply. ## A runtime detail that silently breaks channels Claude Code has two MCP client runtimes. On the v2 runtime, a channel server that negotiates MCP protocol revision 2026-07-28 **cannot deliver channel messages**, so Claude Code does not register it as a channel. Claude Code asks stdio servers for that revision when `MCP_PROTOCOL_NEGOTIATION` is `auto`, and from v2.1.285 Anthropic is turning that on by default in sessions that fetch feature flags. If a stdio channel stops registering after an update, set `MCP_PROTOCOL_NEGOTIATION=legacy` to keep servers on the earlier handshake.
- Your channel server is in .mcp.json, shows as connected in /mcp, and its tools work, but no events reach Claude. What do you check?First, whether the session was started with that server named in `--channels`; configuration alone never registers a channel. Then the startup notice: it reports a plugin missing from the effective allowlist or `channelsEnabled` being off for a Team or Enterprise organization. On the v2 runtime, also check whether the server negotiated revision 2026-07-28, which can't carry channel messages.
- Why is permission relay a security decision and not just a convenience?A channel that declares `claude/channel/permission` receives tool-approval prompts and can answer them, and since v2.1.234 only channels registered for the session receive them. Anyone on that channel's sender allowlist can approve or deny tool use in your session, so the allowlist effectively becomes your approval list. Project trust and MCP server consent dialogs never relay.
- Any MCP server in .mcp.json can push messages into the session
- Channels are generally available and listed in claude --help
- Channel events queue up and arrive when you next open a session
- Channels work on Bedrock and other cloud provider logins
- Permission relay is harmless because only you use the bot
Assumes Claude Code 2.1.286 with channels in research preview; from 2.1.285 stdio servers may negotiate protocol revision 2026-07-28, which cannot carry channel messages.