Summary
This pull request focuses on improving the stability and compatibility of the Telegram MCP server by removing tools that were either unreliable or incompatible with the expected MCP environment.
Changes Included
-
Removed File Handling Tools:
- Removed tools relying on direct
file_patharguments (send_file,download_media,set_profile_photo,edit_chat_photo,send_voice,send_sticker,upload_file). - Reason: These tools assumed direct file system access via absolute paths, which is not reliably supported by the MCP interaction model for attached files.
- Removed tools relying on direct
-
Removed GIF Handling Tools:
- Removed
get_gif_search,get_saved_gifs, andsend_gif. - Reason: Despite attempts to refactor and fix (
get_gif_searchimplementation updated,get_saved_gifsadded, logging added tosend_gif), these tools continued to exhibit unreliable behavior and errors, likely due to underlying library/API complexities or inconsistencies. They have been removed to ensure overall toolset stability.
- Removed
-
Documentation Updates:
- Updated
README.mdto remove references to the deleted file and GIF tools in the "Features & Tools" list. - Added notes to the "Removed Functionality" section in
README.mdexplaining why these toolsets were removed.
- Updated
Impact
- Reduces the number of available tools but increases the reliability of the remaining set.
- Aligns the toolset more closely with the practical limitations observed in the MCP environment.