Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ mcp = FastMCP("Robot MCP")
|
|
| 16 |
#stio = STIO(mcp) # Bind STIO to MCP tools
|
| 17 |
|
| 18 |
# --- MCP Tool ---
|
| 19 |
-
@mcp.
|
| 20 |
def say_hi(greeting_text: str = "Hi there!"):
|
| 21 |
"""Return a greeting command in JSON."""
|
| 22 |
return {"command": "say_hi", "text": greeting_text}
|
|
|
|
| 16 |
#stio = STIO(mcp) # Bind STIO to MCP tools
|
| 17 |
|
| 18 |
# --- MCP Tool ---
|
| 19 |
+
@mcp.tool()
|
| 20 |
def say_hi(greeting_text: str = "Hi there!"):
|
| 21 |
"""Return a greeting command in JSON."""
|
| 22 |
return {"command": "say_hi", "text": greeting_text}
|