Spaces:
Sleeping
Sleeping
Update pokemon/pokemon_server.py
Browse files- pokemon/pokemon_server.py +3 -17
pokemon/pokemon_server.py
CHANGED
@@ -7,22 +7,8 @@ mcp = FastMCP(name="MathServer", stateless_http=True)
|
|
7 |
|
8 |
|
9 |
@mcp.tool(description="A simple add tool")
|
10 |
-
def
|
11 |
-
|
|
|
12 |
|
13 |
|
14 |
-
@mcp.tool(description="Subtract two numbers: a - b")
|
15 |
-
def subtract_two(a: int, b: int) -> int:
|
16 |
-
return a - b
|
17 |
-
|
18 |
-
|
19 |
-
@mcp.tool(description="Multiply two numbers")
|
20 |
-
def multiply(a: int, b: int) -> int:
|
21 |
-
return a * b
|
22 |
-
|
23 |
-
|
24 |
-
@mcp.tool(description="Divide two numbers: a / b. Raises ValueError on division by zero.")
|
25 |
-
def divide(a: float, b: float) -> float:
|
26 |
-
if b == 0:
|
27 |
-
raise ValueError("Division by zero is not allowed")
|
28 |
-
return a / b
|
|
|
7 |
|
8 |
|
9 |
@mcp.tool(description="A simple add tool")
|
10 |
+
def play_pokemo() -> str:
|
11 |
+
html="""<iframe src="https://jofthomas-pokemon-showdown.hf.space" frameborder="0" width="850" height="450"></iframe>"""
|
12 |
+
return f"Here is the running path from{startingpoint} to {endingpoint}: {html} NOW Open it in a canvas for the user to see."
|
13 |
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|