Channels reference changedchannels-reference
Nearest release: v2.1.335, published 6 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Dec 2026 04:02 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 04:07 UTC.
Upstream edited
Recorded here
Lines+9added
Lines−5removed
From line
124
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits21to this page, all time
The whole hunk
from line 124, old and new numbered
/
from line 124
124124
125125Claude Code reads your MCP config at startup and spawns each server as a subprocess.
126126
127**4. Test it**
127**4. Start a session with the channel**
128128
129129During the research preview, custom channels aren't on the allowlist, so start Claude Code with the development flag:
130130
from line 132
132132claude --dangerously-load-development-channels server:webhook
133133```
134134
135Claude Code first shows a full-screen warning dialog listing the development channels you're loading. Select **I am using this for local development** to continue, or **Exit** to quit.
135Before the session opens, answer these dialogs, which appear in this order:
136136
137The first time you start a session in this project, Claude Code also asks for consent before using the new server from `.mcp.json`. The dialog reports "New MCP server found in this project: webhook". Select **Use this MCP server** to continue.
137* **Folder trust**: appears when you haven't [trusted this folder](https://code.claude.com/docs/en/permissions.md#project-allow-rules-and-workspace-trust) or one above it. Select the option that starts with **Yes, I trust this folder**.
138* **Project server consent**: appears the first time you start a session after adding the server to a project-level `.mcp.json` file. The dialog reports "New MCP server found in this project: webhook". Select **Use this MCP server**.
139* **Development channels warning**: lists the development channels you're loading. Select **I am using this for local development** to continue, or **Exit** to quit.
138140
139141After you accept, Claude Code spawns your `webhook.ts` as a subprocess, and the HTTP listener starts automatically on the port you configured, 8788 in this example. You don't need to run the server yourself.
140142
141A dim notice below the startup banner confirms the channel is registered: `Channels (experimental) messages from server:webhook inject directly in this session · restart without --dangerously-load-development-channels to stop`.
143A dim notice below the startup banner lists the channels you passed: `Channels (experimental) messages from server:webhook inject directly in this session · restart without --dangerously-load-development-channels to stop`.
142144
143145If you see "blocked by org policy," your organization admin needs to [enable channels](https://code.claude.com/docs/en/channels.md#enterprise-controls) first.
146
147**5. Send a test event**
144148
145149In a separate terminal, simulate a webhook by sending an HTTP POST with a message to your server. This example sends a CI failure alert to port 8788 (or whichever port you configured):
146150
No line in this hunk matches that.