-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (110 loc) · 3.32 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (110 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "better-telegram-mcp"
version = "4.17.0"
description = "Production-grade MCP server for Telegram — dual-mode Bot API + MTProto, domain-separated tools"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = "==3.13.*"
authors = [{ name = "n24q02m", email = "quangminh2422004@gmail.com" }]
keywords = [
"mcp", "mcp-server", "model-context-protocol",
"telegram", "telegram-bot", "telegram-api",
"claude", "cursor", "copilot", "antigravity", "codex", "opencode",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Communications :: Chat",
]
dependencies = [
"mcp[cli]>=1.28.1",
"httpx>=0.28.1",
"telethon>=1.44.0",
"pydantic>=2.13.4,<2.14",
"pydantic-settings>=2.14.2",
"loguru>=0.7.3",
"n24q02m-mcp-core>=1.23.0,<2",
"cryptography>=50.0.0",
"starlette>=1.3.1",
"uvicorn>=0.50.0",
"cryptg>=0.6.0",
]
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-timeout>=2.4.0",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.8.0",
"ruff>=0.16.2",
"ty>=0.0.69",
"pre-commit>=4.6.1",
]
[project.scripts]
better-telegram-mcp = "better_telegram_mcp.cli:main"
[project.urls]
Homepage = "https://github.com/n24q02m/better-telegram-mcp"
Repository = "https://github.com/n24q02m/better-telegram-mcp"
Issues = "https://github.com/n24q02m/better-telegram-mcp/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/better_telegram_mcp"]
[tool.hatch.build.targets.wheel.sources]
"src" = ""
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
pythonpath = ["tests"]
timeout = 30
markers = [
"integration: integration tests (require Telegram credentials)",
"live: live MCP protocol tests (spawns server subprocess)",
"full: full/real bot mode tests via MCP protocol (requires bot token + chat)",
"e2e: end-to-end tests via MCP protocol (requires credentials + setup mode)",
]
addopts = "-m 'not integration and not live and not full and not e2e'"
[tool.ruff]
target-version = "py313"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "C4"]
ignore = ["E501"]
[tool.ruff.format]
quote-style = "double"
[tool.ty.environment]
python-version = "3.13"
[tool.ty.rules]
unresolved-import = "ignore"
possibly-unresolved-reference = "ignore"
unresolved-attribute = "ignore"
invalid-return-type = "ignore"
invalid-argument-type = "ignore"
not-iterable = "ignore"
invalid-assignment = "ignore"
invalid-method-override = "ignore"
empty-body = "ignore"
[tool.coverage.run]
source = ["better_telegram_mcp"]
omit = [
"tests/*",
]
[tool.coverage.report]
fail_under = 95
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
version_variables = [".claude-plugin/plugin.json:version", "server.json:version"]
tag_format = "v{version}"
commit_message = "chore(release): v{version}"
major_on_zero = false
[tool.semantic_release.changelog]
changelog_file = "CHANGELOG.md"
[tool.semantic_release.remote]
type = "github"