Skip to content

MCP server

GenieClient mcp runs GenieClient as a Model Context Protocol server. An agent then calls its tools to deploy scripts, import data, query objects, run tests and interpret the structured JSON results — chaining execute-script → import → verify → export → verify → crud → relations on its own.

GenieClient mcp [-t <transport>] [-u <url>]
Parameter Type Required Default Description
-t, --transport choice: stdio, http no stdio stdio: the agent starts GenieClient as a child process and talks over stdin/stdout (Claude Code, Codex). http: GenieClient runs as a long-lived web server (SSE) that several agents can share.
-u, --url URL no http://localhost:5177 Address the http transport listens on. Ignored for stdio.
Terminal window
GenieClient mcp # stdio
GenieClient mcp --transport http --url http://localhost:5177 # shared HTTP server

The MCP server cannot prompt, so credentials come from environment variables set by the MCP client:

Variable Type Description
GENIE_ENDPOINT URL Default deployment for tools called without an endpoint argument (default http://localhost:5174).
GENIE_USER text Username or email used to sign in to GENIE_ENDPOINT on the first tool call.
GENIE_PASSWORD text Password for GENIE_USER.
GENIE_DOCS_URL URL Base URL of the Genie docs that genie_docs fetches from.

Sign-in is lazy: it happens on the first tool call that needs it. A stored token from an earlier CLI auth is used first if one exists for that endpoint.

Every authenticated tool takes an optional endpoint argument, so one HTTP server can work with several deployments at once. Each endpoint is its own workspace with its own token, and each call runs in isolation, so concurrent calls never mix credentials. For an endpoint other than GENIE_ENDPOINT, sign in once from the CLI (GenieClient auth -e <endpoint> …); the server reuses that stored token.

Area Tools
Session genie_health, genie_list_companies, genie_switch_company
Deploy genie_execute_script, genie_deploy_models, genie_list_deployed, genie_diff_deployed, genie_export_views
Discovery genie_list_objects, genie_describe_object, genie_get_metadata, genie_get_navbar, genie_search, genie_docs
Data genie_query_table, genie_get_form_values, genie_field_dataset, genie_submit_record, genie_delete_row, genie_execute_row_action, genie_call_procedure, genie_sequence_number, genie_cook_fake_record
Files genie_upload_file, genie_delete_upload
Import / export genie_import_data, genie_import_template, genie_build_import_map, genie_export_data
Testing genie_run_view_tests, genie_test_crud, genie_test_relations, genie_snapshot, genie_verify_snapshot, genie_run_suite, genie_cleanup
Validation genie_validate_sql, genie_validate_model
Definitions genie_export_rbac, genie_import_rbac, genie_export_workflows, genie_import_workflow, genie_export_wizards, genie_import_wizard
Workflows genie_workflow_start, genie_workflow_inspect, genie_workflow_act
Wizards genie_wizard_get, genie_wizard_execute, genie_wizard_submit

The testing, validation, import/export and definition tools mirror the CLI commands of the same name and take the same inputs. Each tool describes its own arguments to the agent through MCP.

Claude Code — .mcp.json in the project (stdio):

{
"mcpServers": {
"genie": {
"command": "GenieClient",
"args": ["mcp", "--transport", "stdio"],
"env": {
"GENIE_ENDPOINT": "http://localhost:5290",
"GENIE_USER": "system@example.com",
"GENIE_PASSWORD": "<password>"
}
}
}
}

Shared HTTP server — start it once, then point clients at the URL:

Terminal window
GENIE_ENDPOINT=http://localhost:5290 GENIE_USER=system@example.com GENIE_PASSWORD='<password>' \
GenieClient mcp --transport http --url http://localhost:5177

See tools/GenieClient/README.md for ready-to-paste Codex configuration.

genie_docs searches the local llms-full.txt, downloaded on first use. update refreshes it. Each tool’s endpoint argument accepts a URL or a profile name, and GENIE_PROFILE or mcp --profile <name> sets the server’s default.