Add mcp-gateway/homeassistant-mcp/entrypoint.py
This commit is contained in:
parent
d1031ecafc
commit
14b311c287
1 changed files with 12 additions and 0 deletions
12
mcp-gateway/homeassistant-mcp/entrypoint.py
Normal file
12
mcp-gateway/homeassistant-mcp/entrypoint.py
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
import os
|
||||||
|
from homeassistant_mcp import mcp
|
||||||
|
from mcp.server.fastmcp.server import TransportSecuritySettings
|
||||||
|
|
||||||
|
mcp.settings.host = "0.0.0.0"
|
||||||
|
mcp.settings.port = int(os.environ.get("PORT", "8200"))
|
||||||
|
mcp.settings.transport_security = TransportSecuritySettings(
|
||||||
|
enable_dns_rebinding_protection=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
mcp.run(transport="streamable-http")
|
||||||
Loading…
Reference in a new issue