fastmcp
fastmcp copied to clipboard
Problems in the official documentation
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
It is solved now so we can close this issue
I believe this was solved by @Minseok0917 in https://github.com/jlowin/fastmcp/pull/200/