from fastmcp import Client
import asyncio

endpoint = "https://mcp.pannous.com/mcp/"

async def list_tools():
    async with Client(endpoint) as client:
        tools = await client.list_tools()
        for tool in tools:
            print(tool.name,":", tool.description)

async def hello():
    async with Client(endpoint) as client:
        result = await client.call_tool("hallo", {"name": "World!"})
        print(result.content[0].text)

asyncio.run(hello())
asyncio.run(list_tools())
