From: Edward Delaporte Date: Sun, 26 Jul 2026 23:57:37 +0000 (-0500) Subject: WIP skill with llama-ui X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/commitdiff_plain/86ee26b6c8c89ee9ecd9ef0872becda86b672f4c?ds=sidebyside WIP skill with llama-ui --- diff --git a/README.md b/README.md index 04caa16..0b0ba59 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,21 @@ As of the last update to this README, the expected End-of-Life date of this prod End-of-Life was decided upon based on these dependencies: - Python 3.12 (October 2028) + +## Use with as an MCP Skill with llama-ui + +Install with `mcp` support: + + pip install -e ".[llm]" + +Set hostname as `MY_IP` environment variable, and run: + +Run: + + MY_IP=192.168.68.0 + python skill.py + +In Lamma UI, click `MCP Servers` / `+ Add New Server`. + + 192.168.68.0:9000 + diff --git a/skill.py b/skill.py index 53bdf9e..82540b0 100644 --- a/skill.py +++ b/skill.py @@ -1,6 +1,8 @@ from fastmcp import FastMCP from matrix_shop_bot.db import Data +import os +MY_IP=os.environ.get('MY_IP') mcp = FastMCP("Shop Bot") @mcp.tool @@ -42,4 +44,4 @@ def add_item(name: str) -> 'list[str]': # return Data().list_purchases(store) if __name__ == "__main__": - mcp.run(transport="http", host="127.0.0.1", port=9000) + mcp.run(transport="http", host=MY_IP, port=9000)