-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (109 loc) · 2.84 KB
/
pyproject.toml
File metadata and controls
124 lines (109 loc) · 2.84 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "uml-mcp"
version = "1.2.0"
requires-python = ">=3.10,<3.14"
[tool.poetry]
name = "uml-mcp"
version = "1.2.0"
description = "UML diagram generation server with MCP interface"
authors = ["antoinebou12 <[email protected]>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/antoinebou12/uml-mcp"
packages = [
{ include = "mcp_core" },
{ include = "tools" },
]
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
fastapi = "^0.128.0"
uvicorn = "^0.40.0"
pydantic = "^2.3.0"
pydantic-core = ">=2.27.0,<3"
rich = "^14.0.0"
httpx = "^0.28.0"
typer = "^0.9.0"
python-multipart = "^0.0.22"
python-dotenv = "^1.0.0"
starlette = "^0.52.0"
jinja2 = "^3.1.2"
aiofiles = "^23.2.1"
requests = "^2.28.0"
python-dateutil = "^2.8.2"
# Add diagram-related dependencies
graphviz = "^0.20.1"
pillow = "^10.1.0"
# If fastmcp is not your own module but a dependency (2.3.1+ for http_app / Streamable HTTP)
fastmcp = ">=2.3.1,<4"
mcp = "^1.2.0"
[tool.poetry.group.dev.dependencies]
tomli = "^2.0.0"
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
pre-commit = "^4.0.0"
ruff = ">=0.8.0"
ty = ">=0.0.14"
pytest-asyncio = "^0.21.1"
black = ">=23.0.0"
flake8 = ">=7.0.0"
isort = ">=5.12.0"
mkdocs = ">=1.6.0"
mkdocs-material = ">=9.5.0"
[tool.poetry.scripts]
# Official MCP server CLI (single entrypoint; server.py delegates here)
uml-mcp = "mcp_core.core.server:main"
mcp-server = "mcp_core.core.server:main"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
python_classes = "Test*"
asyncio_mode = "auto"
addopts = "--cov=mcp_core --cov=tools --cov-report=term --cov-report=html"
[tool.ruff]
target-version = "py310"
line-length = 88
exclude = [".venv", "build", "dist", "ai_uml"]
[tool.ruff.format]
quote-style = "double"
# Optional ML / eval code and one-off scripts are not part of the MCP package surface.
[tool.ty.src]
exclude = ["ai_uml/**", "scripts/**", "examples/**"]
# FastMCP / Starlette typing is often stricter than runtime; relax in integration tests.
[[tool.ty.overrides]]
include = ["tests/**"]
[tool.ty.overrides.rules]
possibly-missing-attribute = "ignore"
[tool.ty.rules]
redundant-cast = "ignore"
[tool.coverage.run]
source = ["mcp_core", "tools"]
omit = ["tests/*", "*/__init__.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
[dependency-groups]
dev = [
"tomli>=2.0.0",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.8.0",
"ty>=0.0.14",
"pytest-asyncio>=0.21.1",
"black>=23.0.0",
"flake8>=7.0.0",
"isort>=5.12.0",
"mypy>=1.19.1",
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
]