Initial commit: homelab configs, Docker, Neo4j, voice control, Gitea
This commit is contained in:
@@ -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'}...")
|
||||
Reference in New Issue
Block a user