xsecuremcp / examples /simple_echo.py
Jeremiah Lowin
Add support for prompts
cc20abf
Raw
History Blame
235 Bytes
"""
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
if __name__ == "__main__":
mcp.run()