mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 06:54:18 +01:00
15 lines
202 B
Python
15 lines
202 B
Python
"""
|
|
FastMCP Echo Server
|
|
"""
|
|
|
|
from mcp.server.fastmcp import FastMCP
|
|
|
|
# Create server
|
|
mcp = FastMCP("Echo Server")
|
|
|
|
|
|
@mcp.tool()
|
|
def echo(text: str) -> str:
|
|
"""Echo the input text"""
|
|
return text
|