feat: initialize Python MCP server project structure

- Add pyproject.toml with dependencies and dev tools
- Create src/mcp_cordra package structure
- Add tests directory
- Configure uv environment with lock file
- Add comprehensive .gitignore

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
daniel
2025-06-28 19:42:10 +02:00
parent 2090c8e0c8
commit d95151f9a4
6 changed files with 898 additions and 0 deletions

52
pyproject.toml Normal file
View File

@@ -0,0 +1,52 @@
[project]
name = "mcp-cordra"
version = "0.1.0"
description = "MCP server for Cordra digital object repository"
authors = [
{name = "Daniel Bauer", email = "github@dbauer.me"},
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"mcp>=1.2.0",
"CordraPy",
"httpx>=0.25.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.1.0",
"mypy>=1.6.0",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"loguru>=0.7.0",
]
[project.scripts]
mcp-cordra = "mcp_cordra.server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py311"
line-length = 88
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
[tool.ruff.lint]
ignore = ["E501"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "--cov=src/mcp_cordra --cov-report=term-missing"