mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 22:44:17 +02:00
19 lines
235 B
Python
19 lines
235 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
|
|
|
|
|
|
if __name__ == "__main__":
|
|
mcp.run()
|