File size: 1,177 Bytes
ad7641a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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")