📦 cxhello / nacos-fastapi-mcp-example

📄 pyproject.toml · 47 lines
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[project]
name = "nacos-fastapi-mcp-example"
version = "0.1.0"
description = "FastAPI + MCP + Nacos example with PDM"
authors = [
    {name = "cxhello", email = "caixiaohuichn@gmail.com"},
]
keywords = ["fastapi", "uvicorn", "loguru", "trace-id", "mcp", "nacos", "pdm"]
classifiers = [
  "Programming Language :: Python :: 3",
  "License :: OSI Approved :: MIT License",
  "Framework :: FastAPI",
]

dependencies = ["uvicorn>=0.36.0", "fastapi>=0.117.1", "loguru>=0.7.3", "fastapi-mcp>=0.4.0", "nacos-sdk-python>=2.0.9", "nacos-maintainer-sdk-python>=0.1.2", "pyyaml>=6.0.2"]
requires-python = "==3.13.*"
readme = "README.md"
license = {text = "MIT"}

[project.urls]
Homepage = "https://github.com/cxhello/nacos-fastapi-mcp-example"
Repository = "https://github.com/cxhello/nacos-fastapi-mcp-example"
Issues = "https://github.com/cxhello/nacos-fastapi-mcp-example/issues"

[tool.pdm]
distribution = false
# 如果你偏好把虚拟环境放在项目内,解除注释:
# venv.in_project = true

[tool.pdm.scripts]
# 开发
dev = "python -m app.server --reload"
# 生产(选 uvicorn 多进程)
start = "python -m app.server"
lint = "ruff check ."
fmt = "ruff check --select I --fix . && ruff format ."
typecheck = "mypy app"
test = "pytest -q"

[tool.ruff]
line-length = 100
target-version = "py313"

[tool.mypy]
python_version = "3.13"
strict = false
ignore_missing_imports = true