Skip to content

Commit e03f0fd

Browse files
committed
use iqai/mcp-telegram
1 parent 59daf8b commit e03f0fd

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ cp example.env .env
3737
- `LLM_MODEL` — LLM model name (default: gemini-2.0-flash)
3838
- `TELEGRAM_CHAT_ID` — Telegram chat ID for notifications
3939
- `TELEGRAM_BOT_TOKEN` — Telegram bot token
40-
- `TELEGRAM_SERVER_KEY` — Telegram MCP server key
41-
- `TELEGRAM_PROFILE_ID` — Telegram MCP profile ID
4240
- `SOPHIA_ADDRESS` — Sophia's iq.wiki profile address (default provided)
4341
- `SOPHIA_TOKEN_ADDRESS` — Sophia's Token address on ATP (default provided)
4442
- `CRON_SCHEDULE` — Cron schedule for agent runs (default: every 10 minutes)

example.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
DEBUG="false"
22
GOOGLE_API_KEY= # get it from https://aistudio.google.com/apikey
3+
#Telegram setup
4+
TELEGRAM_BOT_TOKEN=
5+
TELEGRAM_CHAT_ID=

src/env.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export const envSchema = z.object({
1313
LLM_MODEL: z.string().default("gemini-2.0-flash"),
1414
TELEGRAM_CHAT_ID: z.string(),
1515
TELEGRAM_BOT_TOKEN: z.string(),
16-
TELEGRAM_SERVER_KEY: z.string(),
17-
TELEGRAM_PROFILE_ID: z.string(),
1816
SOPHIA_ADDRESS: z
1917
.string()
2018
.default("0x8AF7a19a26d8FBC48dEfB35AEfb15Ec8c407f889")

src/runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
type BaseTool,
32
GoogleLLM,
43
LLMRegistry,
54
McpError,
@@ -24,9 +23,11 @@ let iqWikiToolset: McpToolset | undefined;
2423
export async function initializeToolsets() {
2524
atpToolset = new McpToolset(createAtpConfig());
2625
const atpTools = await atpToolset.getTools();
26+
console.log("🔗 ATP tools initialized");
2727

2828
telegramToolset = new McpToolset(createTelegramConfig());
2929
const telegramTools = await telegramToolset.getTools();
30+
console.log("🔗 Telegram tools initialized");
3031

3132
iqWikiToolset = new McpToolset(createIqWikiConfig());
3233
const iqWikiTools = await iqWikiToolset.getTools();

src/utils/mcp-config.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,9 @@ export function createTelegramConfig(): McpConfig {
3535
transport: {
3636
mode: "stdio",
3737
command: "npx",
38-
args: [
39-
"-y",
40-
"@smithery/cli@latest",
41-
"run",
42-
"@NexusX-MCP/telegram-mcp-server",
43-
"--key",
44-
env.TELEGRAM_SERVER_KEY,
45-
"--profile",
46-
env.TELEGRAM_PROFILE_ID,
47-
],
38+
args: ["-y", "@iqai/mcp-telegram"],
4839
env: {
4940
TELEGRAM_BOT_TOKEN: env.TELEGRAM_BOT_TOKEN,
50-
TELEGRAM_CHAT_ID: env.TELEGRAM_CHAT_ID,
5141
PATH: env.PATH,
5242
},
5343
},

0 commit comments

Comments
 (0)