from mcp.server.fastmcp import FastMCP mcp = FastMCP("MAPF") def function_name(param1, param2=None): """ Tool Name: function_name Description: Performs a specific task: [explain what the function does in 1–2 sentences]. This tool is useful when [explain the practical use case or motivation]. Inputs: param1 (type, required): [Describe the purpose of this parameter] param2 (type, optional): [Describe this parameter and default value if applicable] Returns: return_type: [Describe the returned value(s), including structure if necessary] Assumptions & Notes: - [Mention any assumptions, edge cases, or constraints] - [Note if it depends on specific packages, files, external APIs, etc.] Example Usage: result = function_name(param1=value1, param2=value2) print(result) """ pass # TODO: implement function logic @mcp.tool() def add(a: int, b: int) -> int: """Add two numbers""" return a + b @mcp.tool() def multiply(a: int, b: int) -> int: """Multiply two numbers""" return a * b if __name__ == "__main__": mcp.run(transport="stdio")