Major redesign of Gemini MCP Server with modular architecture: - Removed all emoji characters from tool outputs for clean terminal display - Kept review category emojis (🔴🟠🟡🟢) per user preference - Added 4 specialized tools: - think_deeper: Extended reasoning and problem-solving (temp 0.7) - review_code: Professional code review with severity levels (temp 0.2) - debug_issue: Root cause analysis and debugging (temp 0.2) - analyze: General-purpose file analysis (temp 0.2) - Modular architecture with base tool class and Pydantic models - Verbose tool descriptions with natural language triggers - Updated README with comprehensive examples and real-world use cases - All 25 tests passing, type checking clean, critical linting clean BREAKING CHANGE: Removed analyze_code tool in favor of specialized tools 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
68 lines
1.6 KiB
Python
68 lines
1.6 KiB
Python
"""
|
|
Configuration and constants for Gemini MCP Server
|
|
"""
|
|
|
|
# Version and metadata
|
|
__version__ = "2.4.0"
|
|
__updated__ = "2025-06-08"
|
|
__author__ = "Fahad Gilani"
|
|
|
|
# Model configuration
|
|
DEFAULT_MODEL = "gemini-2.5-pro-preview-06-05"
|
|
MAX_CONTEXT_TOKENS = 1_000_000 # 1M tokens for Gemini Pro
|
|
|
|
# Temperature defaults for different tool types
|
|
TEMPERATURE_ANALYTICAL = 0.2 # For code review, debugging
|
|
TEMPERATURE_BALANCED = 0.5 # For general chat
|
|
TEMPERATURE_CREATIVE = 0.7 # For architecture, deep thinking
|
|
|
|
# Tool trigger phrases for natural language matching
|
|
TOOL_TRIGGERS = {
|
|
"think_deeper": [
|
|
"think deeper",
|
|
"ultrathink",
|
|
"extend my analysis",
|
|
"reason through",
|
|
"explore alternatives",
|
|
"challenge my thinking",
|
|
"deep think",
|
|
"extended thinking",
|
|
"validate my approach",
|
|
"find edge cases",
|
|
],
|
|
"review_code": [
|
|
"review",
|
|
"check for issues",
|
|
"find bugs",
|
|
"security check",
|
|
"code quality",
|
|
"audit",
|
|
"code review",
|
|
"check this code",
|
|
"review for",
|
|
"find vulnerabilities",
|
|
],
|
|
"debug_issue": [
|
|
"debug",
|
|
"error",
|
|
"failing",
|
|
"root cause",
|
|
"trace",
|
|
"why doesn't",
|
|
"not working",
|
|
"diagnose",
|
|
"troubleshoot",
|
|
"investigate this error",
|
|
],
|
|
"analyze": [
|
|
"analyze",
|
|
"examine",
|
|
"look at",
|
|
"check",
|
|
"inspect",
|
|
"understand",
|
|
"analyze file",
|
|
"analyze these files",
|
|
],
|
|
}
|