"""AI for Palestine practice MCP client (Python SDK v2)."""

import asyncio

from mcp import Client

from mcp_server_starter import mcp


async def main() -> None:
    async with Client(mcp) as client:
        tools = await client.list_tools()
        print("Available tools:", [tool.name for tool in tools])

        result = await client.call_tool(
            "match_course",
            {"topic": "I want to build and inspect an MCP server"},
        )
        print("Course match:", result.structured_content)


if __name__ == "__main__":
    asyncio.run(main())
