Files
ha-voice-control-mcp/scripts/_check_mcp.py
T

11 lines
352 B
Python
Raw Normal View History

2026-05-10 02:24:34 +02:00
from mcp.server import Server
s = Server("test")
# Check for tool registration methods
methods = [m for m in dir(s) if 'tool' in m.lower()]
print("Tool-related methods:", methods)
# Check type
print("Type:", type(s))
# Check available decorators/functions
all_attrs = [m for m in dir(s) if not m.startswith('_')]
print("Public attrs:", all_attrs[:30])