Skip to main content
Glama
test_addon_load.py1.1 kB
"""Test if mcp_server addon loads correctly in Blender.""" import bpy import sys print("[Test] Testing mcp_server addon...", flush=True) # Enable addon try: bpy.ops.preferences.addon_enable(module="mcp_server") print("[Test] Addon enabled successfully!", flush=True) except Exception as e: print(f"[Test] Failed to enable addon: {e}", flush=True) sys.exit(1) # Try importing it try: import mcp_server print(f"[Test] mcp_server module loaded: {dir(mcp_server)}", flush=True) except ImportError as e: print(f"[Test] Failed to import mcp_server: {e}", flush=True) sys.exit(1) # Check if our classes are registered print("[Test] Checking registered operators...", flush=True) operators = [op for op in dir(bpy.ops.mcp) if not op.startswith("_")] print(f"[Test] MCP operators: {operators}", flush=True) # Check menu print("[Test] Checking menu...", flush=True) if hasattr(bpy.types, "MCP_MT_main_menu"): print("[Test] MCP_MT_main_menu found!", flush=True) else: print("[Test] MCP_MT_main_menu NOT found", flush=True) print("[Test] All tests passed!", flush=True)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssoj13/blender-mcp-rs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server