Skip to content

Commit cd8bdbc

Browse files
committed
improved server name and comments
1 parent 8daf7f0 commit cd8bdbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/fastmcp/logging_and_progress.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""
2-
FastMCP Echo Server
2+
FastMCP Echo Server that sends log messages and progress updates to the client
33
"""
44

55
import asyncio
66

77
from mcp.server.fastmcp import Context, FastMCP
88

99
# Create server
10-
mcp = FastMCP("Echo Server")
10+
mcp = FastMCP("Echo Server with logging and progress updates")
1111

1212

1313
@mcp.tool()
1414
async def echo(text: str, ctx: Context) -> str:
15-
"""Echo the input text. Send log messages and progress updates."""
15+
"""Echo the input text sending log messages and progress updates during processing."""
1616
await ctx.report_progress(progress=0, total=100)
1717
await ctx.info("Starting to process echo for input: " + text)
1818

0 commit comments

Comments
 (0)