telegram-claude-mcp 1.0.2 → 1.0.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-claude-mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "MCP server that lets Claude message you on Telegram",
5
5
  "author": "Geravant",
6
6
  "license": "MIT",
@@ -31,10 +31,20 @@ export function loadAppConfig(): AppConfig {
31
31
  const chatId = process.env.TELEGRAM_CHAT_ID;
32
32
  const sessionPort = process.env.SESSION_PORT || '3333';
33
33
 
34
+ // Auto-detect project name from current working directory
35
+ const cwd = process.cwd();
36
+ const projectName = cwd.split('/').pop() || 'unknown';
37
+
38
+ // Build session name: SESSION_NAME:projectName or just projectName
39
+ const baseSessionName = process.env.SESSION_NAME;
40
+ const sessionName = baseSessionName
41
+ ? `${baseSessionName}:${projectName}`
42
+ : projectName;
43
+
34
44
  return {
35
45
  telegramBotToken: process.env.TELEGRAM_BOT_TOKEN || '',
36
46
  telegramChatId: chatId ? parseInt(chatId, 10) : 0,
37
- sessionName: process.env.SESSION_NAME || 'default',
47
+ sessionName,
38
48
  sessionPort: parseInt(sessionPort, 10),
39
49
  openrouterApiKey: process.env.OPENROUTER_API_KEY,
40
50
  openrouterModel: process.env.OPENROUTER_MODEL || 'openai/gpt-oss-120b',