Initial commit: HA Voice Control MCP server

This commit is contained in:
mo
2026-05-10 02:24:34 +02:00
commit ff3254cc87
38 changed files with 5322 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
"""Test MCP server import with FastMCP."""
import os, sys
os.environ["PG_HOST"] = "192.168.1.211"
os.environ["PG_PORT"] = "5433"
os.environ["PG_USER"] = "mo"
os.environ["PG_PASSWORD"] = "WaQTUw2t"
os.environ["PG_DATABASE"] = "homelab"
os.environ["NEO4J_URI"] = "neo4j://192.168.1.211:49153"
os.environ["NEO4J_USER"] = "neo4j"
os.environ["NEO4J_PASSWORD"] = "WaQTUw2t"
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from src.mcp_server import server
print(f"MCP Server OK: {server.name}")
print(f"Tools: {len(server.list_tools())}")
for tool in server.list_tools():
print(f" - {tool.name}: {tool.description[:60] if tool.description else 'no desc'}...")