-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_basic.py
More file actions
30 lines (26 loc) · 1 KB
/
test_basic.py
File metadata and controls
30 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python3
"""
Very basic test to verify the Devici MCP Server can be imported.
"""
def test_imports():
"""Test that all modules can be imported successfully."""
try:
from src.devici_mcp_server import DeviciMCPServer
from src.devici_mcp_server.api_client import DeviciAPIClient, DeviciConfig
from src.devici_mcp_server.server import DeviciMCPServer as ServerClass
print("✓ All imports successful")
return True
except ImportError as e:
print(f"✗ Import failed: {e}")
return False
if __name__ == "__main__":
print("Running basic import test for Devici MCP Server...")
print("=" * 50)
if test_imports():
print("🎉 Basic test passed! The Devici MCP Server is ready to use.")
print("\nTo use the server:")
print("1. Copy env.example to .env and add your Devici API credentials")
print("2. Run: python -m src.devici_mcp_server")
else:
print("❌ Basic test failed")
exit(1)