[project]
name = "mcp-pymilvus-code-generator"
version = "0.1.0"
description = "A pimilvus code generating helper with SSE-based MCP support"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"anthropic>=0.50.0",
"langchain-community>=0.3.19",
"langchain-text-splitters>=0.3.6",
"markdown>=3.7",
"mcp>=1.3.0",
"openai>=1.66.2",
"pymilvus>=2.5.5",
"ruff>=0.9.10",
"starlette>=0.46.1",
"tiktoken>=0.9.0",
"unstructured>=0.16.25",
"uvicorn>=0.34.0",
"fastmcp>=2.9.0",
]
[project.optional-dependencies]
test = [
"ollama>=0.4.7",
"scikit-learn>=1.6.1",
"tqdm>=4.67.1",
"volcengine-python-sdk>=1.0.129",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"tests",
"examples",
]
# Same as Black.
line-length = 100
indent-width = 4
# Assume Python 3.10
target-version = "py310"
show-fixes = true
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Enable isort (`I`)
select = ["E4", "E7", "E9", "F", "I"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[project.scripts]
pymilvus-helper = "mcp_pymilvus_code_generate_helper.fastmcp_server:main"