c0b4cb5d5c
Riscritto interamente HyperliquidClient su httpx puro + eth-account per la firma EIP-712 L1 (chainId 1337, phantom agent source 'a'/'b' per mainnet/testnet). Bit-parity verificata contro hyperliquid.utils.signing in test_signing_parity_with_canonical_sdk. 16 metodi pubblici, 26 test passanti. Aggiunte deps: eth-account, msgpack, eth-utils. hyperliquid-python-sdk ancora presente nel pyproject; rimossa nel sweep finale. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
87 lines
1.9 KiB
TOML
87 lines
1.9 KiB
TOML
[project]
|
|
name = "cerbero-mcp"
|
|
version = "2.0.0"
|
|
description = "Unified multi-exchange MCP server with token-based testnet/mainnet routing"
|
|
requires-python = ">=3.11"
|
|
authors = [{ name = "Adriano", email = "adrianodalpastro@tielogic.com" }]
|
|
dependencies = [
|
|
"fastapi>=0.115",
|
|
"uvicorn[standard]>=0.32",
|
|
"pydantic>=2.9",
|
|
"pydantic-settings>=2.6",
|
|
"httpx>=0.27",
|
|
"python-json-logger>=2.0",
|
|
"websockets>=13",
|
|
"numpy>=1.26",
|
|
"scipy>=1.13",
|
|
"statsmodels>=0.14",
|
|
"pandas>=2.2",
|
|
"pybit>=5.7",
|
|
"alpaca-py>=0.30",
|
|
"hyperliquid-python-sdk>=0.6",
|
|
"eth-account>=0.13.7",
|
|
"msgpack>=1.1.2",
|
|
"eth-utils>=5.3.1",
|
|
]
|
|
|
|
[project.scripts]
|
|
cerbero-mcp = "cerbero_mcp.__main__:main"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/cerbero_mcp"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "W", "UP", "B", "SIM"]
|
|
ignore = ["E501", "E741"]
|
|
|
|
[tool.ruff.lint.flake8-bugbear]
|
|
extend-immutable-calls = [
|
|
"fastapi.Depends",
|
|
"fastapi.Query",
|
|
"fastapi.Body",
|
|
"fastapi.Header",
|
|
"fastapi.Path",
|
|
"fastapi.Cookie",
|
|
"fastapi.Form",
|
|
"fastapi.File",
|
|
"fastapi.Security",
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"**/test_*.py" = ["B008"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
addopts = "--import-mode=importlib"
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = false
|
|
warn_return_any = true
|
|
warn_unused_ignores = true
|
|
warn_redundant_casts = true
|
|
check_untyped_defs = true
|
|
ignore_missing_imports = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["pybit.*", "alpaca.*", "hyperliquid.*", "pythonjsonlogger.*"]
|
|
ignore_missing_imports = true
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.0.3",
|
|
"pytest-asyncio>=1.3.0",
|
|
"pytest-httpx>=0.36.2",
|
|
"mypy>=1.13",
|
|
"ruff>=0.5,<0.6",
|
|
]
|