Skip to content

Shell Helpers

jake-chromatir edited this page Aug 9, 2026 · 2 revisions

Shell Helpers

Setup

source /path/to/magmascript/lib/magmascript.sh

Or add to ~/.zshrc:

source ~/path/to/magmascript/lib/magmascript.sh

Available Functions

MCP

mcp_search "radiohead"         # search entities
mcp_scoreboards                # list scoreboards
mcp_scores tetris              # game scores
mcp_games                      # list games
mcp_bots                       # list workflows

Pi

pi_status                      # service statuses
pi_logs arcade-chat            # service logs
pi_restart arcade-chat         # restart service
pi_info                        # system info
pi_traffic                     # nginx analysis

GitHub

gh_workflows                   # list workflows
gh_trigger "Deploy to Pi"      # trigger workflow
gh_issues                      # list issues
gh_repo                        # repo info

Tab Completion

After sourcing, type mcp_, pi_, or gh_ and press TAB.

Clone this wiki locally