We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9019b4b commit 98129c2Copy full SHA for 98129c2
1 file changed
examples/fastmcp/simple_echo.py
@@ -2,16 +2,13 @@
2
FastMCP Echo Server
3
"""
4
5
-from mcp.server.fastmcp import FastMCP,Context
+from mcp.server.fastmcp import FastMCP
6
7
# Create server
8
mcp = FastMCP("Echo Server")
9
10
11
@mcp.tool()
12
-def echo(text: str, ctx: Context) -> str:
+def echo(text: str) -> str:
13
"""Echo the input text"""
14
- ctx.request_context.request.query_params.get("session_id")
15
return text
16
-
17
-mcp.run(transport="sse")
0 commit comments