Skip to main content
Glama
ujs204

BlenderMCP

by ujs204

get_polyhaven_status

Check if PolyHaven integration is enabled in Blender to determine availability of PolyHaven features for 3D modeling and scene creation.

Instructions

Check if PolyHaven integration is enabled in Blender. Returns a message indicating whether PolyHaven features are available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_polyhaven_status' MCP tool. It uses the BlenderConnection to send a 'get_polyhaven_status' command to Blender and formats the response, appending a note if enabled.
    @mcp.tool() def get_polyhaven_status(ctx: Context) -> str: """ Check if PolyHaven integration is enabled in Blender. Returns a message indicating whether PolyHaven features are available. """ try: blender = get_blender_connection() result = blender.send_command("get_polyhaven_status") enabled = result.get("enabled", False) message = result.get("message", "") if enabled: message += "PolyHaven is good at Textures, and has a wider variety of textures than Sketchfab." return message except Exception as e: logger.error(f"Error checking PolyHaven status: {str(e)}") return f"Error checking PolyHaven status: {str(e)}"
  • The @mcp.tool() decorator registers the get_polyhaven_status function as an MCP tool.
    @mcp.tool()
  • Uses the 'get_polyhaven_status' command to Blender as a connection health check and to cache PolyHaven enabled status.
    # First check if PolyHaven is enabled by sending a ping command result = _blender_connection.send_command("get_polyhaven_status") # Store the PolyHaven status globally _polyhaven_enabled = result.get("enabled", False)
  • Mentions the tool in the asset_creation_strategy prompt as the way to verify PolyHaven status before using its features.
    Use get_polyhaven_status() to verify its status

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/ujs204/CLAUDE-BLENDER-MCP'

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