From 945b6a7c9792a9f3d12c4b15c0c1cc46b54daaf1 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Mon, 27 Jul 2026 22:17:02 -0500 Subject: [PATCH 1/1] Cleanup --- skill.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/skill.py b/skill.py index 428edc4..7776130 100644 --- a/skill.py +++ b/skill.py @@ -20,35 +20,35 @@ def add_item(name: str) -> str: return '\n'.join(Data().add_item(name)) @mcp.tool -def buy(items:str) -> 'list[str]': - return Data().purchase_items(items) +def buy(items:str) -> str: + return '\n'.join(Data().purchase_items(items)) @mcp.tool -def list_bought(store:str) -> 'list[str]': - return Data().list_purchases(store) -# +def list_bought(store:str) -> str: + return '\n'.join(Data().list_purchases(store)) + #@mcp.tool #def clear(store_name: str, clear_all:bool=False) -> 'list[str]': # return Data().clear_list(store_name, clear_all) -# -# + + @mcp.tool -def shop_at(store_name:str) -> 'list[str]': +def shop_at(store_name:str) -> str: '''Select store to shop at''' - return Data().get_shopping_list(store_name) + return '\n'.join(Data().get_shopping_list(store_name)) @mcp.tool -def list() -> 'list[str]': +def list() -> str: '''Use previous store''' - return Data().get_last_shopping_list() -# -# + return '\n'.join(Data().get_last_shopping_list() + + #@mcp.tool #def list_stores() -> 'list[str]': # return Data().get_stores() -# -# + + #@mcp.tool #def list_purchases(store: str) -> 'list[str]': # return Data().list_purchases(store) -- 2.47.3