fastmcp/examples/simple_echo.py
2025-06-04 15:37:55 -04:00

14 lines
189 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