Skip to content

Commit d291499

Browse files
committed
slipped through linting somehow
1 parent 7949879 commit d291499

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/tool_result_echo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
"""
44

55
from dataclasses import dataclass
6+
67
from fastmcp import FastMCP
78
from fastmcp.tools.tool import ToolResult
89

910
mcp = FastMCP("Echo Server")
1011

12+
1113
@dataclass
1214
class EchoData:
1315
data: str
1416

17+
1518
@mcp.tool
1619
def echo(text: str) -> ToolResult:
1720
return ToolResult(
18-
content=text,
19-
structured_content=EchoData(data=text),
20-
meta={"some": "metadata"}
21+
content=text, structured_content=EchoData(data=text), meta={"some": "metadata"}
2122
)

0 commit comments

Comments
 (0)