File tree Expand file tree Collapse file tree 5 files changed +6
-16
lines changed
Expand file tree Collapse file tree 5 files changed +6
-16
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 11DEBUG = " false"
22GOOGLE_API_KEY = # get it from https://aistudio.google.com/apikey
3+ # Telegram setup
4+ TELEGRAM_BOT_TOKEN =
5+ TELEGRAM_CHAT_ID =
Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff line change 11import {
2- type BaseTool ,
32 GoogleLLM ,
43 LLMRegistry ,
54 McpError ,
@@ -24,9 +23,11 @@ let iqWikiToolset: McpToolset | undefined;
2423export 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 ( ) ;
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments