File size: 388 Bytes
a65e06d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from fastmcp import Client

async def main():
    # Connect via stdio to a local script
    async with Client("mcp_trello_main.py") as client:
        tools = await client.list_tools()
        print(f"Available tools: {tools}")
        result = await client.call_tool("get_boards")
        print(f"Result: {result}")


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