Skip to content

Client not working with v2.2.0 #193

Closed
@laxas

Description

@laxas

I have a simple client demo:

from fastmcp import Client
import asyncio

async def main():
    async with Client("mcp_server.py") as client:
        tools = await client.list_tools()
        print(f"Available tools: {tools}")

asyncio.run(main())

That works as expectet with Version 2.1.2 but returns the follwoing error with version 2.2.0:

...
mcp.shared.exceptions.McpError: 'FastMCP' object has no attribute 'get_tools'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions