About Groki Bot
Groki Bot is an MCP server published by JosssphZhou in the IoT category: groki Bot desktop robot (M5Stack CoreS3): firmware, a voice and MCP gateway for your computer, and a hand-off to Grok Bot agents. Conduid read 27 tools from its source: check_vm_en, clear_leds, get_device_info, get_head_angles, get_state, get_status and 21 more. No package is published for it, so it installs from a source checkout.
The repository has 242 stars and 39 forks, is licensed BSL-1.0, and its last commit was on 24 Nov 2026. The latest release is v0.2.2 (24 Sep 2026): Groki Bot firmware v0.2.2 Firmware for the Groki Bot desktop robot. It follows v0.2.1 (23 Sep 2026), and the 3 most recent releases go back to v0.2.0 (23 Sep 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include esp32, firmware, m5stack, robot and stack-chan.
Install
git clone https://github.com/JosssphZhou/groki-botTools (27)
check_vm_enDiagnostic: read PY32 REG_GPIO_O_L and report whether VM EN (pin 0 = servo power) is currently HIGH. Returns {io_expander_present, i2c_read_ok, raw, vm_en_high}.clear_ledsTurn off all 12 RGB LEDs on the StackChan base.get_device_infoGet real-time device information from ESP32: battery level, speaker volume, screen brightness, network status, etc.get_head_anglesGet the robot's current head angles: yaw and pitch in degrees.get_stateStack-chan の現在状態 (FW バージョン、IP、Wi-Fi、バッテリ、ボード種別) を JSON で返す。get_statusGet the gateway's connection status: whether ESP32 is connected, device info, and list of available device tools.get_touch_stateRead the head-touch (Si12T) sensor state and the most recent gesture event (tap/stroke/idle). Returns per-zone booleans, the raw output byte, and how long ago the last event fired.gpio_testTest GPIO6 pin by toggling HIGH/LOW 5 times. Check if servo reacts.install_avatar_assetsDownload generated RGB565 avatar animation files from an HTTP directory to the StackChan SD card.| Parameter | Type | Description |
|---|---|---|
| base_url * | string | HTTP directory containing IDLE.RGB, HAPPY.RGB, and the other generated 8.3 RGB files. |
move_headMove the robot's head to the specified angles. yaw: horizontal (-90 to 90), pitch: vertical (0 to 60).| Parameter | Type | Description |
|---|---|---|
| pitch * | integer | Vertical angle in degrees (0 to 60) |
| speed | integer | Movement speed (100-1000, 150 natural) |
| yaw * | integer | Horizontal angle in degrees (-90 to 90) |
sayStack-chan に発話させる。テキストはひらがな。漢字は読み取られない (jtts は読み変換器を持たない)。発話中に再度呼ぶと前の発話完了後にキュー実行。| Parameter | Type | Description |
|---|---|---|
| text * | string | ひらがなのテキスト |
set_all_ledsSet all 12 RGB LEDs on the StackChan base to the same color. Updates immediately.| Parameter | Type | Description |
|---|---|---|
| b * | integer | Blue 0..255 |
| g * | integer | Green 0..255 |
| r * | integer | Red 0..255 |
set_avatarSwitch the avatar face shown on the LCD. Choose one of the supported avatar logical states; this is the robot's actual visible expression, not just a label. Pass 'off' to hide the avatar and disable blink, exposing the underlying xiaozhi-esp32 screens (WiFi config UI, OTA, settings); any other face brings the avatar back and restores blink.| Parameter | Type | Description |
|---|---|---|
| face * | string | One of the supported avatar logical states, or off. |
set_background_colorSet the LCD task-state background color. Use red for errors, green for pass/done, yellow for confirmation. duration_ms is optional; when omitted or 0 the color stays until the next set_background_color call.| Parameter | Type | Description |
|---|---|---|
| b * | integer | |
| duration_ms | integer | |
| g * | integer | |
| r * | integer |
set_balloonアバター下の吹き出しにテキスト表示。長文はマーキー スクロール。hold_ms 省略時はデフォルト時間。| Parameter | Type | Description |
|---|---|---|
| hold_ms | integer | |
| text * | string |
set_blinkEnable or disable autonomous avatar animation. When enabled, the current face plays its frame sequence continuously, including breathing, blinking, and state motion.| Parameter | Type | Description |
|---|---|---|
| enabled * | boolean | True to start blinking, false to stop. |
set_brightnessSet the screen brightness (0-100).| Parameter | Type | Description |
|---|---|---|
| brightness * | integer | Brightness level (0-100) |
set_expressionStack-chan のアバター表情を変更。| Parameter | Type | Description |
|---|---|---|
| expression * | string |
set_ledSet a single RGB LED on the StackChan base. There are 12 LEDs arranged in two rows of 6 (index 0..11). Updates immediately.| Parameter | Type | Description |
|---|---|---|
| b * | integer | Blue 0..255 |
| g * | integer | Green 0..255 |
| index * | integer | LED index (0..11) |
| r * | integer | Red 0..255 |
set_ledsSet multiple RGB LEDs in one shot. 'colors' is an array of [r,g,b] triples starting at index 0 (e.g. [[255,0,0],[0,255,0]]). Up to 12 entries; extras are ignored, missing entries keep their previous color. Use this for animations / patterns to avoid 12x I2C round-trips.| Parameter | Type | Description |
|---|---|---|
| colors * | array | Array of [r,g,b] triples, each 0..255 |
set_mouthSet the avatar mouth shape for lip-sync. The shape is held until the next set_avatar / set_mouth call, or until an autonomous blink restores the resting face. Calling this while a set_mouth_sequence is in flight interrupts the sequence.| Parameter | Type | Description |
|---|---|---|
| mouth * | string | One of: closed, half, open, e, u. |
set_mouth_sequenceQueue a lip-sync sequence and play it on the device. Each step holds 'shape' for 'duration_ms' before advancing. The firmware walks the queue locally so there is no per-step network RTT (use this instead of issuing many set_mouth calls back-to-back from a TTS loop). Returns immediately with the queued step count and estimated total duration. Calling set_mouth, set_avatar, or this tool again interrupts the in-flight sequence and replaces it. Autonomous blink is paused while a sequence is playing and resumed when it ends. The final shape is held until the next set_mouth / set_avatar call, or until an autonomous blink restores the resting face — this is the same Phase 2 trade-off that applies to set_mouth, since the blink animation ends by repainting the full face. If the final shape must persist visually, disable blink with set_blink(false) before the sequence (or append a closed step if you just want the mouth to close at the end).| Parameter | Type | Description |
|---|---|---|
| steps * | array | Ordered list of mouth shapes with hold durations (1..256 steps). |
set_voice_modeEnable or disable STT-to-cmux voice input. When enabled, cloud STT text is treated as untrusted user input, prefixed with [voice], and sent only to a validated Claude Code surface.| Parameter | Type | Description |
|---|---|---|
| enabled * | boolean | True to enable voice input mode. |
| surface | string | Optional cmux target surface ref, e.g. surface:263. |
set_volumeSet the speaker volume (0-100).| Parameter | Type | Description |
|---|---|---|
| volume * | integer | Volume level (0-100) |
speakMake StackChan speak a short sentence. The gateway synthesizes 24kHz Opus audio with the configured voice engine, sends tts/start, streams Opus frames, then sends tts/stop. emotion optionally changes the visible expression first.| Parameter | Type | Description |
|---|---|---|
| emotion | string | Optional expression/emotion, such as happy, sad, or thinking. |
| text * | string | Sentence to speak. |
take_photoTake a photo with the robot's camera and ask a question about it. The device captures an image and returns an AI-generated description.| Parameter | Type | Description |
|---|---|---|
| question * | string | Question to ask about the photo (e.g. 'What do you see?') |
uart_diagSend raw servo bytes via UART and report write result.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.1K words.
- ✓License declaredThe repository declares the BSL-1.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by gateway/uv.lock and 3 more.
- !No dynamic code executionScanned 74 source files and found 3 calls to eval or shell execution, in tools/aora_rings/convert.mjs:22, tools/aora_rings/convert.mjs:31 and tools/aora_rings/parse_check.mjs:11. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdiogateway/stackchan_mcp/stdio_server.py:17
- Starts other programs
- 14 callsgateway/stackchan_mcp/audio_stream.py:335, gateway/stackchan_mcp/audio_stream.py:360, gateway/stackchan_mcp/audio_stream.py:372
- Outbound network calls
- 14 callsgateway/stackchan_mcp/audio_stream.py:317, gateway/stackchan_mcp/gbot_brain.py:160, gateway/stackchan_mcp/gbot_voice_bridge.py:591
- Writes or deletes files
- 8 callsgateway/stackchan_mcp/capture_server.py:55, gateway/stackchan_mcp/capture_server.py:68, gateway/stackchan_mcp/touch_bridge.py:242
- Lockfile
- gateway/uv.lock and 3 more
Pattern matches on the source text of 74 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README