How the BlenderConnection Class Manages Connection Lifecycle and Reconnection in blender-mcp
The BlenderConnection class in ahujasid/blender-mcp implements a robust TCP socket client that handles automatic reconnection through a dual-layer validation strategy involving local socket clearing on errors and global connection health checks before every command execution.
The BlenderConnection class serves as the low-level socket client that bridges the MCP server and Blender addon in the ahujasid/blender-mcp repository. Defined in src/blender_mcp/server.py, this class orchestrates the entire connection lifecycle—from initial TCP handshake to graceful
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →