from mcp.server.fastmcp import FastMCP import datetime mcp = FastMCP('ExampleServer') @mcp.tool() def get_current_date() -> str: """Returns the current date in YYYY-MM-DD format.""" return datetime.now().strftime('%Y-%m-%d') if __name__ == "__main__": mcp.run(transport='sse')