Skip to main content
Glama
test_simple_python.pyโ€ข1.77 kB
#!/usr/bin/env python3 """ Simple test to check basic Python functionality and imports """ print("=== Python Environment Test ===") # Test 1: Basic Python print("1. Python is working") # Test 2: Standard library imports try: import os import sys print("2. โœ… Standard library imports successful") print(f" Python version: {sys.version}") print(f" Current directory: {os.getcwd()}") except ImportError as e: print(f"2. โŒ Standard library import failed: {e}") # Test 3: Third-party dependencies dependencies = [ "mcp", "requests", "dotenv", ] for dep in dependencies: try: __import__(dep) print(f"3. โœ… {dep} available") except ImportError as e: print(f"3. โŒ {dep} not available: {e}") # Test 4: Check if MCP server files exist server_files = [ "kafka_schema_registry_unified_mcp.py", "kafka_schema_registry_unified_mcp.py", ] for file in server_files: if os.path.exists(file): print(f"4. โœ… {file} exists") else: print(f"4. โŒ {file} not found") # Test 5: Try to read a small portion of server file try: with open("kafka_schema_registry_unified_mcp.py", "r") as f: first_line = f.readline().strip() print(f"5. โœ… Server file readable: {first_line}") except Exception as e: print(f"5. โŒ Cannot read server file: {e}") # Test 6: Basic network test (this should work even without Schema Registry) try: import requests # Test with a simple URL that should always work response = requests.get("http://httpbin.org/status/200", timeout=5) print(f"6. โœ… Network requests working: {response.status_code}") except Exception as e: print(f"6. โš ๏ธ Network test failed: {e}") print("=== Test Complete ===")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aywengo/kafka-schema-reg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server