[project]
name = "mcp-mempool"
version = "0.1.0"
description = "MCP Mempool 서버 - mempool.space WebSocket & REST API를 위한 MCP 서버"
authors = [
{name = "Sungji Kim", email = "sungji@example.com"},
]
dependencies = [
"mcp>=0.3.0",
"fastmcp>=2.0.0",
"websockets>=12.0",
"aiohttp>=3.9.0",
"pydantic>=2.0.0",
"uvicorn[standard]>=0.24.0",
"prometheus-client>=0.19.0",
"structlog>=23.0.0",
"tenacity>=8.2.0",
"fastapi>=0.104.0",
]
requires-python = ">=3.11"
readme = "README.md"
license = {text = "MIT"}
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"httpx>=0.25.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"black>=23.0.0",
]
[project.scripts]
mcp-mempool = "mempool_ws_mcp_server.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/mempool_ws_mcp_server"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/README.md",
"/LICENSE",
]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM", "TCH"]
ignore = ["E501", "B008"]
[tool.mypy]
python_version = "3.11"
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
show_error_codes = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"-ra",
"--cov=mempool_ws_mcp_server",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"pass",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]