Allow Telegram schedule deletion via MCP
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user