Spaces:
Running
Running
| """ | |
| FastMCP Echo Server | |
| """ | |
| from fastmcp import FastMCP | |
| # Create server | |
| mcp = FastMCP("Echo Server") | |
| def echo_tool(text: str) -> str: | |
| """Echo the input text""" | |
| return text | |
| def echo_resource() -> str: | |
| return "Echo!" | |
| def echo_template(text: str) -> str: | |
| """Echo the input text""" | |
| return f"Echo: {text}" | |
| def echo_prompt(text: str) -> str: | |
| return text | |