Allow Telegram schedule deletion via MCP

This commit is contained in:
2026-06-09 13:56:43 +09:00
parent c7652d3ada
commit 9615ec9172
2 changed files with 9 additions and 3 deletions

View File

@@ -486,10 +486,10 @@ def _tools() -> list[dict[str, Any]]:
"schedule_id": {"type": "integer"},
"chat_id": {
"type": "integer",
"description": "Optional Telegram chat id safety check.",
"description": "Telegram chat id safety check. Use the chat_id from bridge context.",
},
},
"required": ["schedule_id"],
"required": ["schedule_id", "chat_id"],
},
"annotations": {
"title": "Delete Telegram schedule",
@@ -588,7 +588,7 @@ def _tools() -> list[dict[str, Any]]:
"record_id": {"type": "integer"},
"chat_id": {"type": "integer"},
},
"required": ["record_id"],
"required": ["record_id", "chat_id"],
},
"annotations": {
"title": "Delete personal record",

View File

@@ -23,6 +23,12 @@ args = ["-m", "app.bridge_mcp"]
tool_timeout_sec = 30.0
default_tools_approval_mode = "auto"
[mcp_servers.telegram_bridge.tools.telegram_delete_schedule]
approval_mode = "approve"
[mcp_servers.telegram_bridge.tools.telegram_delete_personal_record]
approval_mode = "approve"
[mcp_servers.telegram_bridge.env]
PYTHONPATH = "/app"
BOT_STATE_PATH = "{_toml_string(state_path)}"