-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest_mcp_tools.py
More file actions
43 lines (34 loc) · 1.39 KB
/
test_mcp_tools.py
File metadata and controls
43 lines (34 loc) · 1.39 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
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python3
"""
MCP client to test Cheat Engine version detection tools
"""
import asyncio
import json
from typing import Dict, Any
async def test_mcp_version_tools():
"""Test the MCP tools for Cheat Engine version detection"""
print("🧪 Testing MCP Cheat Engine Version Tools")
print("=" * 50)
try:
# We'll simulate the tool calls since we don't have a full MCP client setup
# Instead, let's import and test the functions directly
import sys
from pathlib import Path
# Add server directory to path
server_dir = Path(__file__).parent / "server"
sys.path.insert(0, str(server_dir))
# Import the main module to access the tool functions
import main
print("🔧 Testing get_cheat_engine_basic_version tool...")
basic_result = main.get_cheat_engine_basic_version()
print(f"Basic Version Result: {basic_result}")
print("\n🔍 Testing get_cheat_engine_version tool...")
detailed_result = main.get_cheat_engine_version()
print("Detailed Version Result:")
print(detailed_result)
except Exception as e:
print(f"❌ Error during testing: {e}")
import traceback
traceback.print_exc()
if __name__ == "__main__":
asyncio.run(test_mcp_version_tools())