Keyturn docsKeyturn Ray

Keyturn Ray and Keyturn Connect

Keyturn Connect (the program keyturn-mcp) is an MCP server: every Keyturn command becomes a tool an AI assistant such as Claude Code can call. Keyturn Ray is the AI administrator built on it, a set of admin skills that work the way a careful admin does. You ask in plain words; Ray reads, shows you a plan, and asks before it changes anything. Your one-time codes go only into Keyturn's own prompt. Ray never sees them.

Set it up

  1. Install Keyturn on your machine (the archives include keyturn-mcp) and run keyturn connect you@yourdomain, or let Ray do it for you on first use.
  2. Enroll in the second factor on each server: keyturn auth enroll, at your own terminal.
  3. Add Connect to your MCP client. Leave out --allow-changes for a read-only Ray (reads and previews only).
    claude mcp add keyturn -- keyturn-mcp --allow-changes
  4. Copy the Ray skill folders from the release's skills/ into ~/.claude/skills/.

Connect needs the Connect or Ray add-on on each server's Pro or Site license. Without it, only keyturn_license_show answers, and plain keyturn keeps working.

How Ray works on every job

  1. Plan with reads and previews (--dry-run). Nothing changes and no code is asked.
  2. Show you the plan in plain words: what changes, where, how many codes, and what can be undone. Then ask "Shall I go ahead?"
  3. Approve. Keyturn asks you for your code, one per server, in your client's own prompt. Decline and nothing changes; Ray does not retry.
  4. Apply, then verify by reading back.
  5. Offer undo for what can be reversed, and say plainly what can't.

Ray in action

"Ray, can you run compact on all my domain servers?" Ray connects, checks the license on three servers, runs a dry run, and shows the plan. After "Yes, go ahead", it compacts each server with one code each and reports what was freed.

Ray shows the compaction plan and asks before acting
The plan: what, where, how approval works, how results are reported, and undo. Then "Shall I go ahead?"
Keyturn asks for the code for mail1
The code for mail1, in Keyturn's own prompt.
Ray reports space freed
The result: 136 databases, about 1.37 GB freed, per server and in total.

"Find databases where -Default- has Editor or higher, and fix them." Ray audits every database on every server, explains the risk, fixes it as one plan with one code per server, reads every ACL back, and names the run you can undo.

Ray's ACL plan
Eight risky ACLs found across three servers, and the plan to fix them.
ACLs verified
Verified: the audit run again, findings down.

"Ray, why is mail stuck?" Ray reads mail.box, held and dead mail, the Router and the SMTP configuration on every server, explains the cause, and proposes the fix. Nothing changes until you say so.

Ray explains why mail is stuck
The diagnosis: no Configuration Settings document, so outbound SMTP is off and two messages are dead. A proposal, not a change.

Without the add-on, Ray says so plainly and shows the license.

Ray without the license
Not licensed: Connect answers only the license tool, and points to the two ways forward.

Ray's skills

SkillWhat it doesChanges?
keyturn-plansThe plan, approve, apply, verify and undo loop every other skill usesThrough plans
onboard-userInternet person or Notes user, groups, mail file, policy; a CSV or HR feedYes
offboard-userDeny access, group removal, lockouts, AdminP delete, mail-file handlingYes, some irreversible
acl-auditAudit every ACL in the domain, then fix what you pickThe fixes only
cert-renewal-sweepExpiring certificates, then renew or requestYes
mail-flow-triagemail.box, held and dead mail, the Router, trackingYes
server-healthHealth check, then remediationYes
bulk-changesOne change on every database, mail file, server, person or group, by intentThrough plans
cluster-repairCluster and replication repairYes
compliance-reportA domain-wide posture reportNo, reads only

Things to ask Ray

  • "Who is signed on to mail1 right now?"
  • "Give me a health report for every server and tell me what needs attention."
  • "Which certificates expire in the next 60 days?"
  • "Onboard the three people in new-hires.csv into Sales."
  • "Elena Petrova left today. Lock her out and remove her."
  • "Set a 2 GB quota with a 1.8 GB warning on every mail file."
  • "Why is replication failing between mail1 and mail2?"
  • "Write me a compliance report I can send to our auditor."

The guardrails

  • Ray never asks for a code or password in the chat. No tool has a code parameter, and codes are scrubbed from all output and logs.
  • A destructive tool needs confirm set to the exact target, which Ray gives only after you agree.
  • Ray can't run console exec, doc import or db replace-design, can't enroll or mint tokens, and can't change your profiles. A plan holding one of those is refused.
  • Ray can't confirm a new server's certificate for you: Keyturn asks you directly.
  • Every change is audited three times: on the server, in your keyturn audit log ("via": "mcp"), and in Connect's own log.