telegram-mcp-server 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {telegram_mcp_server-0.2.0/telegram_mcp_server.egg-info → telegram_mcp_server-0.2.2}/PKG-INFO +40 -5
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/README.md +39 -4
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/pyproject.toml +1 -1
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/__init__.py +2 -2
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/cli.py +6 -1
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/server.py +54 -29
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2/telegram_mcp_server.egg-info}/PKG-INFO +40 -5
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/LICENSE +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/MANIFEST.in +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/requirements.txt +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/setup.cfg +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/__main__.py +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/bot.py +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/config.py +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/message_queue.py +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/session.py +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/SOURCES.txt +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/dependency_links.txt +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/entry_points.txt +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/requires.txt +0 -0
- {telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/top_level.txt +0 -0
{telegram_mcp_server-0.2.0/telegram_mcp_server.egg-info → telegram_mcp_server-0.2.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: telegram-mcp-server
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Remote control Claude Code via Telegram - MCP Server with Dynamic Buttons
|
|
5
5
|
Author-email: Ray Volcy <volycu@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -74,13 +74,45 @@ Through the MCP (Model Context Protocol), this project allows you to:
|
|
|
74
74
|
- 🎯 **Multi-session Management** - Manage multiple projects simultaneously
|
|
75
75
|
- 🤖 **Universal Support** - Works with both Claude Code and Codex
|
|
76
76
|
|
|
77
|
-
## Quick Start
|
|
77
|
+
## ⚡ Quick Start (New Users)
|
|
78
78
|
|
|
79
|
-
###
|
|
79
|
+
### Installation & Setup (One Command)
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
#
|
|
83
|
-
|
|
82
|
+
# Use uvx (recommended, no installation needed, always latest version)
|
|
83
|
+
uvx --refresh telegram-mcp-server@latest --setup
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
This will:
|
|
87
|
+
1. ✅ Download the latest version from PyPI
|
|
88
|
+
2. ✅ Guide you through Telegram Bot setup
|
|
89
|
+
3. ✅ Auto-configure Claude Code / Codex / Gemini CLI
|
|
90
|
+
4. ✅ Test the connection
|
|
91
|
+
|
|
92
|
+
**That's it!** 🎉
|
|
93
|
+
|
|
94
|
+
### Verify Installation
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Check version (should be 0.2.1 or higher)
|
|
98
|
+
uvx telegram-mcp-server@latest --version
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Expected output**:
|
|
102
|
+
```
|
|
103
|
+
telegram-mcp-server version 0.2.1
|
|
104
|
+
https://github.com/batianVolyc/telegram-mcp-server
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 📖 Detailed Installation
|
|
110
|
+
|
|
111
|
+
### Method 1: Using uvx (Recommended)
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Always use latest version
|
|
115
|
+
uvx telegram-mcp-server@latest --setup
|
|
84
116
|
|
|
85
117
|
# Or using pip
|
|
86
118
|
pip install telegram-mcp-server
|
|
@@ -145,6 +177,9 @@ claude --permission-mode bypassPermissions
|
|
|
145
177
|
# Codex
|
|
146
178
|
codex --dangerously-bypass-approvals-and-sandbox
|
|
147
179
|
|
|
180
|
+
# Gemini CLI (YOLO mode - auto-approve all MCP calls)
|
|
181
|
+
gemini --yolo
|
|
182
|
+
|
|
148
183
|
# In the AI assistant
|
|
149
184
|
> Enter unattended mode. Task: analyze project structure
|
|
150
185
|
```
|
|
@@ -40,13 +40,45 @@ Through the MCP (Model Context Protocol), this project allows you to:
|
|
|
40
40
|
- 🎯 **Multi-session Management** - Manage multiple projects simultaneously
|
|
41
41
|
- 🤖 **Universal Support** - Works with both Claude Code and Codex
|
|
42
42
|
|
|
43
|
-
## Quick Start
|
|
43
|
+
## ⚡ Quick Start (New Users)
|
|
44
44
|
|
|
45
|
-
###
|
|
45
|
+
### Installation & Setup (One Command)
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
#
|
|
49
|
-
|
|
48
|
+
# Use uvx (recommended, no installation needed, always latest version)
|
|
49
|
+
uvx --refresh telegram-mcp-server@latest --setup
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
This will:
|
|
53
|
+
1. ✅ Download the latest version from PyPI
|
|
54
|
+
2. ✅ Guide you through Telegram Bot setup
|
|
55
|
+
3. ✅ Auto-configure Claude Code / Codex / Gemini CLI
|
|
56
|
+
4. ✅ Test the connection
|
|
57
|
+
|
|
58
|
+
**That's it!** 🎉
|
|
59
|
+
|
|
60
|
+
### Verify Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Check version (should be 0.2.1 or higher)
|
|
64
|
+
uvx telegram-mcp-server@latest --version
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Expected output**:
|
|
68
|
+
```
|
|
69
|
+
telegram-mcp-server version 0.2.1
|
|
70
|
+
https://github.com/batianVolyc/telegram-mcp-server
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 📖 Detailed Installation
|
|
76
|
+
|
|
77
|
+
### Method 1: Using uvx (Recommended)
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Always use latest version
|
|
81
|
+
uvx telegram-mcp-server@latest --setup
|
|
50
82
|
|
|
51
83
|
# Or using pip
|
|
52
84
|
pip install telegram-mcp-server
|
|
@@ -111,6 +143,9 @@ claude --permission-mode bypassPermissions
|
|
|
111
143
|
# Codex
|
|
112
144
|
codex --dangerously-bypass-approvals-and-sandbox
|
|
113
145
|
|
|
146
|
+
# Gemini CLI (YOLO mode - auto-approve all MCP calls)
|
|
147
|
+
gemini --yolo
|
|
148
|
+
|
|
114
149
|
# In the AI assistant
|
|
115
150
|
> Enter unattended mode. Task: analyze project structure
|
|
116
151
|
```
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "telegram-mcp-server"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Remote control Claude Code via Telegram - MCP Server with Dynamic Buttons"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -515,7 +515,11 @@ def main():
|
|
|
515
515
|
if len(sys.argv) > 1:
|
|
516
516
|
arg = sys.argv[1]
|
|
517
517
|
|
|
518
|
-
if arg in ["--
|
|
518
|
+
if arg in ["--version", "-v", "version"]:
|
|
519
|
+
from . import __version__
|
|
520
|
+
print(f"telegram-mcp-server version {__version__}")
|
|
521
|
+
print("https://github.com/batianVolyc/telegram-mcp-server")
|
|
522
|
+
elif arg in ["--setup", "-s", "setup"]:
|
|
519
523
|
asyncio.run(interactive_setup())
|
|
520
524
|
elif arg in ["--config", "-c", "config"]:
|
|
521
525
|
show_config()
|
|
@@ -524,6 +528,7 @@ def main():
|
|
|
524
528
|
print()
|
|
525
529
|
print("Usage:")
|
|
526
530
|
print(" telegram-mcp-server Run MCP server")
|
|
531
|
+
print(" telegram-mcp-server --version Show version")
|
|
527
532
|
print(" telegram-mcp-server --setup Interactive setup wizard")
|
|
528
533
|
print(" telegram-mcp-server --config Show current configuration")
|
|
529
534
|
print(" telegram-mcp-server --help Show this help")
|
|
@@ -129,29 +129,28 @@ async def list_tools() -> list[Tool]:
|
|
|
129
129
|
Tool(
|
|
130
130
|
name="telegram_notify",
|
|
131
131
|
description="""
|
|
132
|
-
|
|
132
|
+
发送简单通知到 Telegram(基础版本)
|
|
133
|
+
|
|
134
|
+
⚠️ 推荐使用 telegram_notify_with_actions 代替此工具
|
|
135
|
+
telegram_notify_with_actions 提供动态按钮,用户体验更好
|
|
136
|
+
|
|
137
|
+
此工具适用于:
|
|
138
|
+
- 简单的状态更新(不需要用户交互)
|
|
139
|
+
- 快速通知(无需提供下一步建议)
|
|
140
|
+
- 向后兼容旧代码
|
|
133
141
|
|
|
134
142
|
参数:
|
|
135
143
|
- event: 事件类型(completed/error/question/progress)
|
|
136
|
-
- summary:
|
|
137
|
-
- details:
|
|
138
|
-
|
|
139
|
-
最佳实践:
|
|
140
|
-
1. summary 必须简洁明了(1-2句话),说明做了什么、结果如何
|
|
141
|
-
2. 不要包含思考过程、不要包含代码片段
|
|
142
|
-
3. 需要用户决策时,清晰说明选项
|
|
144
|
+
- summary: 简短总结(必填,200字以内)
|
|
145
|
+
- details: 详细信息(可选)
|
|
143
146
|
|
|
144
147
|
示例:
|
|
145
148
|
telegram_notify(
|
|
146
149
|
event="completed",
|
|
147
|
-
summary="修复了 auth.py:45 的空指针异常,所有测试通过"
|
|
148
|
-
details="修改文件: auth.py, test_auth.py\\n测试: 12/12 passed"
|
|
150
|
+
summary="修复了 auth.py:45 的空指针异常,所有测试通过"
|
|
149
151
|
)
|
|
150
152
|
|
|
151
|
-
|
|
152
|
-
event="question",
|
|
153
|
-
summary="发现3种修复方案:1)添加空值检查 2)使用Optional类型 3)重构整个模块。推荐方案1,是否继续?"
|
|
154
|
-
)
|
|
153
|
+
💡 更好的选择:使用 telegram_notify_with_actions 提供智能建议按钮
|
|
155
154
|
""",
|
|
156
155
|
inputSchema={
|
|
157
156
|
"type": "object",
|
|
@@ -177,9 +176,15 @@ async def list_tools() -> list[Tool]:
|
|
|
177
176
|
Tool(
|
|
178
177
|
name="telegram_notify_with_actions",
|
|
179
178
|
description="""
|
|
180
|
-
|
|
179
|
+
⭐ 推荐:发送带有动态操作按钮的智能通知到 Telegram
|
|
180
|
+
|
|
181
|
+
这是 telegram_notify 的增强版本,可以根据当前情况为用户提供智能的下一步操作建议。
|
|
181
182
|
|
|
182
|
-
|
|
183
|
+
优势:
|
|
184
|
+
- ✅ 提供 2-4 个智能操作按钮,用户一键执行
|
|
185
|
+
- ✅ 按钮是建议,不强制,用户可以忽略
|
|
186
|
+
- ✅ 自动添加提示:"💡 这些是建议的下一步,你也可以直接发送其他指令"
|
|
187
|
+
- ✅ 即使不提供按钮(actions=[]),也可以正常使用
|
|
183
188
|
|
|
184
189
|
参数:
|
|
185
190
|
- event: 事件类型(completed/error/question/progress)
|
|
@@ -536,25 +541,45 @@ async def list_tools() -> list[Tool]:
|
|
|
536
541
|
4. 收到指令后执行,重复循环
|
|
537
542
|
|
|
538
543
|
⚠️ 重要:
|
|
539
|
-
-
|
|
544
|
+
- 完成任务后必须调用通知工具发送结果
|
|
540
545
|
- telegram_unattended_mode 本身不发送消息,只等待
|
|
541
546
|
- 这样用户每次只收到任务结果,不会有重复的等待提示
|
|
542
547
|
|
|
543
|
-
📋
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
+
📋 推荐使用 telegram_notify_with_actions 发送结果:
|
|
549
|
+
|
|
550
|
+
⭐ 最佳实践(带智能按钮):
|
|
551
|
+
telegram_notify_with_actions(
|
|
552
|
+
event="completed",
|
|
553
|
+
summary="✅ 完成代码审查\\n- 发现 3 个可优化点\\n- 代码质量:B+",
|
|
554
|
+
actions=[
|
|
555
|
+
{"text": "💡 优化这 3 处", "action": "自动优化发现的问题"},
|
|
556
|
+
{"text": "📊 查看详情", "action": "显示详细的优化建议"}
|
|
557
|
+
]
|
|
558
|
+
)
|
|
559
|
+
|
|
560
|
+
✅ 简单通知(无按钮):
|
|
561
|
+
telegram_notify_with_actions(
|
|
562
|
+
event="completed",
|
|
563
|
+
summary="修复了 auth.py 的空指针异常,测试通过",
|
|
564
|
+
actions=[] # 不提供按钮
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
或使用基础版本:
|
|
568
|
+
telegram_notify(
|
|
569
|
+
event="completed",
|
|
570
|
+
summary="创建了 3 个文件:main.py, utils.py, test.py"
|
|
571
|
+
)
|
|
548
572
|
|
|
549
|
-
⚠️
|
|
550
|
-
-
|
|
551
|
-
-
|
|
552
|
-
-
|
|
573
|
+
⚠️ 仅在必要时发送代码/文件:
|
|
574
|
+
- 遇到无法自动修复的错误 → telegram_send_code 展示错误代码
|
|
575
|
+
- 用户明确要求 → telegram_send_file 发送文件
|
|
576
|
+
- 修复关键 bug → telegram_send_code 展示修复对比
|
|
553
577
|
|
|
554
578
|
🎯 智能判断示例:
|
|
555
|
-
-
|
|
556
|
-
-
|
|
557
|
-
-
|
|
579
|
+
- 任务完成 → telegram_notify_with_actions(带下一步建议按钮)
|
|
580
|
+
- 遇到错误 → telegram_notify_with_actions(带修复方案按钮)
|
|
581
|
+
- 需要决策 → telegram_notify_with_actions(带选项按钮)
|
|
582
|
+
- 简单更新 → telegram_notify(无按钮)
|
|
558
583
|
|
|
559
584
|
退出方式:
|
|
560
585
|
- Telegram 发送 "退出" 或 "exit"
|
{telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2/telegram_mcp_server.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: telegram-mcp-server
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Remote control Claude Code via Telegram - MCP Server with Dynamic Buttons
|
|
5
5
|
Author-email: Ray Volcy <volycu@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -74,13 +74,45 @@ Through the MCP (Model Context Protocol), this project allows you to:
|
|
|
74
74
|
- 🎯 **Multi-session Management** - Manage multiple projects simultaneously
|
|
75
75
|
- 🤖 **Universal Support** - Works with both Claude Code and Codex
|
|
76
76
|
|
|
77
|
-
## Quick Start
|
|
77
|
+
## ⚡ Quick Start (New Users)
|
|
78
78
|
|
|
79
|
-
###
|
|
79
|
+
### Installation & Setup (One Command)
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
#
|
|
83
|
-
|
|
82
|
+
# Use uvx (recommended, no installation needed, always latest version)
|
|
83
|
+
uvx --refresh telegram-mcp-server@latest --setup
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
This will:
|
|
87
|
+
1. ✅ Download the latest version from PyPI
|
|
88
|
+
2. ✅ Guide you through Telegram Bot setup
|
|
89
|
+
3. ✅ Auto-configure Claude Code / Codex / Gemini CLI
|
|
90
|
+
4. ✅ Test the connection
|
|
91
|
+
|
|
92
|
+
**That's it!** 🎉
|
|
93
|
+
|
|
94
|
+
### Verify Installation
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Check version (should be 0.2.1 or higher)
|
|
98
|
+
uvx telegram-mcp-server@latest --version
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Expected output**:
|
|
102
|
+
```
|
|
103
|
+
telegram-mcp-server version 0.2.1
|
|
104
|
+
https://github.com/batianVolyc/telegram-mcp-server
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 📖 Detailed Installation
|
|
110
|
+
|
|
111
|
+
### Method 1: Using uvx (Recommended)
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Always use latest version
|
|
115
|
+
uvx telegram-mcp-server@latest --setup
|
|
84
116
|
|
|
85
117
|
# Or using pip
|
|
86
118
|
pip install telegram-mcp-server
|
|
@@ -145,6 +177,9 @@ claude --permission-mode bypassPermissions
|
|
|
145
177
|
# Codex
|
|
146
178
|
codex --dangerously-bypass-approvals-and-sandbox
|
|
147
179
|
|
|
180
|
+
# Gemini CLI (YOLO mode - auto-approve all MCP calls)
|
|
181
|
+
gemini --yolo
|
|
182
|
+
|
|
148
183
|
# In the AI assistant
|
|
149
184
|
> Enter unattended mode. Task: analyze project structure
|
|
150
185
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server/message_queue.py
RENAMED
|
File without changes
|
|
File without changes
|
{telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/requires.txt
RENAMED
|
File without changes
|
{telegram_mcp_server-0.2.0 → telegram_mcp_server-0.2.2}/telegram_mcp_server.egg-info/top_level.txt
RENAMED
|
File without changes
|