Claude integration: MCP server with render_page images, skill, JSON CLI
- nxhmi.mcp_server: dependency-free stdio MCP server, 14 tools; readable values in and out; render_page returns a PNG image - .mcp.json for Claude Code, .claude/skills/nextion-hmi/SKILL.md - CLI: info --json, schema <kind> - fix: project.add_page(h=...) clashed with the page height keyword - 75 tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b9d7410716
commit
6f8341c66c
9 files changed
+521
-6
No files matched your search
@@ -60,6 +60,13 @@ class Cli(unittest.TestCase):
|
||||
self.assertEqual(self.run_cli("verify", self.hmi)[0], 0)
|
||||
self.assertIn('"title"', self.run_cli("dump", self.hmi, "--page", "home")[1])
|
||||
|
||||
def test_json_info_and_schema(self):
|
||||
import json
|
||||
info = json.loads(self.run_cli("info", self.hmi, "--json")[1])
|
||||
self.assertEqual(info["size"], [480, 320])
|
||||
sch = json.loads(self.run_cli("schema", "slider")[1])
|
||||
self.assertIn("vertical", next(x for x in sch["attributes"] if x["name"] == "mode")["values"])
|
||||
|
||||
def test_decode_encode(self):
|
||||
d = os.path.join(self.tmp, "dec")
|
||||
self.run_cli("decode", self.hmi, d)
|
||||
|
||||
Reference in new issue
Block a user