fastmcp/examples/simple_echo.py
2024-11-30 19:22:06 -05:00

15 lines
192 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