mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
push code
This commit is contained in:
parent
6e35912c4e
commit
96c9bad51a
3 changed files with 11 additions and 10 deletions
|
|
@ -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 = "../../" }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue