# How the receive_full_response Method Handles Chunked Responses from Blender

> Learn how receive_full_response handles chunked Blender responses by buffering TCP socket data and parsing JSON to detect completion. Optimize your Blender API integration.

- Repository: [ahujasid/blender-mcp](https://github.com/ahujasid/blender-mcp)
- Tags: internals
- Published: 2026-04-13

---

**The `receive_full_response` method in [`src/blender_mcp/server.py`](https://github.com/ahujasid/blender-mcp/blob/main/src/blender_mcp/server.py) accumulates TCP socket chunks in a buffer, attempting to parse the concatenated bytes as JSON after each read to detect when the complete Blender response has arrived.**

When communicating with the Blender add-on via TCP, large JSON payloads may arrive fragmented across multiple network packets. The `receive_full_response` method in the `ahujasid/blender-mcp` repository implements a robust reassembly strategy that guarantees complete message delivery before returning control to the caller.

## The Chunked Response Buffer Architecture