Files
ai_academy/mcp-server/pyproject.toml
T
runny 7ec21f35b0 chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、
Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。
今日开发的培训推送管理改动随后单独提交。
2026-11-16 18:12:23 +08:00

108 lines
2.7 KiB
TOML

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "tencent-academy-mcp"
version = "1.1.1"
description = "Academy MCP Server - Model Context Protocol server for Academy API"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Academy Team", email = "support@academy.com"}
]
maintainers = [
{name = "Academy Team", email = "support@academy.com"}
]
keywords = ["mcp", "model-context-protocol", "academy", "knowledge-management", "api-server"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.10"
dependencies = [
"mcp>=2,<3",
"requests>=2.31.0",
"starlette>=0.27.0",
"uvicorn>=0.24.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"black>=23.0",
"flake8>=6.0",
"mypy>=1.0",
]
test = [
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0",
]
[project.urls]
Homepage = "https://github.com/Tencent/WeKnora"
Documentation = "https://docs.academy.com"
Repository = "https://github.com/Tencent/WeKnora/tree/main/mcp-server"
"Bug Reports" = "https://github.com/Tencent/WeKnora/issues"
Changelog = "https://github.com/Tencent/WeKnora/blob/main/mcp-server/CHANGELOG.md"
[project.scripts]
academy-mcp-server = "main:sync_main"
academy-server = "run_server:main"
[tool.setuptools]
py-modules = ["academy_mcp_server", "upload_paths", "main", "run_server", "run", "test_module"]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.md", "*.txt", "*.yml", "*.yaml"]
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests"]
asyncio_mode = "auto"