push code

This commit is contained in:
zzstoatzz 2025-04-11 03:36:00 -05:00
commit 96c9bad51a
3 changed files with 11 additions and 10 deletions

View file

@ -5,21 +5,18 @@ description = "Add your description here"
readme = "README.md"
authors = [{ name = "zzstoatzz", email = "thrast36@gmail.com" }]
requires-python = ">=3.12"
dependencies = ["fastmcp"]
dependencies = [
"fastmcp@git+https://github.com/jlowin/fastmcp.git@2.x",
"phue2",
]
[project.scripts]
smart-home = "smart_home.__main__:main"
[dependency-groups]
dev = ["ruff", "smart_home[lights]"]
[project.optional-dependencies]
lights = ["phue2"]
dev = ["ruff"]
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[tool.uv.sources]
fastmcp = { path = "../../" }

View file

@ -3,7 +3,9 @@ from smart_home.lights.server import bridge, lights_mcp
hub_mcp = FastMCP(
"Smart Home Hub (phue2)",
dependencies=["fastmcp@git+https://github.com/jlowin/fastmcp.git", "phue2"],
dependencies=[
"smart_home@git+https://github.com/jlowin/fastmcp.git@n8example#subdirectory=examples/smart_home",
],
)
# Mount the lights service under the 'hue' prefix

View file

@ -44,7 +44,9 @@ except Exception as e:
lights_mcp = FastMCP(
"Hue Lights Service (phue2)",
dependencies=["phue2", "fastmcp@git+https://github.com/jlowin/fastmcp.git"],
dependencies=[
"smart_home@git+https://github.com/jlowin/fastmcp.git@n8example#subdirectory=examples/smart_home",
],
)
# --- Resources ---