Human-in-the-Loop MCP Server

by KOBA789

一个 MCP 服务器,允许 AI 助手通过 Discord 向人类提问。需要通过 DISCORD_TOKEN 环境变量设置 Discord 机器人令牌。

Social & communicationstdioCommunity

Repository-wide counts · Cached 2026-03-07

Overview

The Human-in-the-Loop MCP Server MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.

Configuration

Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.

Open the Human-in-the-Loop MCP Server repository to read the latest documentation.

KEEP EXPLORING

Compare source, connection, and authentication details before choosing an implementation.

View the complete category

WhatsApp API 多设备版本

aldinokemal

Community

支持多设备和 MCP(模型上下文协议)服务器集成的 WhatsApp API,适用于 AI 代理和工具。支持通过命令行参数、环境变量和 .env 文件进行配置。需要 FFmpeg 进行媒体处理。无需通过环境变量提供外部数据文件。

chatmcp

daodao97

Community

支持MacOS、Windows、Linux、iOS、Android和Web的跨平台AI聊天客户端。需要外部数据文件,例如chatmcp.db(聊天记录)、config.json(设置)以及存储在各平台特定目录中的MCP服务器配置。

mcp-server-chatsum

chatmcp

Community

总结您的聊天消息。需要通过 CHAT_DB_PATH 环境变量配置的聊天数据库文件路径。

Telegram MCP Server

chigwell

Community

Integration with Telegram implemented via the Model Context Protocol (MCP). Requires external configuration through a .env file, including settings such as TELEGRAM_API_ID, TELEGRAM_API_HASH, TELEGRAM_SESSION_STRING, or TELEGRAM_SESSION_NAME for session management.

FROM THE SOURCE

Repository README

Build-time snapshot · Retrieved 2026-10-05

View original

Human-in-the-Loop MCP Server

An MCP (Model Context Protocol) server that allows AI assistants to ask questions to humans via Discord.

Screenshot 2025-06-23 at 18 25 43

Overview

This MCP server is used when AI assistants need human input or judgment during their work. For example:

  • When having an LLM create documentation, the AI designs the structure while humans provide specific content
  • When the AI needs confirmation on uncertain decisions
  • When specialized knowledge or personal information is required

Requirements

  • Rust (1.70 or higher)
  • Discord account and bot
  • MCP-compatible AI client (Claude Desktop, Copilot Edits, etc.)

Setup

1. Create Discord Bot

  1. Go to Discord Developer Portal
  2. Create a new application
  3. Create a bot in the Bot section and obtain the token
  4. Set required permissions:
    • Send Messages
    • Create Public Threads
    • Read Message History
  5. Enable privileged gateway intents in Bot section:
    • Message Content Intent

2. Install

cargo install --git https://github.com/KOBA789/human-in-the-loop.git

Connecting with MCP Clients

Claude Desktop Configuration

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "human-in-the-loop": {
      "command": "human-in-the-loop",
      "args": [
        "--discord-channel-id", "channel-id",
        "--discord-user-id", "user-id"
      ],
      "env": {
        "DISCORD_TOKEN": "your-discord-bot-token"
      }
    }
  }
}

Claude Code Configuration

For Claude Code (claude.ai/code), add to your MCP settings:

{
  "mcpServers": {
    "human-in-the-loop": {
      "command": "human-in-the-loop",
      "args": [
        "--discord-channel-id", "channel-id",
        "--discord-user-id", "user-id"
      ]
    }
  }
}

Set the Discord token as an environment variable before running Claude Code:

export DISCORD_TOKEN="your-discord-bot-token"
claude

Note: The server automatically reads the Discord token from the DISCORD_TOKEN environment variable. You can also pass it via --discord-token argument if needed.

Usage

AI assistants can ask questions to humans using the ask_human tool:

Human: Please create a documentation outline. You can ask the human as you need.
Assistant: I'll create a documentation outline. Let me ask you some questions first.
[Uses ask_human tool]

The AI posts questions in Discord and mentions the specified user. When the user replies in Discord, the response is returned to the AI.

How It Works

  1. AI assistant calls the ask_human tool
  2. MCP server creates a thread in the specified Discord channel (or uses existing thread)
  3. Posts the question and mentions the specified user
  4. Waits for user's reply
  5. Returns the reply content to the AI assistant

Finding Discord IDs

Getting Channel ID

  1. Enable Developer Mode in Discord (Settings → Advanced → Developer Mode)
  2. Right-click on channel → "Copy ID"

Getting User ID

  1. Right-click on user → "Copy ID"

Roadmap

  • Future Migration to MCP Elicitation: Once MCP's Elicitation implementation becomes more widespread and standardized, we plan to migrate the UI from Discord to native MCP Elicitation. This will provide a more integrated experience directly within MCP-compatible clients.