Decision: Claude Code Channels can push CI events into a running Claude Code session; for a custom webhook, follow the official Channel reference and test it in an isolated remote Mac project first. Keep your normal alert and human approval paths in place: Channels is a research preview, and events arrive only while the session is open.
For engineers maintaining Xcode or macOS CI, this guide covers bringing a failure event into an existing remote Mac project session. For Claude Code users, it separates event delivery from investigation and code changes. For platform and security teams, it provides checks for preview status, organization controls, and event data boundaries.
Last updated November 5, 2026. Status and configuration details were checked against the Claude Code Channels overview and Channels reference.
Choose the route before changing your CI pipeline
Start by deciding whether you want to continue work in an existing project session or start a separate cloud task. Channels serve the first case: an MCP server can push events into a running Claude Code session. A CI alert arriving in that session is not evidence that Claude has identified the root cause, changed code, or passed a build.
| Route | What it is for | What must be true | Main operational risk |
|---|---|---|---|
| Existing session with a Channel | Bring a CI event into the project context you already have open | The Channel is registered and the target Claude Code session is active | The Mac may be online while the session is closed or unavailable |
| Separate CI job or cloud task | Run an independent build, script, or investigation outside the existing interactive context | The job has its own execution environment, credentials, and result reporting | The task may not share the same working context or permissions as your open project |
| Standalone CI notification | Tell a person that a build failed through the team’s normal alerting path | The existing notification destination is working | It does not automatically place the alert inside a Claude Code project session |
Channels are also different from a standard MCP server that exposes tools. The Claude Code MCP documentation describes MCP server integration; Channels use an MCP server to deliver events into a session. Do not assume that registering a tool server automatically creates an event receiver.
Remote Control has a separate role: it provides a way to access a Claude Code session from another device. It does not replace the webhook receiver or prove that a CI event was delivered. The Channels overview is the reference for the event-push model and its session condition.
Step through the event path from CI to the project session
For a custom integration, think of the path as three separate handoffs:
CI event → custom Channel MCP server → active Claude Code session
The CI system creates the event. The receiver accepts and checks the incoming request. The Channel server then forwards an event to a Claude Code session where the Channel is registered. The official Channels reference webhook receiver example is the implementation reference; follow its current interface rather than inventing a message format or assuming that any CI provider has native support.
Keep the receiver’s job narrow. It should accept the specific event types you intend to test, identify the sending source, and pass only the fields needed for triage. Your CI job remains responsible for the authoritative build result. Claude Code’s receipt of an event should not change the job’s success status or bypass a release gate.
Use this sequence for a remote Mac trial:
First, isolate the project and event
Choose a test project or a controlled branch, and use a harmless event that cannot trigger a release. Do not begin with production credentials, full build logs, or a payload that includes customer data. Record which project and session you intend to target so you can distinguish a delivery failure from a context mismatch.
Next, confirm the receiver and Channel are registered
Start the custom MCP server using the documented Channels reference, then verify that the intended Claude Code session has registered the Channel. A receiver process being present is only one part of the path. It does not show that the session can see the Channel or that the event has reached it.
If you already use MCP servers, keep tool access and event delivery conceptually separate. The MCP documentation can help you check the server configuration, but the Channel-specific registration and event behavior must be checked against the Channels documentation.
Then, send a controlled test event
Send a test payload with a unique, non-sensitive identifier. Include only the minimum context needed to find the CI run, such as a repository reference or build identifier if your policy allows it. Avoid embedding secrets, tokens, signing material, or large unfiltered logs in the message.
Verify each handoff independently
Check the receiver’s record that it accepted the test, then confirm that the matching identifier appeared in the intended Claude Code session. Verify the project context as well as the message: a correct event delivered to the wrong project is still a failed test. An HTTP response from the receiver alone is not end-to-end confirmation.
Test the closed-session case deliberately
Close or disconnect the target session in a controlled way, then send a harmless test event. The official documentation says Channels events arrive only while the session is open. Do not interpret a running remote Mac, an accessible terminal, or a mobile view of the host as proof that the Claude Code session is ready to receive events. Reopen the intended session and test again before concluding that delivery works.
Keep CI status and review independent
After receipt, inspect what the session does with the event. Treat any suggested diagnosis or edit as a proposal that requires your normal review and test process. Keep the CI provider’s own result, failure logs, and notification path available. Do not use event receipt as an approval signal or as a substitute for a passing build.
Keep remote sessions and alert delivery separate
A developer may leave the terminal and expect a remote Mac to keep working. That expectation needs careful testing because these are different states:
- A Mac host can be reachable while the Claude Code session is no longer open.
- A background process or persistent terminal can remain alive without proving that the intended Claude Code session will receive events.
- A session can receive an event without completing an investigation or making a safe code change.
- An event can be delivered while the CI job’s own logs or final status remain the source of truth.
For Mac process supervision, distinguish a service that launches at the host level from an interactive project session that must remain open. The launchd and systemd runbook covers service lifecycle concepts on Mac and Linux. Use that as an operations reference, not as evidence that a supervised process keeps a Claude Code session eligible for Channels events.
Apply the organization and data controls before the trial
As of the date checked above, Claude Code documents Channels as a research preview. Its documentation also describes organization controls and restrictions involving which plugins can be used. Check the current Channels overview and your organization’s configuration before planning a rollout. Do not assume an administrator setting, an approved plugin, or a self-built server grants every user access automatically.
A team has two broad implementation paths. An existing, permitted Channel plugin may reduce custom receiver work, but you still need to verify its current availability and fit. A custom webhook Channel gives you control over the receiver and payload handling, but adds code and operational responsibility. In either case, validate the configuration in the actual organization and session where you plan to run the trial.
Treat the payload as untrusted input. A CI alert can contain repository names, build output, branch details, or accidental secrets. The webhook delivery validation guide explains how to validate webhook deliveries; the webhook best-practices guide covers safe handling practices. Apply the equivalent checks required by your own CI provider and security policy.
Keep these boundaries explicit:
- Validate that requests come from an expected source before forwarding them.
- Minimize the event body; send a link or reference to a secured CI record when full logs are unnecessary.
- Keep credentials out of message content and receiver logs.
- Separate the ability to receive an event from permission to use tools, edit files, or run commands.
- Require normal review and approval for changes that affect a release or production system.
Score the trial before you expand it
Use this checklist during the isolated run. Mark an item complete only when you have evidence, not because the host or receiver appears healthy.
- [ ] The trial uses a non-production project, branch, or equivalent safe context.
- [ ] The official Channels reference was checked for the current receiver interface.
- [ ] The Channel is registered in the exact Claude Code session you intend to use.
- [ ] A harmless test event reached that session with a matching identifier.
- [ ] The session’s project context matches the CI event’s intended repository or task.
- [ ] The closed-session behavior was tested, and the team knows events require an open session.
- [ ] The receiver validates its sender and forwards only the approved minimum payload.
- [ ] Credentials and sensitive log content are excluded from event messages.
- [ ] CI status, ordinary notifications, and human approval remain independent.
- [ ] Failure evidence is recorded so the trial can be repeated and reviewed.
| Trial area | Pass | Review | Fail |
|---|---|---|---|
| Channel registration | The intended session shows the configured Channel | Registration is visible but the target session is uncertain | The Channel is unavailable in the target session |
| Event delivery | The test identifier appears in the intended project session | The receiver accepted the event but session receipt is unverified | No matching event appears |
| Session lifecycle | The team can tell whether the session is open and ready | Host or terminal state is being used as a proxy | The team assumes an online Mac guarantees receipt |
| Data handling | Payload and sender checks match policy | Some fields or validation behavior remain unclear | Secrets or unnecessary sensitive data are forwarded |
| Change control | CI, review, and release approval remain separate | The handoff between event and action is unclear | Event receipt is treated as approval or a successful build |
Common questions from remote Mac CI teams
Can Claude Code Channels receive CI webhooks?
Yes, through a custom MCP server that receives the webhook and forwards the event to an active Claude Code session. The reference implementation is a starting point, not proof of native integration with your CI system. Validate the incoming request, keep the payload small, and test the complete path in an isolated project before routing real build data.
Will a remote Mac session receive a Channel event after I close Claude Code?
No. Channels events are documented to arrive only while the session is open. The host being online, a persistent terminal existing, or a remote access tool showing the Mac does not establish that the target session can receive events. Reopen the right project session and confirm Channel registration before using another test event.
How can I verify a CI alert reached the right Claude Code project session?
Use a unique test identifier and check three things separately: the receiver accepted the event, the event appeared in Claude Code, and the open session belongs to the intended project. Keep the receiver record as evidence, but do not use an HTTP success response as the only check. A message in a different project context does not pass the test.
Is Claude Code Channels research preview suitable for unattended CI?
Do not make a research-preview Channel your sole unattended alert, approval, or release path. Events depend on an open Claude Code session, and event receipt does not prove that analysis or a build completed. Keep ordinary CI notifications and human review active while you evaluate it. Reassess only after testing the current preview behavior and organization controls.
Decide whether the Mac session belongs in your CI design
If your current workflow relies on a Linux-only runner, it cannot by itself provide the macOS toolchain needed for Apple-platform build work. If alerts only go to chat or email, a developer still has to open the project context separately. If you depend on a local Mac, its availability and session state may be tied to a workstation rather than an independently managed environment. Those are real trade-offs, but a remote Mac does not remove the need to keep CI status, event delivery, and approvals separate.
For a short, isolated trial that needs a real macOS project context, renting a remote Mac from MACGPU can give you a hosted Mac to access through your chosen remote workflow, without first buying hardware. It is not automatically the right choice for workloads that require a physical device, tightly controlled long-running production capacity, or an unattended release gate. Compare those requirements with your session and access controls before deciding; if a rented environment fits the trial, review the MACGPU Mac options and keep the existing CI alert path active until the Channel has passed your own acceptance checks.