Major changes: - Add comprehensive documentation to all modules with detailed docstrings - Remove unused THINKING_MODEL config (use single GEMINI_MODEL with thinking_mode param) - Remove list_models functionality (simplified to single model configuration) - Rename DEFAULT_MODEL to GEMINI_MODEL for clarity - Remove unused python-dotenv dependency - Fix missing pydantic in setup.py dependencies Documentation improvements: - Document security measures in file_utils.py (path validation, sandboxing) - Add detailed comments to critical logic sections - Document tool creation process in BaseTool - Explain configuration values and their impact - Add comprehensive function-level documentation Code quality: - Apply black formatting to all files - Fix all ruff linting issues - Update tests to match refactored code - All 63 tests passing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
50 lines
1.3 KiB
Python
50 lines
1.3 KiB
Python
"""
|
|
Setup configuration for Gemini MCP Server
|
|
"""
|
|
|
|
from pathlib import Path
|
|
|
|
from setuptools import setup
|
|
|
|
# Read README for long description
|
|
readme_path = Path(__file__).parent / "README.md"
|
|
long_description = ""
|
|
if readme_path.exists():
|
|
long_description = readme_path.read_text(encoding="utf-8")
|
|
|
|
setup(
|
|
name="gemini-mcp-server",
|
|
version="2.8.0",
|
|
description="Model Context Protocol server for Google Gemini",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
author="Fahad Gilani",
|
|
python_requires=">=3.10",
|
|
py_modules=["gemini_server"],
|
|
install_requires=[
|
|
"mcp>=1.0.0",
|
|
"google-genai>=1.19.0",
|
|
"pydantic>=2.0.0",
|
|
],
|
|
extras_require={
|
|
"dev": [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"pytest-mock>=3.11.0",
|
|
]
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"gemini-mcp-server=gemini_server:main",
|
|
],
|
|
},
|
|
classifiers=[
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
],
|
|
)
|