mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-31 19:43:19 +02:00
Co-authored-by: Jeremiah Lowin <jlowin@users.noreply.github.com> Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
14 lines
189 B
Python
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
|