fastmcp/examples/simple_echo.py
Jeremiah Lowin 1b6813ef26 Basic cleanup
2025-04-05 17:39:51 -04:00

14 lines
191 B
Python

"""
FastMCP Echo Server
"""
from fastmcp import FastMCP
# Create server
mcp = FastMCP("Echo Server")
@mcp.tool()
def echo(text: str) -> str:
"""Echo the input text"""
return text