We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the Quick Start section, there is the following code
@mcp.tool def greet(name: str) -> str: return f"Hello, {name}!"
but it should be like this
@mcp.tool() def greet(name: str) -> str: return f"Hello, {name}!"
You have to put brackets after @tool, otherwise the code won't work correctly
The text was updated successfully, but these errors were encountered:
It is solved now so we can close this issue
Sorry, something went wrong.
No branches or pull requests
In the Quick Start section, there is the following code
@mcp.tool
def greet(name: str) -> str:
return f"Hello, {name}!"
but it should be like this
@mcp.tool()
def greet(name: str) -> str:
return f"Hello, {name}!"
You have to put brackets after @tool, otherwise the code won't work correctly
The text was updated successfully, but these errors were encountered: