File size: 201 Bytes
692e2cd
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from mcp.server.fastmcp import FastMCP

mcp = FastMCP(name="EchoServer", stateless_http=True)


@mcp.tool(description="A simple echo tool")
def echo(message: str) -> str:
    return f"Echo: {message}"