Illustrates the differences between LLM function calling and the Model Context Protocol (MCP) by controlling Home Assistant lights.
This repository provides a practical comparison between LLM function calling and the Model Context Protocol (MCP). Through examples, including a CLI app leveraging OpenAI's function calling and a Node.js MCP server, it showcases how MCP builds upon function calling to facilitate external service communication and command execution. The repository focuses on controlling Home Assistant lights, demonstrating the distinct approaches of local function execution versus standardized protocol-based interaction with third-party services.