mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
Merge pull request #200 from Minseok0917/update-docs
Fix missing parentheses in `@mcp.tool` decorator example
This commit is contained in:
commit
7a2ca5d4ae
1 changed files with 3 additions and 3 deletions
|
|
@ -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}!"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue