(sigil mcp channel)

Helpers for building MCP channel servers.

Provides convenience functions for MCP servers that use the claude/channel capability to push events into Claude Code sessions.

(import (sigil mcp channel))

(let ((server (mcp-channel-server name: "my-server" version: "1.0")))
  (channel-notify! server "Hello from my server"
    meta: '((type . "greeting")))
  (mcp-server-run server))

Exports

Create an MCP server with the claude/channel capability pre-configured.

Merges the experimental claude/channel capability with any additional capabilities passed via the capabilities: keyword.

(mcp-channel-server name: "my-server" version: "1.0"
  instructions: "You are receiving events from my-server.")

A channel server stays on the legacy initialize handshake by default: its server/discover answer offers no 2026-07-28 revision. Claude Code rejects claude/channel on a 2026-07-28 connection, so offering that revision costs the server its channel. Pass legacy-only: #f only once the client accepts channels there.

(No description)

(No description)