What it is
MCP (Model Context Protocol) is an open standard that lets AI coding agents call external tools directly from a conversation — no shell, no files.aethis-mcp implements this protocol, exposing 27 tools for evaluating eligibility and authoring rules from legislation.
Install it once. After that, your coding agent can call aethis_decide, aethis_create_ruleset, aethis_generate_and_test, and aethis_publish as naturally as it calls any other tool.
Decision tools (evaluate, schema, explain) work with no API key.Authoring tools (create, generate, publish) require an API key.
Quick install (recommended)
If you haveaethis-cli installed, one command wires up the MCP server in your editor’s config — picks up the API key cached by aethis login, drops a canonical aethis server entry into the right config file for each target, and preserves any other MCP servers you already have.
aethis account generate rotates your key — the entry updates in place. Reverse with aethis mcp uninstall --target <client> (only removes the aethis entry).
Don’t have aethis-cli? Use the manual install below.
Manual install (without aethis-cli)
- Claude Code
- Claude Desktop
- Cursor / Windsurf
The API key must be set in the MCP client’s config file, not in your shell profile. The MCP server process doesn’t inherit shell environment variables.
Prompts
MCP prompts are pre-built workflow guides that compatible clients can surface as selectable templates.| Prompt | Description |
|---|---|
aethis-author | Step-by-step TDD workflow: gather requirements → create ruleset → generate → refine → publish |
aethis-decide | Decision workflow: find ruleset → get schema → evaluate. Accepts optional ruleset_id argument |
Try it — no API key required
Decision tools work immediately. Two examples you can try now: UK Free School Meals — child eligibility:Is a 10-year-old at a state-funded school eligible for Free School Meals?
Is a Vogon eligible for spacecraft crew certification?
Authoring with a coding agent
Paste a policy document into Claude Code, Cursor, or Windsurf and ask the agent to author rules. The agent runs the tool calls; you confirm section boundaries, field names, test cases, and domain corrections at checkpoints. Full procedural flow: Author a rule from legislation.Authoring access
Authoring is invite-only private beta — request access. Generation tools call an Anthropic model on your behalf and accept the key per request; it is used only for that request and never stored. Prefer passing the key by reference —anthropic_key_env (the name of an env var that holds the key) or anthropic_key_keychain (a macOS keychain item) — rather than the deprecated raw anthropic_key, which lands verbatim in the host’s session transcript.
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
"API key is required" | AETHIS_API_KEY not set | Set in MCP client config (not shell profile). Decision tools don’t need a key. |
"Ruleset not found" (404) | Wrong ID or archived ruleset | For public showcase rulesets, use aethis_discover_rulesets; for private tenant rulesets, use aethis_list_projects → aethis_list_rulesets. |
"Cannot publish: tests failing" | Tests don’t pass | Fix with aethis_refine, or pass force: true to override (not recommended for production). |
| Rate limit exceeded (429) | Daily limit hit | Wait and retry. Contact eng@aethis.ai for a higher tier. |
| Generation timeout (504) | Client timed out — normal for complex rules (5–15 min server-side) | See Handling generation timeouts. |
Date field named in field_errors | Value is neither ISO "YYYY-MM-DD" nor an integer ordinal | Pass either form (ISO accepted since engine 0.31.0; rulebooks need ordinals) — see Date field values. |
Help improve this pageIf something here is unclear or missing an example, use the feedback button at the bottom of the page.Found a bug? Open a GitHub issue. Evaluating Aethis for a regulated workflow? Contact us directly.