#!/usr/bin/env python3 """ Verify that all tools are registered correctly. """ import sys from pathlib import Path # Add current directory to path sys.path.insert(0, str(Path(__file__).parent)) from tools.registry import ToolRegistry def main(): print("=" * 50) print("MCP Server Tool Verification") print("=" * 50) registry = ToolRegistry() tools = registry.list_tools() print(f"\n✓ Total tools registered: {len(tools)}") print("\nTools:") for i, tool in enumerate(tools, 1): print(f" {i}. {tool['name']}") print(f" {tool['description'][:60]}...") expected_tools = [ 'echo', 'weather', 'get_current_time', 'get_date', 'get_timezone_info', 'convert_timezone' ] actual_names = [t['name'] for t in tools] print("\n" + "=" * 50) if len(tools) == 6: print("✓ All 6 tools are registered correctly!") else: print(f"⚠ Expected 6 tools, found {len(tools)}") missing = set(expected_tools) - set(actual_names) if missing: print(f"⚠ Missing tools: {missing}") else: print("✓ All expected tools are present") print("=" * 50) print("\nIf server shows only 2 tools, restart it:") print(" 1. Stop server (Ctrl+C)") print(" 2. Run: ./run.sh") if __name__ == "__main__": main()