From 29b0330882d6ffb58a8cf6ac041153daf2ff3ab6 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Tue, 21 Oct 2025 19:34:08 -0500 Subject: [PATCH] example: update server init usage --- examples/smart_home/src/smart_home/hub.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/smart_home/src/smart_home/hub.py b/examples/smart_home/src/smart_home/hub.py index ff91576fc..2dcb8f610 100644 --- a/examples/smart_home/src/smart_home/hub.py +++ b/examples/smart_home/src/smart_home/hub.py @@ -4,15 +4,10 @@ from fastmcp import FastMCP from smart_home.lights.server import lights_mcp from smart_home.settings import settings -hub_mcp = FastMCP( - "Smart Home Hub (phue2)", - dependencies=[ - "smart_home@git+https://github.com/jlowin/fastmcp.git#subdirectory=examples/smart_home", - ], -) +hub_mcp = FastMCP("Smart Home Hub (phue2)") # Mount the lights service under the 'hue' prefix -hub_mcp.mount("hue", lights_mcp) +hub_mcp.mount(lights_mcp, prefix="hue") # Add a status check for the hub