Spaces:
Sleeping
Sleeping
Update math_server.py
Browse files- math_server.py +3 -3
math_server.py
CHANGED
|
@@ -3,6 +3,6 @@ from mcp.server.fastmcp import FastMCP
|
|
| 3 |
mcp = FastMCP(name="MathServer", stateless_http=True)
|
| 4 |
|
| 5 |
|
| 6 |
-
@mcp.tool(description="A simple add
|
| 7 |
-
def add_two(
|
| 8 |
-
return
|
|
|
|
| 3 |
mcp = FastMCP(name="MathServer", stateless_http=True)
|
| 4 |
|
| 5 |
|
| 6 |
+
@mcp.tool(description="A simple add tool")
|
| 7 |
+
def add_two(a: int, b:int) -> int:
|
| 8 |
+
return a + b
|