Engineering notes
Architecture write-ups on defending MCP tools against indirect prompt injection, written directly from the gramcp codebase.
-
Why we moved Telegram MCP security enforcement inside the MTProto client
We started with a security proxy in front of an existing Node.js Telegram MCP server. Three structural gaps forced a rewrite in Rust directly on top of grammers.
-
Building a fail-closed security boundary between an LLM and Telegram in Rust
A walkthrough of PolicyEngine, CanonicalChatId normalization, ReadBlacklistGuard, username-to-peer-ID pinning, SQLite rate permits, and pre-execution audit logging.