Skip to content

Commit 800e096

Browse files
committed
refactor(core): migrate to hexagonal architecture and decouple mcp server logic
1 parent e96a6a8 commit 800e096

20 files changed

Lines changed: 4574 additions & 5175 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ claude_desktop_config.json
189189

190190
# Test files
191191
.cursor/
192-
tests/
193192
test.py
194193
extract_test_issues.py
195194
*.tmp

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ RUN pip install --no-cache-dir --upgrade pip
2323
RUN pip install --no-cache-dir -r requirements.txt
2424

2525
# Copy the rest of the application code
26-
COPY main.py .
27-
# COPY session_string_generator.py . # Optional: if needed within the container, otherwise can be run outside
26+
COPY pyproject.toml README.md ./
27+
COPY src/ src/
28+
29+
RUN pip install --no-cache-dir .
2830

2931
# Create a non-root user and switch to it
3032
RUN adduser --disabled-password --gecos "" appuser && chown -R appuser:appuser /app
@@ -44,4 +46,4 @@ ENV TELEGRAM_SESSION_STRING=""
4446
# EXPOSE 8000
4547

4648
# Define the command to run the application
47-
CMD ["python", "main.py"]
49+
CMD ["telegram-mcp"]

__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

claude_desktop_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"--directory",
77
"/PATH-TO/telegram-mcp",
88
"run",
9-
"main.py"
9+
"telegram-mcp"
1010
]
1111
}
1212
}

0 commit comments

Comments
 (0)