Skip to content

Commit 98129c2

Browse files
author
文徐
committed
recover unused change
1 parent 9019b4b commit 98129c2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/fastmcp/simple_echo.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
FastMCP Echo Server
33
"""
44

5-
from mcp.server.fastmcp import FastMCP,Context
5+
from mcp.server.fastmcp import FastMCP
66

77
# Create server
88
mcp = FastMCP("Echo Server")
99

1010

1111
@mcp.tool()
12-
def echo(text: str, ctx: Context) -> str:
12+
def echo(text: str) -> str:
1313
"""Echo the input text"""
14-
ctx.request_context.request.query_params.get("session_id")
1514
return text
16-
17-
mcp.run(transport="sse")

0 commit comments

Comments
 (0)