Spaces:
Running
Running
zzstoatzz commited on
Commit ·
7bce40a
1
Parent(s): 51c9311
push code
Browse files
examples/smart_home/pyproject.toml
CHANGED
|
@@ -5,21 +5,18 @@ description = "Add your description here"
|
|
| 5 |
readme = "README.md"
|
| 6 |
authors = [{ name = "zzstoatzz", email = "thrast36@gmail.com" }]
|
| 7 |
requires-python = ">=3.12"
|
| 8 |
-
dependencies = [
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
[project.scripts]
|
| 11 |
smart-home = "smart_home.__main__:main"
|
| 12 |
|
| 13 |
[dependency-groups]
|
| 14 |
-
dev = ["ruff"
|
| 15 |
-
|
| 16 |
-
[project.optional-dependencies]
|
| 17 |
-
lights = ["phue2"]
|
| 18 |
|
| 19 |
|
| 20 |
[build-system]
|
| 21 |
requires = ["uv_build"]
|
| 22 |
build-backend = "uv_build"
|
| 23 |
-
|
| 24 |
-
[tool.uv.sources]
|
| 25 |
-
fastmcp = { path = "../../" }
|
|
|
|
| 5 |
readme = "README.md"
|
| 6 |
authors = [{ name = "zzstoatzz", email = "thrast36@gmail.com" }]
|
| 7 |
requires-python = ">=3.12"
|
| 8 |
+
dependencies = [
|
| 9 |
+
"fastmcp@git+https://github.com/jlowin/fastmcp.git@2.x",
|
| 10 |
+
"phue2",
|
| 11 |
+
]
|
| 12 |
|
| 13 |
[project.scripts]
|
| 14 |
smart-home = "smart_home.__main__:main"
|
| 15 |
|
| 16 |
[dependency-groups]
|
| 17 |
+
dev = ["ruff"]
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
[build-system]
|
| 21 |
requires = ["uv_build"]
|
| 22 |
build-backend = "uv_build"
|
|
|
|
|
|
|
|
|
examples/smart_home/src/smart_home/hub.py
CHANGED
|
@@ -3,7 +3,9 @@ from smart_home.lights.server import bridge, lights_mcp
|
|
| 3 |
|
| 4 |
hub_mcp = FastMCP(
|
| 5 |
"Smart Home Hub (phue2)",
|
| 6 |
-
dependencies=[
|
|
|
|
|
|
|
| 7 |
)
|
| 8 |
|
| 9 |
# Mount the lights service under the 'hue' prefix
|
|
|
|
| 3 |
|
| 4 |
hub_mcp = FastMCP(
|
| 5 |
"Smart Home Hub (phue2)",
|
| 6 |
+
dependencies=[
|
| 7 |
+
"smart_home@git+https://github.com/jlowin/fastmcp.git@n8example#subdirectory=examples/smart_home",
|
| 8 |
+
],
|
| 9 |
)
|
| 10 |
|
| 11 |
# Mount the lights service under the 'hue' prefix
|
examples/smart_home/src/smart_home/lights/server.py
CHANGED
|
@@ -44,7 +44,9 @@ except Exception as e:
|
|
| 44 |
|
| 45 |
lights_mcp = FastMCP(
|
| 46 |
"Hue Lights Service (phue2)",
|
| 47 |
-
dependencies=[
|
|
|
|
|
|
|
| 48 |
)
|
| 49 |
|
| 50 |
# --- Resources ---
|
|
|
|
| 44 |
|
| 45 |
lights_mcp = FastMCP(
|
| 46 |
"Hue Lights Service (phue2)",
|
| 47 |
+
dependencies=[
|
| 48 |
+
"smart_home@git+https://github.com/jlowin/fastmcp.git@n8example#subdirectory=examples/smart_home",
|
| 49 |
+
],
|
| 50 |
)
|
| 51 |
|
| 52 |
# --- Resources ---
|