Merge pull request #200 from Minseok0917/update-docs

Fix missing parentheses in `@mcp.tool` decorator example
This commit is contained in:
Jeremiah Lowin 2025-04-18 08:37:27 -04:00 committed by GitHub
commit 7a2ca5d4ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ from fastmcp import FastMCP
mcp = FastMCP("My MCP Server")
@mcp.tool
@mcp.tool()
def greet(name: str) -> str:
return f"Hello, {name}!"
```
@ -48,7 +48,7 @@ from fastmcp import FastMCP, Client
mcp = FastMCP("My MCP Server")
@mcp.tool
@mcp.tool()
def greet(name: str) -> str:
return f"Hello, {name}!"
@ -75,7 +75,7 @@ from fastmcp import FastMCP, Client
mcp = FastMCP("My MCP Server")
@mcp.tool
@mcp.tool()
def greet(name: str) -> str:
return f"Hello, {name}!"