Skip to main content
You are either an AI coding agent, or the human controlling one. This page wires Aethis into Claude Code, Cursor, Windsurf, Claude Desktop, or another MCP-compatible client. After setup, the human gives natural-language instructions; the agent calls Aethis tools for decisions, traces, test authoring, ruleset creation, generation, refinement, and publishing. If you are the human, you do not need to hand-write API calls. Connect the MCP server once, restart your editor, then talk to your coding agent.

Quick prompt — verify and run a decision

Copy this prompt and paste it directly into Claude Code, Cursor, or Windsurf. It verifies your MCP install and runs a live decision in one step — no setup knowledge required.
If your editor isn’t Claude Code, your agent may surface the MCP server under a slightly different name — check the client’s tools list for aethis_decide.

The human workflow

Your job is to provide judgement. The agent’s job is to handle the mechanical calls.
  1. Connect the MCP server.
  2. Restart the editor so the agent can see the tools.
  3. Ask the agent for the task in plain English.
  4. Approve checkpoints: source sections, field names, test cases, guidance hints, and publication.
For example:
For authoring:
If you already know the ruleset_id, include it in the prompt. That avoids the agent wasting a turn trying to browse your private tenant projects.

Setup

If aethis-cli is available on the user’s machine, one command wires up the MCP server in their editor’s config:
If aethis-cli is not installed, fall back to the per-client manual command:
After install, restart the editor. Decision tools (aethis_decide, aethis_schema, aethis_explain, aethis_next_question) are now available with no key. In Claude Code, you can verify the server is visible with:
Look for an aethis server with a connected status. For routing nuance (which interface for which task), see Which interface to use.

Verify

Ask the agent to make one decision against a public ruleset. If you are the agent, call:
If you get this response, the install is working. Browse public showcase rulesets with aethis_discover_rulesets({}). Use aethis_list_projects followed by aethis_list_rulesets only for the user’s authenticated private tenant.

Auth model

Decision tools (aethis_decide, aethis_schema, aethis_explain, aethis_next_question) are public — no key required. Authoring tools require an invite (request access). The user’s AETHIS_API_KEY (ak_live_...) goes in the MCP client’s config file, not the shell — the MCP server doesn’t inherit shell env. Generation tools also need an Anthropic key. Prefer passing it by referenceanthropic_key_env (the name of an env var holding the key) or anthropic_key_keychain (a macOS keychain item) — to aethis_generate_and_test / aethis_refine, rather than the deprecated raw anthropic_key, which lands verbatim in the host’s session transcript. Either way it is used only for that request and never stored.

Workflow patterns

Common tasks an agent will be asked to do. Each maps to one MCP prompt or a short tool sequence.

1. User asks: “Check whether X is eligible for Y”

Use the aethis-decide prompt, or run the two-call sequence directly:
Pass include_trace: true for the per-criterion evaluation trail. Pass include_explanation: true for human-readable rule descriptions. If the user provides facts conversationally rather than as a complete struct, switch to pattern 4.

2. User asks: “Why did this come out this way?”

Two tools, depending on the question:
  • Explain a decision (rule-text)aethis_explain({ ruleset_id }) returns the rules in human-readable form. Use this when the user wants to understand the rule structure before or after a decision.
  • Diagnose a failing testaethis_explain_failure({ ruleset_id, field_values, expected_outcome, test_name }) returns the criterion that failed and a targeted fix hint. Use this during authoring when a test doesn’t pass.

3. User asks: “Encode these rules from a policy doc” (private beta)

Use the aethis-author prompt and follow Author a rule from legislation. Stop and confirm with the user at the end of each phase — a rule that ships wrong returns wrong decisions to every caller. The human should supply:
  • Source text or source files
  • Example cases with expected outcomes
  • Domain corrections when the agent chooses the wrong section boundary or field name
  • Approval before generation and publication
The agent should handle:
  • Creating the draft ruleset with aethis_create_ruleset
  • Turning examples into test_cases
  • Running aethis_generate_and_test
  • Adding guidance when tests fail
  • Publishing only after the test gate is green

4. User wants a guided eligibility interview

For decisions where the user supplies facts one at a time:
The engine computes the optimal next question after each answer — minimum questions to a reachable decision. Different applicants get different question paths.

Prompt patterns that work

Use these when you are the human driving the agent.

Known public ruleset

Browse before deciding

Author from a policy document

Do not ask the agent to “figure it out” from memory. Make it use Aethis tools and source text. For regulated rules, the agent should cite the trace, the source clause, or the failing test, not its general-language reasoning.

Skills

The aethis-skills package provides higher-level workflows on top of the raw tools. Install once, then invoke by skill name: Install: npx skills add Aethis-ai/aethis-skills. The skills assume the Aethis MCP tools are already wired up.

Tool reference

The full tool inventory, with each tool’s access tier (no key vs invite-only authoring key) and whether it writes, is generated from the shipped server: Capabilities and access. Parameters and worked examples: MCP server tools. Two MCP prompts: aethis-author (TDD authoring) and aethis-decide (decision lookup). Surfaced as selectable templates in compatible clients. Documented at MCP server overview — Prompts.

Going deeper