mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 23:29:10 +02:00
Changes settings.home from `Path.home() / ".fastmcp"` to use platformdirs.user_data_dir(), following platform conventions (~/Library/Application Support on macOS, ~/.local/share on Linux, %APPDATA% on Windows).
147 lines
3.6 KiB
TOML
147 lines
3.6 KiB
TOML
[project]
|
|
name = "fastmcp"
|
|
dynamic = ["version"]
|
|
description = "The fast, Pythonic way to build MCP servers and clients."
|
|
authors = [{ name = "Jeremiah Lowin" }]
|
|
dependencies = [
|
|
"python-dotenv>=1.1.0",
|
|
"exceptiongroup>=1.2.2",
|
|
"httpx>=0.28.1",
|
|
"mcp>=1.17.0,<2.0.0",
|
|
"openapi-pydantic>=0.5.1",
|
|
"platformdirs>=4.0.0",
|
|
"rich>=13.9.4",
|
|
"cyclopts>=3.0.0",
|
|
"authlib>=1.5.2",
|
|
"pydantic[email]>=2.11.7",
|
|
"pyperclip>=1.9.0",
|
|
"openapi-core>=0.19.5",
|
|
"py-key-value-aio[disk,memory]>=0.2.6,<0.3.0",
|
|
"websockets>=15.0.1",
|
|
"pytest-asyncio>=1.2.0",
|
|
]
|
|
|
|
requires-python = ">=3.10"
|
|
readme = "README.md"
|
|
license = "Apache-2.0"
|
|
|
|
keywords = [
|
|
"mcp",
|
|
"mcp server",
|
|
"mcp client",
|
|
"model context protocol",
|
|
"fastmcp",
|
|
"llm",
|
|
"agent",
|
|
]
|
|
classifiers = [
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Typing :: Typed",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
openai = ["openai>=1.102.0"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"dirty-equals>=0.9.0",
|
|
"fastmcp[openai]",
|
|
# add optional dependencies for fastmcp dev
|
|
"fastapi>=0.115.12",
|
|
"inline-snapshot[dirty-equals]>=0.27.2",
|
|
"ipython>=8.12.3",
|
|
"pdbpp>=0.10.3",
|
|
"pre-commit",
|
|
"psutil",
|
|
"pyinstrument>=5.0.2",
|
|
"pyperclip>=1.9.0",
|
|
"pytest>=8.3.3",
|
|
"pytest-cov>=6.1.1",
|
|
"pytest-env>=1.1.5",
|
|
"pytest-flakefinder",
|
|
"pytest-httpx>=0.35.0",
|
|
"pytest-report>=0.2.1",
|
|
"pytest-retry>=1.7.0",
|
|
"pytest-timeout>=2.4.0",
|
|
"pytest-xdist>=3.6.1",
|
|
"ruff",
|
|
"ty>=0.0.1a19",
|
|
]
|
|
|
|
[project.scripts]
|
|
fastmcp = "fastmcp.cli:app"
|
|
|
|
[project.urls]
|
|
Homepage = "https://gofastmcp.com"
|
|
Repository = "https://github.com/jlowin/fastmcp"
|
|
Documentation = "https://gofastmcp.com"
|
|
|
|
[build-system]
|
|
requires = ["hatchling", "uv-dynamic-versioning>=0.7.0"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.version]
|
|
source = "uv-dynamic-versioning"
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true
|
|
|
|
[tool.uv-dynamic-versioning]
|
|
vcs = "git"
|
|
style = "pep440"
|
|
bump = true
|
|
fallback-version = "0.0.0"
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
# filterwarnings = ["error::DeprecationWarning"]
|
|
timeout = 5
|
|
env = [
|
|
"FASTMCP_TEST_MODE=1",
|
|
'D:FASTMCP_LOG_LEVEL=DEBUG',
|
|
'D:FASTMCP_ENABLE_RICH_TRACEBACKS=0',
|
|
|
|
]
|
|
markers = [
|
|
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
|
|
"client_process: marks tests that spawn client processes via stdio transport. These can create issues when run in the same CI environment as other subprocess-based tests.",
|
|
]
|
|
# Automatically mark all tests in integration_tests folder
|
|
pythonpath = ["."]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py", "*_test.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = ["--inline-snapshot=disable"]
|
|
|
|
[tool.ty.src]
|
|
include = ["src", "tests"]
|
|
exclude = ["**/node_modules", "**/__pycache__", ".venv", ".git", "dist"]
|
|
|
|
[tool.ty.environment]
|
|
python-version = "3.10"
|
|
|
|
[tool.ty.rules]
|
|
# Rules with too many errors to fix right now (40+ each)
|
|
no-matching-overload = "ignore" # 126 errors
|
|
unknown-argument = "ignore" # 61 errors
|
|
|
|
# Rules with moderate errors that need more investigation
|
|
call-non-callable = "ignore" # 7 errors
|
|
|
|
[tool.ruff.lint]
|
|
extend-select = ["I", "UP"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401", "I001", "RUF013"]
|
|
# allow imports not at the top of the file
|
|
"src/fastmcp/__init__.py" = ["E402"]
|
|
|
|
[tool.codespell]
|
|
ignore-words-list = "asend,shttp,te"
|