AtlatestRepositorycourier
1
# Courier3
Chat and notification channel server for Claude Code sessions, built with [Sigil](https://codeberg.org/sigil/sigil).5
Courier bridges Telegram messages into a running Claude Code session via the MCP6
channel protocol and provides tools for sending replies and desktop notifications.8
## Installation10
```bash11
sigil app install codeberg:sigil/courier \12
--env COURIER_TELEGRAM_TOKEN=<bot-token> \13
--env COURIER_TELEGRAM_CHAT_ID=<chat-id>14
```16
## Configuration18
Telegram credentials via environment (`.env-courier`):19
```20
COURIER_TELEGRAM_TOKEN=<bot-token-from-botfather>21
COURIER_TELEGRAM_CHAT_ID=<chat-id-for-replies>22
```24
Sender allowlist via `courier.yaml` (optional — all senders allowed if omitted):25
```yaml26
allowed-senders:27
- "123456789"28
```30
### Telegram Setup32
1. Create a bot via [@BotFather](https://t.me/BotFather) in Telegram33
2. Copy the bot token34
3. Send a message to your bot to establish a chat35
4. Get your chat ID (send `/start` to your bot, then check36
`https://api.telegram.org/bot<TOKEN>/getUpdates`)38
## Running40
Courier is designed to be spawned by Claude Code as a channel MCP server:42
```bash43
claude --channels server:courier44
```46
Register in `.mcp.json`:48
```json49
{50
"mcpServers": {51
"courier": {52
"command": "./build/dev/bin/courier",53
"env": {}54
}55
}56
}57
```59
## MCP Tools61
| Tool | Description |62
|------|-------------|63
| `send-message` | Send a message via Telegram |64
| `send-notification` | Send a desktop notification via notify-send |66
## Building68
```bash69
sigil deps install70
sigil build71
```73
A C toolchain is required. On Guix: `guix shell -m ../sigil/manifest.scm`75
## License77
BSD-3-Clause