You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read-only mode and a chat allowlist for agents #26
Any agent that can run tg can also run tg send, or a tg api call that changes something. telegram-mcp can expose only read-only tools and limit every tool to an allowlist of chats.
Proposed:
Config keys readOnly and allowedChats, plus TELEGRAM_SYNC_CLI_READ_ONLY=1.
In read-only mode, mutating commands fail with a new documented READ_ONLY error code, and tg api allows only read methods (get*, search*, resolve*, check*).
Commands that take a chat refuse chats outside allowedChats.
The docs describe this as protection against mistakes, not as a security boundary.
Done when tests show every mutating command blocked in read-only mode and chat-scoped commands limited to the allowlist.
Activity
feat: read-only mode and a chat allowlist for agents
feat: read-only mode and a chat allowlist for agents
feat: read-only mode and a chat allowlist for agents