example: update server init usage

This commit is contained in:
zzstoatzz 2025-10-21 19:34:08 -05:00
commit 29b0330882

View file

@ -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