Skip to content

Client not working with v2.2.0 #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
laxas opened this issue Apr 17, 2025 · 1 comment
Open

Client not working with v2.2.0 #193

laxas opened this issue Apr 17, 2025 · 1 comment

Comments

@laxas
Copy link

laxas commented Apr 17, 2025

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'
@MarshallEriksen-shaomingyang

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants