Open Source ยท MCP Server ยท Human-in-the-Loop

Your AI agent needs a phone number. Discord is it.

Halobot gives any MCP-capable agent a Discord communication channel. Agents ask questions, wait for your reply, and keep working โ€” from your phone, desktop, wherever.

Human-Agent Loop Over Bot

11 MCP tools
1 command setup
0 vendor lock-in
discord thread
Agent I found 3 approaches for the auth refactor:

1. JWT with refresh tokens
2. Session-based with Redis
3. OAuth2 with provider delegation

Which approach should I go with?
You 2
Agent Got it. Implementing session-based auth with Redis. I'll update you when the PR is ready.
Agent is working...
The Problem

Agents guess when they
should ask.

Your agent is three hours into a refactoring task. It hits an ambiguous requirement. What does it do? It guesses. It picks the wrong interpretation. It builds 400 lines of code on a bad assumption. You come back, see the mess, and start over.

Without halobot

  • Agent guesses at ambiguous requirements
  • You discover mistakes hours later
  • No way to reach you outside the IDE
  • Each tool builds its own notification system
  • 3 AM deploys you didn't approve

With halobot

  • โœฆ Agent asks, you answer, work continues
  • โœฆ Respond from your phone, desktop, wherever
  • โœฆ Works with any MCP client
  • โœฆ One protocol, every agent
  • โœฆ Explicit approval gates for critical ops
Architecture

One tool call.
Agent asks, you answer.

Halobot sits between your agent and Discord. Your agent calls an MCP tool. You get a notification. You reply. Done.

Agent Claude Code, Cursor, etc.
MCP (STDIO)
halobot MCP Server
Discord API
Discord Threads โ†’ You

Why Discord?

๐Ÿ“ฑ

Already on your phone

No new app. Your agent's messages show up alongside everything you already check.

๐Ÿงต

Threads keep it clean

Each agent gets its own thread. Three agents running? Three separate threads. No cross-talk.

๐Ÿ’ธ

Free

No Twilio fees. No Slack Enterprise license. No per-message pricing. Discord bots cost nothing.

๐ŸŒ

Works everywhere

Desktop, mobile, web. Push notifications on all of them. Your agent reaches you wherever you are.

Reference

11 MCP tools.
5 high-level, 6 raw.

High-level tools handle thread conversations โ€” the 90% use case. Low-level tools give you raw Discord access when you need it.

High-level โ€” Thread conversations

send_thread_message Send a message via a Discord thread (creates new or continues existing)
wait_for_reply Wait for the human to reply in a thread
send_and_wait Send + wait in one call โ€” best for simple Q&A
list_conversations List all active thread conversations
get_thread_messages Fetch full message history from a thread

Low-level โ€” Raw Discord access

list_guilds List all servers the bot is in
list_channels List text channels in a guild
send_message Send a message to any channel
read_messages Read recent messages from the in-memory cache
get_channel_history Fetch paginated message history via API
wait_for_message Poll until a matching message arrives
Setup

Running in five minutes.

One command gets you through interactive setup โ€” creates the bot, validates permissions, and configures your MCP client.

1

Install globally

npm install -g halobot
2

Run interactive setup

npx halobot setup

Walks you through bot creation with clickable links, validates everything, and configures Claude Code automatically.

3

Or add to Claude Code manually

claude mcp add discord -- halobot
4

Diagnose issues

halobot doctor

Validates bot token, permissions, channel config, and user whitelist before your agent tries to send a message.

Patterns

Beyond question
and answer.

The thread model works for more than asking questions. Every pattern keeps the agent autonomous and you in control.

๐Ÿ”€

Decision points

Agent hits an ambiguous requirement, asks which approach to take. You reply "option 2" from your phone.

๐Ÿšฆ

Approval gates

Agent reaches a deploy step, waits for your explicit "go" in Discord before continuing. No more 3 AM deploys.

๐Ÿ“Š

Progress updates

Agent posts status to the thread as it works. You check in when convenient โ€” not when the agent demands it.

๐Ÿค–

Multi-agent coordination

Multiple agents, each with their own thread, all reaching the same human. You're the hub, Discord is the switchboard.

๐Ÿ”

Collaborative debugging

Agent posts what it tried, asks for your intuition, incorporates your response, tries again. Async pair programming.

๐Ÿ”

User whitelisting

Only approved Discord users can interact with agent threads. Random server members can't hijack your workflow.

Details

Built for real workflows.

Works with any MCP client

Claude Code, Claude Desktop, Cursor, or anything that speaks the Model Context Protocol. The agent doesn't know Discord is involved.

One-command setup

npx halobot setup walks through everything interactively with clickable links. No manual config editing.

Built-in diagnostics

halobot doctor validates your entire setup before your agent ever tries to send a message.

Auto-chunking

Long messages โ€” code diffs, error logs โ€” split automatically across Discord's 2000-char limit. Nothing gets truncated.

Thread isolation

Each agent interaction gets its own Discord thread. Clean, organized, no cross-talk between agents.

No vendor lock-in

Swap Discord for Slack tomorrow โ€” only the MCP server changes. Your agent's code stays the same.

Stop guessing. Start asking.

Set it up once, and your agents will never have to guess again.