We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8daf7f0 commit cd8bdbcCopy full SHA for cd8bdbc
examples/fastmcp/logging_and_progress.py
@@ -1,18 +1,18 @@
1
"""
2
-FastMCP Echo Server
+FastMCP Echo Server that sends log messages and progress updates to the client
3
4
5
import asyncio
6
7
from mcp.server.fastmcp import Context, FastMCP
8
9
# Create server
10
-mcp = FastMCP("Echo Server")
+mcp = FastMCP("Echo Server with logging and progress updates")
11
12
13
@mcp.tool()
14
async def echo(text: str, ctx: Context) -> str:
15
- """Echo the input text. Send log messages and progress updates."""
+ """Echo the input text sending log messages and progress updates during processing."""
16
await ctx.report_progress(progress=0, total=100)
17
await ctx.info("Starting to process echo for input: " + text)
18
0 commit comments