Live reads go through an operator proxy pool (round-robin over the newest 100 entries, cooling on connect failures, no direct fallback); stored clearances are replayed only on the exit that earned them. Identity, clearance, solver and Turnstile rungs escalate automatically. fetch_pages reads up to 12 URLs four at a time with per-item isolation. report/reports/reports_update keep a durable queue of unreadable pages for the operator. Ships a pinned multi-stage image (non-root 10001, data in /data), an ordered CI with static gates, tests on 3.12 and 3.13 at 85% coverage, an offline image smoke, and sha/latest publishing gated on main.
53 lines
933 B
TOML
53 lines
933 B
TOML
[project]
|
|
name = "fetch-mcp"
|
|
version = "0.1.0"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"beautifulsoup4>=4.13,<5",
|
|
"certifi>=2024.2",
|
|
"curl-cffi>=0.14,<1",
|
|
"markdownify>=1.2,<2",
|
|
"mcp>=1.12,<2",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.3",
|
|
"pytest-cov>=6.0",
|
|
"ruff>=0.9",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "-q --cov --cov-report=term-missing --cov-report=xml:coverage.xml"
|
|
testpaths = ["tests"]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
source = [
|
|
"server",
|
|
"transport",
|
|
"proxy",
|
|
"identity",
|
|
"solve",
|
|
"clearance",
|
|
"reports",
|
|
"json_reader",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 85
|
|
show_missing = true
|
|
skip_covered = true
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"if __name__ == .__main__.:",
|
|
"raise AssertionError",
|
|
] |