935abf86d4
build-image / build (push) Failing after 18s
- Bump mcp[cli] 1.22 -> 1.28.1 (negotiates MCP protocol 2025-11-25, matching current Claude clients; the old 2025-06-18 server never got a tools/list on the connector surface). - Bake transport config into code: stateless_http + json_response for HTTP (single JSON body instead of a 34KB SSE stream, which the connector pipeline handles far more reliably). - Bake Authentik OAuth (AuthSettings + JWT TokenVerifier) into intervals_mcp_server.auth, configured from MCP_ISSUER/MCP_RESOURCE/MCP_JWKS_URI/MCP_CLIENT_ID — removes the runtime FastMCP.__init__ monkeypatch from the k8s deployment command. - Accept token audience with/without trailing slash (RFC 8707 clients use the slash-normalised resource metadata value). - Dockerfile CMD runs the module (transport via MCP_TRANSPORT); add .gitea CI to build+push the image to git.farh.net/farhoodlabs/intervalsicu-mcp. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
124 lines
3.0 KiB
TOML
124 lines
3.0 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "intervalsicu-mcp"
|
|
version = "0.1.0"
|
|
description = "A Model Context Protocol server for Intervals.icu (FastMCP, native OAuth)"
|
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
requires-python = ">=3.12"
|
|
license = { text = "GPL-3.0-only" }
|
|
authors = [{ name = "Marc Vilanova", email = "barker-riddle.8z@icloud.com" }]
|
|
dependencies = [
|
|
"mcp[cli]>=1.28.1",
|
|
"httpx>=0.25.0",
|
|
"python-dotenv>=1.0.0",
|
|
"pyjwt[crypto]>=2.8.0",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Software Development :: Libraries",
|
|
]
|
|
keywords = ["intervals", "cycling", "running", "mcp", "ai"]
|
|
|
|
[project.urls]
|
|
"Homepage" = "https://git.farh.net/farhoodlabs/intervalsicu-mcp"
|
|
"Bug Tracker" = "https://git.farh.net/farhoodlabs/intervalsicu-mcp/issues"
|
|
"Upstream" = "https://github.com/mvilanova/intervals-mcp-server"
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8.3.5", "mypy>=1.0.0", "ruff>=0.1.0", "pytest-asyncio>=0.21", "pre-commit", "hatch", "pytest-mock==3.12.0"]
|
|
|
|
[tool.hatch.build]
|
|
include = ["server.py", "utils/*.py", "README.md", ".env.example"]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/intervals_mcp_server"]
|
|
|
|
[tool.hatch.envs.default.scripts]
|
|
test = "pytest -q"
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
# Exclude a variety of commonly ignored directories.
|
|
exclude = [
|
|
".bzr",
|
|
".direnv",
|
|
".eggs",
|
|
".git",
|
|
".hg",
|
|
".mypy_cache",
|
|
".nox",
|
|
".pants.d",
|
|
".ruff_cache",
|
|
".svn",
|
|
".tox",
|
|
".venv",
|
|
"__pypackages__",
|
|
"_build",
|
|
"buck-out",
|
|
"build",
|
|
"dist",
|
|
"node_modules",
|
|
"venv",
|
|
]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
# Select specific errors and warnings
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
# "I", # isort
|
|
"C", # flake8-comprehensions
|
|
"B", # flake8-bugbear
|
|
]
|
|
|
|
# Ignore specific errors and warnings
|
|
ignore = [
|
|
"E501", # line too long, handled by black
|
|
"B008", # do not perform function calls in argument defaults
|
|
"C901", # complexity
|
|
"G004", # Ignore f-string in logging
|
|
]
|
|
|
|
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
|
fixable = ["A", "B", "C", "D", "E", "F"]
|
|
|
|
# No unfixable rules.
|
|
unfixable = []
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
isort.known-third-party = ["starlette"]
|
|
|
|
# Unlike Flake8, default to a complexity level of 10.
|
|
mccabe.max-complexity = 10
|
|
|
|
[tool.pylint.design]
|
|
max-args = 8
|
|
max-positional-arguments = 8
|
|
|
|
[tool.typos]
|
|
default.check-filename = true
|
|
default.check-file = true
|
|
default.unicode = true
|
|
default.locale = "en-us"
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "-q"
|
|
testpaths = ["tests"]
|
|
python_files = "test_*.py"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
|
|
[tool.uv]
|
|
index-url = "https://pypi.org/simple"
|