After doing extensive work on my Hubitat MCP rule server, I realized that I had built a fairly robust and extensive CI suite. So I figured that this may be useful for other developers. It includes unit tests, mock hub with Groovy (closest version I could get to the actual hub version anyways) and scaffolding for setting up e2e on a spare hub with what I call the watchdog app which is basically its own MCP server that can manage the hub and install other apps, all controlled either by AI or it can be wired directly to GitHub CI, or both (which is what I do)...no AI required.
A lot of it is derived from other existing CI suites but the whole package together is quite extensive and covers many angles.
I literally just had AI pull this from my existing repo and make a new repo, so forgive me for any mistakes it may have made. You can check out my main MCP rule server repo to see how my CI works in action if this repo has any issues or is confusing or anything like that.
Had to look up what "CI" stands for: "It refers to the software development practice of automatically integrating code changes from multiple contributors into a single software project, which typically involves running automated tests to ensure the new code doesn't break anything."
Then I looked up what "MCP" stands for: "Model Context Protocol is an open standard that allows AI models to securely connect to and interact with local tools, environments, and data sources. An "MCP rule server" acts as a bridge to let an AI control the smart home hub, manage rules, and install apps."
And finally I looked up what "e2e" means: "It refers to "End-to-End testing," a software testing approach that evaluates an application's entire workflow from start to finish. In the case of this Hubitat toolkit, setting up e2e means testing the app or driver on a functioning hub to ensure all the components interact correctly in a real-world scenario, rather than just testing individual pieces of code in isolation (which is what unit testing does)."