Skip to main content
Glama
test_connection.pyโ€ข1.05 kB
#!/usr/bin/env python3 """ Test script to verify Ultimate MCP Server is working correctly """ import asyncio import json from fastmcp import Client async def test_streamable_http(): """Test connection to streamable-http server""" server_url = "http://127.0.0.1:8013/mcp" print("๐Ÿงช Testing Streamable-HTTP Connection") print("=" * 40) try: async with Client(server_url) as client: print("โœ… Connected successfully!") # Test basic functionality tools = await client.list_tools() print(f"๐Ÿ“‹ Found {len(tools)} tools") # Test echo echo_result = await client.call_tool("echo", {"message": "Connection test successful!"}) print(f"๐Ÿ“ข Echo: {json.loads(echo_result[0].text)['message']}") print("๐ŸŽ‰ All tests passed!") except Exception as e: print(f"โŒ Connection failed: {e}") if __name__ == "__main__": asyncio.run(test_streamable_http())

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/Kappasig920/Ultimate-MCP-Server'

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