# tgcloud-mcp

MCP server for Telegram serverless bots (@tgcloud) — project lifecycle, deploys, migrations and webhooks through the tgcloud CLI

- **Type:** MCP server
- **Trust:** 85/100 (A), scored on the package rubric
- **Verification:** verified (build provenance)
- **Version:** 0.3.3
- **Author:** io.github.sdamarketing
- **License:** MIT
- **npm:** tgcloud-mcp
- **Source:** https://github.com/sdamarketing/tgcloud_mcp
- **Compatible clients:** claude-code, cursor, copilot, gemini (basis: transport)

## Trust

85/100 (A), scored on the package rubric
- Publisher verified: no
- Build provenance: verified attestation
- npm trusted publishing (OIDC): yes
- Install scripts: nothing suspicious found
- Prompt-injection scan: not run
- Obfuscation scan: not run
- Evidence age: 1 day

## Security scan

- **Status:** clean
- **Scanned:** 2026-10-15T21:24:25.296Z
- **Version scanned:** 0.3.3
- **CVEs:** none found by OSV at scan time

## Tools

16 declared. Statically extracted from the shipped source — a floor on the surface, not a census.
- `run_handler` — Runs a handler or an endpoint on the platform using local files, without publishing them
- `migrate` — Applies schema.js changes to the database (tgcloud migrate). push never does this.
- `create_project` — Scaffolds a serverless bot with `npm create @tgcloud/bot <name>` inside parent_dir.
- `init_project` — Scaffolds tgcloud into an existing directory (tgcloud init, offline): tgcloud/schema.js,
- `login_bot` — Runs `tgcloud login` with a CLI access token (app<id>:<secret> from @BotFather → your bot →
- `add_module` — Scaffolds a module with `tgcloud add <target>` (tgcloud/ layout).
- `upgrade` — One-time move of schema.js, handlers/, and lib/ from the project root into tgcloud/
- `status` — Shows local changes against the deployed snapshot (tgcloud status). Offline.
- `diff` — Line-by-line diff of the local project against the deployed snapshot (tgcloud diff). Offline.
- `push` — Uploads changed modules in one atomic batch (tgcloud push). Without files, mirrors the
- `pull` — Makes the local project match the cloud: updates the snapshot and working files (tgcloud pull).
- `fetch` — Updates the local snapshot of what is deployed without touching working files (tgcloud fetch).
- `reset` — DESTRUCTIVE: discards local module edits and restores the working tree from the last known
- `deploy` — Runs `npm run build` when package.json has a build script, then `tgcloud push`.
- `webhook_status` — Shows the platform-managed webhook (tgcloud webhook): URL, allowed_updates, pending
- `webhook_sync` — Points the webhook at the platform and rebuilds allowed_updates from deployed handlers

## Install

**Verdict: install** — No blocking findings and no open coverage gaps — safe to install as configured.
**Config** (claude-code):
```json
"{\n  \"mcpServers\": {\n    \"tgcloud\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"tgcloud-mcp\"\n      ],\n      \"env\": {\n        \"TGCLOUD_TOKEN\": \"<YOUR_TGCLOUD_TOKEN>\"\n      }\n    }\n  }\n}"
```
**Credentials it will ask for** (names only — Forge never holds a value):
- `TGCLOUD_TOKEN` — Tgcloud Token (optional)
Placeholders only. Forge never holds, brokers, or transmits a credential value — replace each <YOUR_NAME> in your own config file. Do not send a value back to Forge; no Forge endpoint accepts one.
- This entry needs 1 credential (0 required). The generated config carries placeholders, so it will fail in the editor rather than at runtime if they are left unset.

## Blast radius

Moderate blast radius — holds an api key; runs on your machine.
- Floor 22, ceiling 22 (tier: moderate)
- This is impact, not likelihood. A high radius is not a defect: a filesystem server is supposed to write files. It is never part of the trust score.

## Machine-readable views of this entry

- Signed JSON: https://forgeregistry.com/api/v1/packages/tgcloud-mcp
- Install plan: https://forgeregistry.com/api/v1/packages/tgcloud-mcp/install-plan
- Alternatives: https://forgeregistry.com/api/v1/alternatives/tgcloud-mcp
- HTML page: https://forgeregistry.com/registry/tgcloud-mcp
- MCP: POST https://forgeregistry.com/api/mcp → `forge_get_package` / `forge_install_plan`

## About this document

Generated by Forge (https://forgeregistry.com) — a compact rendering of the same record served, signed, at the JSON URL above. Trust and scan facts are the registry's own measurements; anything Forge did not measure is named as unmeasured rather than omitted.
