[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "memorygraphMCP"
dynamic = ["version"]
description = "Graph-based MCP memory server for AI coding agents with intelligent relationship tracking and multi-backend support"
authors = [
{name = "Gregory Dickson", email = "gregory.d.dickson@gmail.com"}
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
keywords = ["mcp", "memory", "neo4j", "memgraph", "sqlite", "ai", "coding-agent", "knowledge-graph", "graph-database", "claude-code"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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 :: Software Development :: Libraries :: Python Modules",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"mcp>=1.23.0",
"pydantic>=2.10.0",
"python-dotenv>=1.0.0",
"typing-extensions>=4.0.0",
"networkx>=3.0.0",
]
[project.optional-dependencies]
neo4j = [
"neo4j>=6.0.0",
]
memgraph = [
"neo4j>=6.0.0",
]
falkordb = [
"falkordb>=1.0.0",
]
falkordblite = [
"falkordblite>=0.4.0",
]
ladybugdb = [
"real-ladybug>=0.12.2",
]
turso = [
"libsql-experimental>=0.0.30",
]
intelligence = [
"sentence-transformers>=5.0.0",
"spacy>=3.0.0",
]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=1.0.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.10.0",
"black>=24.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"pre-commit>=4.0.0",
]
all = [
"neo4j>=6.0.0",
"falkordb>=1.0.0",
"falkordblite>=0.4.0",
"real-ladybug>=0.12.2",
"libsql-experimental>=0.0.30",
"sentence-transformers>=5.0.0",
"spacy>=3.0.0",
]
[project.urls]
Homepage = "https://github.com/gregorydickson/memory-graph"
Repository = "https://github.com/gregorydickson/memory-graph"
Issues = "https://github.com/gregorydickson/memory-graph/issues"
Documentation = "https://github.com/gregorydickson/memory-graph/blob/main/docs/"
[project.scripts]
memorygraph = "memorygraph.cli:main"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/docs",
]
[tool.hatch.build.targets.wheel]
packages = ["src/memorygraph"]
[tool.hatch.version]
path = "src/memorygraph/__init__.py"
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[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
"N", # pep8-naming
"DTZ", # flake8-datetimez - datetime timezone safety
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
strict_equality = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src/memorygraph"]
omit = [
"*/tests/*",
"*/conftest.py",
"*/__pycache__/*",
"*/.*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"@abstractmethod",
"raise AssertionError",
"\\.\\.\\.",
]
precision = 2
show_missing = true
skip_covered = false
[tool.coverage.html]
directory = "htmlcov"
[tool.pydocstyle]
convention = "google"
add-ignore = ["D100", "D104", "D107"] # Missing docstring in public module/package, __init__
match = "(?!test_).*\\.py"
match-dir = "(?!tests|docs)[^\\.].*"