Major improvements to thinking capabilities and API integration: - Remove all output token limits for future-proof responses - Add 5-level thinking mode system: minimal, low, medium, high, max - Migrate from google-generativeai to google-genai library - Implement native thinkingBudget support for Gemini 2.5 Pro - Set medium thinking as default for all tools, max for think_deeper 🧠 Thinking Modes: - minimal (128 tokens) - simple tasks - low (2048 tokens) - basic reasoning - medium (8192 tokens) - default for most tools - high (16384 tokens) - complex analysis - max (32768 tokens) - default for think_deeper 🔧 Technical Changes: - Complete migration to google-genai>=1.19.0 - Remove google-generativeai dependency - Add ThinkingConfig with thinking_budget parameter - Update all tools to support thinking_mode parameter - Comprehensive test suite with 37 passing unit tests - CI-friendly testing (no API key required for unit tests) - Live integration tests for API verification 🧪 Testing & CI: - Add GitHub Actions workflow with multi-Python support - Unit tests use mocks, no API key required - Live integration tests optional with API key - Contributing guide with development setup - All tests pass without external dependencies 🐛 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.3 KiB
Python
51 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.7.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",
|
|
"python-dotenv>=1.0.0",
|
|
],
|
|
extras_require={
|
|
"dev": [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"pytest-cov>=4.1.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",
|
|
],
|
|
)
|