loading…
Search for a command to run...
loading…
Enables MCP agents to request human confirmation for actions via a Telegram bot. It uses a Vercel-hosted proxy and Redis to facilitate secure, real-time YES/NO
Enables MCP agents to request human confirmation for actions via a Telegram bot. It uses a Vercel-hosted proxy and Redis to facilitate secure, real-time YES/NO approvals from a mobile device.
A simple bridge to request human confirmation via Telegram from an MCP agent (like Antigravity).
To add this server to your Antigravity configuration (or any MCP client), use the following JSON block.
You need to replace:
<ABSOLUTE_PATH> with the absolute path where you cloned this repository.<YOUR_VERCEL_URL> with your Vercel deployment URL (e.g., https://my-telegram-bot.vercel.app).{
"mcpServers": {
"telegram-bot": {
"command": "node",
"args": ["<ABSOLUTE_PATH>/telegram-bot-mcp/mcp-server.js"],
"env": {
"VERCEL_URL": "https://<YOUR_VERCEL_URL>"
}
}
}
}
This script (mcp-server.js) acts as a local proxy. The agent communicates with it via stdio (standard), and the script makes HTTP requests to your Vercel backend, managing the question delivery and the polling (active waiting) for the response.
ask_telegram_confirmationmcp-server.js) → calls POST /api/confirm on VercelPOST /api/webhook on VercelGET /api/confirm-statusgit clone https://github.com/aralroca/telegram-bot-mcp.git
cd telegram-bot-mcp
npm install
@BotFather to create a bot (/newbot).BOT_TOKEN.CHAT_ID (send a message to the bot and check https://api.telegram.org/bot<TOKEN>/getUpdates).npm run deploy
Configure environment variables in Vercel:
BOT_TOKEN: Your Telegram token.CHAT_ID: Your chat ID.ALLOWED_USER_ID: Your numeric user ID (for security).Configure Upstash Redis (from Vercel Marketplace) for persistence.
Once deployed, register the Telegram webhook using your Vercel URL:
https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=https://<YOUR_VERCEL_URL>/api/webhook
If the agent receives a 401 error, it's likely due to Vercel Deployment Protection.
Make sure the ALLOWED_USER_ID in your Vercel environment variables matches your actual Telegram User ID. You can find your ID by sending a message to @userinfobot.
This bridge uses Redis to keep track of questions while waiting for your reply.
UPSTASH_REDIS_REST_URL) and standard Redis protocol (REDIS_URL).If the agent stays in a "Waiting" state even after you reply "YES":
https://<YOUR_VERCEL_URL>/health."redis_initialized": true.Always use the Production Domain (e.g., my-project.vercel.app) in your Antigravity configuration VERCEL_URL environment variable. Using the specific deployment URL (the one with the hash) will stop working after your next deploy.
To trigger the confirmation, you should invoke the MCP server by its name (defined in your configuration, e.g., telegram-bot) in your prompt. This helps the agent select the correct tool.
Example Prompts:
What happens next:
telegram-bot server.Should I proceed? Reply: YES / NO.Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"telegram-mcp-bridge": {
"command": "npx",
"args": []
}
}
}Read, send and search emails from Claude
Send, search and summarize Slack messages
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)