Prerequisites
- a dashboard account at
https://dashboard.esheria.ai/or an existing Esheria API key curlandjq- Python 3.11+ for the optional Python and CLI examples
- Node.js 20.17+ only if you want to preview these Mintlify docs locally
0. Create A Token
Openhttps://dashboard.esheria.ai/, sign up with verified Google/GitHub OAuth
or sign in, choose your Sandbox packs under Settings, then create a data
token from API Tokens. Store the token secret immediately; it is shown only
once.
Set your environment:
verified_published pack ID your
workspace should query.
If you already received a workspace token from an Esheria operator or
workspace owner, you can use it here instead of creating a new dashboard
token.
1. Check Liveness
2. List Packs
jurisdiction=UK) or omit jurisdiction to discover
every current pack your key can access. The repository-side stage-of-record
for every pack (published_serving vs earlier pipeline stages) is
docs/pack_status_matrix.md in the esheria-regulations repository.
Expected response shape:
esheria_list_packs / GET /api/v1/domain-packs response remains
authoritative.
Common failure modes:
3. Connect MCP
The live MCP endpoint is already hosted:uvx, pipx, or a virtual environment to use
the hosted MCP endpoint when your host supports remote MCP. Authentication
depends on the host:
- Claude.ai, Claude Desktop Directory, and Codex use OAuth through the Esheria dashboard consent page. Do not paste an Esheria data token into the Claude Directory connector.
- Cursor, Claude Code, internal agent hosts, and Codex as an alternative may use a dashboard-created data token as a bearer token.
https://mcp.esheria.ai/mcp, save and
restart, then select Authenticate. Approve access in the Esheria dashboard
and use /mcp to verify the connection.
For Codex CLI OAuth:
esheria_health, esheria_ready, and esheria_list_packs.
The desktop app and CLI can share this MCP configuration when they use the same
Codex profile.
For the bearer-token alternative, set ESHERIA_API_KEY and use:
bearer_token_env_var on the same entry when testing OAuth.
Other agent hosts should use their Remote MCP or Streamable HTTP MCP
configuration screen with:
- URL:
https://mcp.esheria.ai/mcp - Authorization: OAuth when the host offers Esheria connector authorization, or
Bearer YOUR_DASHBOARD_CREATED_DATA_TOKENfor API-key hosts
4. Check Pack Version History
domain_pack_version values to pin reads with version=... or
to compare two versions with /diff and /change-events.
5. Verify A Claim When The Pack Enables It
Use claim verification as a guardrail for generated or user-supplied legal text. Claim verification is evaluator-gated, so first inspect the selected pack. The example below uses a pack with an enabled evaluator; generic fact workflows do not depend on claim verification being enabled.Next Steps
Self-Serve Dashboard
Create tokens, manage credits, review usage, update billing, and use the playground.
Authentication
Learn headers, idempotency, trace IDs, and error envelopes.
CLI
Install
esheria, run smoke checks, and export pack data.MCP
Connect an agent host to the live MCP endpoint and run the first five tool calls.
Recipes
Copy complete examples for pack discovery, change monitoring, obligations, evidence, penalties, and claim checks.