X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/cbc79ff7988c4c70635b2b52dc58e7dea3f5720a:/skill.py..refs/heads/main:/mcp-tool.py diff --git a/skill.py b/mcp-tool.py similarity index 97% rename from skill.py rename to mcp-tool.py index 3a1b1cb..f0753ab 100644 --- a/skill.py +++ b/mcp-tool.py @@ -13,11 +13,11 @@ from starlette.routing import Mount MY_IP=os.environ.get('MY_IP') -mcp = FastMCP("Shop Bot") +mcp = FastMCP("Shopping List") @mcp.tool def add_item(name: str) -> str: - return '\n'.join(Data().add_item(name)) + return str(Data().add_item(name)) @mcp.tool def buy(items:str) -> str: