Skip to content

Introduction

GenieClient is a standalone tool in the monorepo at tools/GenieClient that talks to a running Genie deployment over its JSON API. It signs in with a System-role account and then exercises the framework end to end: running scripts, importing seed data, and verifying views, CRUD, imports, exports and relations. You drive it from the terminal or run it as an MCP server that an external LLM agent (Claude Code, Codex, …) calls.

It embeds no LLM. GenieClient is a deterministic client; the intelligence is the agent that calls its MCP tools — cooking test data, deciding what to verify, and interpreting the structured JSON it returns.

Area Commands Page
Sign-in, endpoints, companies, workspaces auth, health, set-endpoint, set-company, workspaces, workspace-forget Session & workspaces
Deploy model and SQL files execute-script Deploy & validate
Check model files offline validate-sql, validate-model Deploy & validate
Test a running deployment test-view, test-crud, test-relations, snapshot, verify-snapshot, run, cleanup Testing
Move data in and out import, export Import & export data
Move RBAC, workflows and wizards export-rbac, import-rbac, export-workflows, import-workflow, export-wizards, import-wizard Definition transfer
Let an AI agent drive it mcp MCP server

Start with Getting started: it covers building the tool, signing in, and the options and value types every command shares.

  • Views — metadata resolves, the grid query runs, and form/view values load, per object.
  • CRUD — add → list/verify → update → verify → delete → verify, with runtime fake data (Bogus). Lookup fields are resolved to real existing options via the field-dataset endpoint so foreign keys hold. Primary-key, hidden, disabled, attachment and sequence fields are skipped.
  • Import — a seed-models.xml map loads each file into its object, then verification re-queries the object to confirm rows landed.
  • Export — export to a file, download it, and check it is non-empty and contains expected values.
  • Relations — lookups resolve, sub-views load under a parent key, and (given a model directory) where the object is referenced by other views.
  • Regressions — golden snapshots of metadata, grids, form values and lookups, diffed on later runs.

It uses the current object API — the unified *.view.xml (one object = table + form) and the metadata + object/{name}/{table,form,view} split, not the legacy render endpoints:

Purpose Endpoint
Auth POST /api/v1/auth/login, /mfa/verify, /refresh; GET /auth/me
Scripts POST /api/v1/genie/execute-script (System role)
Metadata GET /api/v1/genie/object/{name}/metadata
Data POST /api/v1/genie/object/{name}/table · /form · /view
Mutations POST /api/v1/genie/object/{submit,delete-row}
Lookups POST /api/v1/genie/object/field-dataset
Import / Export POST /object/import-data · POST /object/export-data + GET /object/export-file/{name}
Company / RPC POST /company/switch · GET /company/current · POST /rpc/call