[project]
name = "uscardforum"
version = "0.1.0"
description = "MCP Server for USCardForum Discourse API"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [
{ name = "USCardForum MCP" }
]
keywords = ["mcp", "discourse", "uscardforum", "credit-cards", "forum"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"mcp>=1.0.0",
"pydantic>=2.0.0",
"requests>=2.28.0",
"cloudscraper>=1.2.71",
"ratelimit>=2.2.1",
"backoff>=2.2.1",
"curl_cffi>=0.5.0",
"playwright>=1.40.0",
"playwright-stealth>=1.0.6",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"types-requests>=2.28.0",
]
[project.scripts]
uscardforum = "uscardforum.server:main"
[project.urls]
Homepage = "https://github.com/uscardforum/mcp-server"
Documentation = "https://github.com/uscardforum/mcp-server#readme"
Repository = "https://github.com/uscardforum/mcp-server.git"
Issues = "https://github.com/uscardforum/mcp-server/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/uscardforum"]
[dependency-groups]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"types-requests>=2.28.0",
]
[tool.ruff]
target-version = "py310"
line-length = 88
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.isort]
known-first-party = ["uscardforum"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = [
"cloudscraper.*",
"ratelimit.*",
"backoff.*",
"mcp.*",
"playwright_stealth.*",
"curl_cffi.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --cov=uscardforum --cov-report=term-missing"