forked from 16BitNarwhal/Mijiji
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-basic-tools.py
More file actions
32 lines (22 loc) · 980 Bytes
/
test-basic-tools.py
File metadata and controls
32 lines (22 loc) · 980 Bytes
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
#!/usr/bin/env python3
import asyncio
from fastmcp import Client
async def test_basic_tools():
print("🧪 Testing basic MCP tools (no browser automation)...")
try:
client = Client("https://fastmcp-server-wf77.onrender.com/mcp")
async with client:
print("✅ Connected to production MCP server!")
# Test greet tool
print("\n👋 Testing greet tool...")
greet_result = await client.call_tool("greet", {"name": "Krish"})
print(f"📤 Greet result: {greet_result.data}")
# Test get_server_info tool
print("\n📊 Testing get_server_info tool...")
info_result = await client.call_tool("get_server_info", {})
print(f"📤 Server info: {info_result.data}")
print("\n✅ Basic tools working perfectly!")
except Exception as e:
print(f"❌ Test failed: {e}")
if __name__ == "__main__":
asyncio.run(test_basic_tools())