Teaches the AI assistant to manage serverless Telegram bots core.telegram.org/bots/serverless: you tell the assistant “create a bot”, “deploy”, “show webhook status” — and it performs these actions via tgcloud CLI without touching the terminal manually. Works with any MCP client.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add tgcloud-telegram-serverless-bots --env TGCLOUD_TOKEN='<TGCLOUD_TOKEN>' -- npx -y tgcloud-mcp~/.codex/config.toml
[mcp_servers.tgcloud-telegram-serverless-bots]
command = "npx"
args = ["-y", "tgcloud-mcp"]
env = { TGCLOUD_TOKEN = "<TGCLOUD_TOKEN>" }
# codex mcp add tgcloud-telegram-serverless-bots --env TGCLOUD_TOKEN='<TGCLOUD_TOKEN>' -- npx -y tgcloud-mcp~/.cursor/mcp.json
{
"mcpServers": {
"tgcloud-telegram-serverless-bots": {
"command": "npx",
"args": [
"-y",
"tgcloud-mcp"
],
"env": {
"TGCLOUD_TOKEN": "<TGCLOUD_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tgcloud-telegram-serverless-bots": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tgcloud-mcp"
],
"env": {
"TGCLOUD_TOKEN": "<TGCLOUD_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tgcloud-telegram-serverless-bots": {
"command": "npx",
"args": [
"-y",
"tgcloud-mcp"
],
"env": {
"TGCLOUD_TOKEN": "<TGCLOUD_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tgcloud-telegram-serverless-bots": {
"command": "npx",
"args": [
"-y",
"tgcloud-mcp"
],
"env": {
"TGCLOUD_TOKEN": "<TGCLOUD_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tgcloud-telegram-serverless-bots": {
"command": "npx",
"args": [
"-y",
"tgcloud-mcp"
],
"env": {
"TGCLOUD_TOKEN": "<TGCLOUD_TOKEN>"
}
}
}
}需要的环境变量
TGCLOUD_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。