
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
human-in-the-loop-mcp
Advanced tools
Micro-manage your agentic LLM promptly with your favorite messaging App, and more.

A Model Context Protocol (MCP) server that enables human oversight for AI assistants through Discord or HTTP. When your AI needs clarification or approval, it can reach out to you directly.
Connect your AI to Discord for real-time human feedback:
bunx human-in-the-loop-mcp discord \
--token YOUR_DISCORD_BOT_TOKEN \
--user-id YOUR_DISCORD_USER_ID
Run bunx human-in-the-loop-mcp discord --help to see all available options.
Integrate with your own HTTP endpoint:
bunx human-in-the-loop-mcp http \
--url https://your-endpoint.com/questions
Run bunx human-in-the-loop-mcp http --help to see all available options.
Connect your AI to Telegram for real-time human feedback:
bunx human-in-the-loop-mcp telegram \
--token YOUR_TELEGRAM_BOT_TOKEN \
--user-id YOUR_TELEGRAM_USER_ID
Run bunx human-in-the-loop-mcp telegram --help to see all available options.
Under development
stdio TransportUnder development
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Run this command. See Claude Code MCP docs for more info.
claude mcp add human-in-the-loop -- bunx -y human-in-the-loop-mcp discord --token YOUR_DISCORD_BOT_TOKEN --user-id YOUR_DISCORD_USER_ID
Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Add this to your VS Code MCP config file. See VS Code MCP docs for more info.
"mcp": {
"servers": {
"human-in-the-loop": {
"type": "stdio",
"command": "bunx",
"args": ["-y", "human-in-the-loop-mcp", "discord", "--token", "YOUR_DISCORD_BOT_TOKEN", "--user-id", "YOUR_DISCORD_USER_ID"]
}
}
}
You can easily install Human-In-The-Loop through the Cline MCP Server Marketplace by following these instructions:
Or you can directly edit MCP servers configuration:
mcpServers:{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Add this to your Zed settings.json. See Zed Context Server docs for more info.
{
"context_servers": {
"human-in-the-loop": {
"command": {
"path": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
},
"settings": {}
}
}
}
To configure Human-In-The-Loop MCP in Augment Code, you can use either the graphical interface or manual configuration.
Click the hamburger menu.
Select Settings.
Navigate to the Tools section.
Click the + Add MCP button.
Enter the following command:
bunx -y human-in-the-loop-mcp discord --token YOUR_DISCORD_BOT_TOKEN --user-id YOUR_DISCORD_USER_ID
Name the MCP: Human-In-The-Loop.
Click the Add button.
Once the MCP server is added, you can start using Human-In-The-Loop's features directly within Augment Code.
mcpServers array in the augment.advanced object"augment.advanced": {
"mcpServers": [
{
"name": "human-in-the-loop",
"command": "bunx",
"args": ["-y", "human-in-the-loop-mcp", "discord", "--token", "YOUR_DISCORD_BOT_TOKEN", "--user-id", "YOUR_DISCORD_USER_ID"]
}
]
}
Once the MCP server is added, restart your editor. If you receive any errors, check the syntax to make sure closing brackets or commas are not missing.
Add this to your Roo Code MCP configuration file. See Roo Code MCP docs for more info.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
See Gemini CLI Configuration for details.
~/.gemini/settings.json (where ~ is your home directory).mcpServers object in your settings.json file:{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
If the mcpServers object does not exist, create it.
Open Claude Desktop developer settings and edit your claude_desktop_config.json file to add the following configuration. See Claude Desktop MCP docs for more info.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Add this to your Opencode configuration file. See Opencode MCP docs for more info.
{
"mcp": {
"human-in-the-loop": {
"type": "local",
"command": [
"bunx",
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
],
"enabled": true
}
}
}
See OpenAI Codex for more information.
Add the following configuration to your OpenAI Codex MCP server settings:
[mcp_servers.human-in-the-loop]
args = ["-y", "human-in-the-loop-mcp", "discord", "--token", "YOUR_DISCORD_BOT_TOKEN", "--user-id", "YOUR_DISCORD_USER_ID"]
command = "bunx"
See JetBrains AI Assistant Documentation for more details.
Settings -> Tools -> AI Assistant -> Model Context Protocol (MCP)+ Add.Command in the top-left corner of the dialog and select the As JSON option from the listOK{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Apply to save changes.Settings -> Tools -> Junie -> MCP SettingsSee Kiro Model Context Protocol Documentation for details.
Kiro > MCP Servers+ Add button.{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
Save to apply the changes.Use the Add manually feature and fill in the JSON configuration information for that MCP server. For more details, visit the Trae documentation.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Use these alternatives to run the local Human-In-The-Loop MCP server with other runtimes. These examples work for any client that supports launching a local MCP server via command + args.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
{
"mcpServers": {
"human-in-the-loop": {
"command": "deno",
"args": [
"run",
"--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
"--allow-net",
"npm:human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Install the human-in-the-loop.dxt file from the dxt folder and add it to your client. For more information, please check out the desktop extensions docs.
The configuration on Windows is slightly different compared to Linux or macOS (Cline is used in the example). The same principle applies to other editors; refer to the configuration of command and args.
{
"mcpServers": {
"human-in-the-loop": {
"command": "cmd",
"args": [
"/c",
"bunx",
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
],
"disabled": false,
"autoApprove": []
}
}
}
Add this to your Amazon Q Developer CLI configuration file. See Amazon Q Developer CLI docs for more details.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
See Warp Model Context Protocol Documentation for details.
Settings > AI > Manage MCP servers.+ Add button.{
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
],
"env": {},
"working_directory": null,
"start_on_launch": true
}
}
Save to apply the changes.Add the following configuration to the mcp section of your Copilot Coding Agent configuration file Repository->Settings->Copilot->Coding agent->MCP configuration:
{
"mcpServers": {
"human-in-the-loop": {
"type": "stdio",
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
],
"tools": ["AskQuestion"]
}
}
}
For more information, see the official GitHub documentation.
See LM Studio MCP Support for more information.
Program (right side) > Install > Edit mcp.json.{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Save to apply the changes.Program, or by clicking the plug icon at the bottom of the chat box.You can configure Human-In-The-Loop MCP in Visual Studio 2022 by following the Visual Studio MCP Servers documentation.
Add this to your Visual Studio MCP config file (see the Visual Studio docs for details):
{
"mcp": {
"servers": {
"human-in-the-loop": {
"type": "stdio",
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
}
For more information and troubleshooting, refer to the Visual Studio MCP Servers documentation.
Add this to your Crush configuration file. See Crush MCP docs for more info.
{
"$schema": "https://charm.land/crush.json",
"mcp": {
"human-in-the-loop": {
"type": "stdio",
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
Once saved, enter in the chat AskQuestion followed by your question. More information is available on BoltAI's Documentation site. For BoltAI on iOS, see this guide.
Edit your Rovo Dev CLI MCP config by running the command below -
acli rovodev mcp
Example config -
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
To configure Human-In-The-Loop MCP in Zencoder, follow these steps:
{
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
Once the MCP server is added, you can easily continue using it.
See Qodo Gen docs for more details.
{
"mcpServers": {
"human-in-the-loop": {
"command": "bunx",
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
]
}
}
}
See Local and Remote MCPs for Perplexity for more information.
Perplexity > SettingsConnectors.Add Connector.Advanced.Human-In-The-Loop{
"args": [
"-y",
"human-in-the-loop-mcp",
"discord",
"--token",
"YOUR_DISCORD_BOT_TOKEN",
"--user-id",
"YOUR_DISCORD_USER_ID"
],
"command": "bunx",
"env": {}
}
Save.git clone https://github.com/AndyRightNow/human-in-the-loop-mcp.git
cd human-in-the-loop-mcp
bun install
bun run build
bun start discord --token YOUR_DISCORD_BOT_TOKEN --user-id YOUR_DISCORD_USER_ID
AskQuestion tool to request guidanceYour endpoint must accept POST requests with this payload:
{
questions: string; // Questions from the AI
}
Expected response:
{
answers: string; // Your response
}
Status codes:
Simple Express.js endpoint example:
app.post('/questions', (req, res) => {
console.log('Questions received:', req.body.questions);
// Implement your response logic
res.json({ answers: 'Your response here' });
});
Q: The bot isn't sending me messages
A: Ensure you have DMs enabled from server members in your Discord privacy settings.
Q: Timeout errors
A: Increase the timeout value with the --timeout flag (in milliseconds).
Q: HTTP endpoint not working
A: Verify your endpoint URL, check any required headers, and ensure the endpoint is accessible.
Bug reports and feature requests are welcome. Please open an issue on GitHub.
MIT
FAQs
Micro-manage your agentic LLM promptly with your favorite messaging App, and more.
We found that human-in-the-loop-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.