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>
50 lines
1.4 KiB
Python
50 lines
1.4 KiB
Python
"""
|
|
Tests for configuration
|
|
"""
|
|
|
|
from config import (
|
|
__version__,
|
|
__updated__,
|
|
__author__,
|
|
DEFAULT_MODEL,
|
|
MAX_CONTEXT_TOKENS,
|
|
TEMPERATURE_ANALYTICAL,
|
|
TEMPERATURE_BALANCED,
|
|
TEMPERATURE_CREATIVE,
|
|
TOOL_TRIGGERS,
|
|
)
|
|
|
|
|
|
class TestConfig:
|
|
"""Test configuration values"""
|
|
|
|
def test_version_info(self):
|
|
"""Test version information"""
|
|
assert __version__ == "2.4.0"
|
|
assert __author__ == "Fahad Gilani"
|
|
assert __updated__ == "2025-06-08"
|
|
|
|
def test_model_config(self):
|
|
"""Test model configuration"""
|
|
assert DEFAULT_MODEL == "gemini-2.5-pro-preview-06-05"
|
|
assert MAX_CONTEXT_TOKENS == 1_000_000
|
|
|
|
def test_temperature_defaults(self):
|
|
"""Test temperature constants"""
|
|
assert TEMPERATURE_ANALYTICAL == 0.2
|
|
assert TEMPERATURE_BALANCED == 0.5
|
|
assert TEMPERATURE_CREATIVE == 0.7
|
|
|
|
def test_tool_triggers(self):
|
|
"""Test tool trigger phrases"""
|
|
assert "think_deeper" in TOOL_TRIGGERS
|
|
assert "review_code" in TOOL_TRIGGERS
|
|
assert "debug_issue" in TOOL_TRIGGERS
|
|
assert "analyze" in TOOL_TRIGGERS
|
|
|
|
# Check some specific triggers
|
|
assert "ultrathink" in TOOL_TRIGGERS["think_deeper"]
|
|
assert "extended thinking" in TOOL_TRIGGERS["think_deeper"]
|
|
assert "find bugs" in TOOL_TRIGGERS["review_code"]
|
|
assert "root cause" in TOOL_TRIGGERS["debug_issue"]
|