Treant
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TREANT_JEV | No | Worker Jev judge setting: on or off. Off never calls Jev and sends every pass to review. | on |
| TREANT_BIND | No | Listen address for the treant serve MCP server. | 127.0.0.1:8000 |
| TREANT_JEV_URL | No | Endpoint of the Jev judge. | https://api.typesafe.ai |
| TREANT_EMBED_URL | Yes | URL of the embedding service used by serve, worker, dashboard, canary plant, and isolation-test. | |
| TREANT_JEV_MODEL | No | Model name for the Jev judge. | |
| TREANT_EMBED_DIMS | No | Embedding dimensions; must stay 768. | 768 |
| TREANT_EMBED_MODEL | No | Model name sent to the embedding service. | embeddinggemma-300m |
| TREANT_JEV_API_KEY | No | API key for the Jev judge. | |
| TREANT_LITELLM_URL | No | Base URL of the OpenAI-compatible LLM gateway used by the worker for distillation, rewrites, and the LLM judge. | |
| TREANT_OIDC_ISSUER | No | OIDC provider issuer, required when TREANT_DASHBOARD_AUTH is oidc. | |
| TREANT_ROLE_PREFIX | No | Prefix of every database role. | treant |
| TREANT_DATABASE_URL | Yes | Login role DSN used by the server, worker, dashboard, and other commands. | |
| TREANT_ALLOWED_HOSTS | No | Comma-separated public host names; turns on Host and Origin checks. | |
| TREANT_DASHBOARD_URL | No | Public https origin for the dashboard, with no path; the only accepted Host. | |
| TREANT_DASHBOARD_AUTH | No | Dashboard authentication mode: oidc, or none for a trusted single-owner network. | oidc |
| TREANT_DASHBOARD_BIND | No | Dashboard listen address. | 0.0.0.0:8001 |
| TREANT_LOGIN_PASSWORD | No | Password of the <prefix>_login role; required by bootstrap. | |
| TREANT_OIDC_CLIENT_ID | No | OIDC client id. | treant |
| TREANT_DASHBOARD_GROUP | No | Dashboard group the user must be in. | treant |
| TREANT_DASHBOARD_OWNERS | No | Comma-separated usernames allowed into the dashboard. | |
| TREANT_LITELLM_KEY_<WS> | No | Per-workspace LLM gateway key, named with the workspace in place of <WS>. | |
| TREANT_ADMIN_DATABASE_URL | No | Superuser DSN used by bootstrap, upgrade, workspace create, and other owner commands; required for those commands. | |
| TREANT_DASHBOARD_REAUTH_S | No | Age of a dashboard login in seconds before re-authentication is required for sensitive actions. | 300 |
| TREANT_OIDC_CLIENT_SECRET | No | OIDC client secret, required when TREANT_DASHBOARD_AUTH is oidc. | |
| TREANT_DASHBOARD_SESSION_SECRET | No | Dashboard cookie signing secret, at least 32 characters. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Treant is long-term memory scoped to the workspace of the folder you are working in, plus shared general know-how. Call search before the first action on a named system (repo, cluster, service, ticket) in a session, before proposing a design or a fix, after an error before retrying, and whenever the user refers to past work. When the user asks you to save, call save_session with typed sections. Never include secrets, tokens or credentials in anything you save.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| save_sessionA | Save this session's knowledge to memory.
|
| searchA | Search long-term memory by meaning and keywords: this workspace's facts, decisions, lessons, procedures and warnings, plus shared general know-how. Use it before the first action on a named repo, service, cluster or ticket, before proposing a design or a fix, after an error and before retrying, and whenever the user refers to past work. Read-only. Returns |
| briefA | Short orientation to read at the start of a session: current warnings, open threads and recent decisions for this workspace, plus what memory holds about |
| guard_checkA | Deprecated: the client decides locally now; use warnings. Checks a risky shell command's targets (kube context, AWS profile, git remotes, Terraform root, Ansible inventory) against this workspace's listed targets. Read-only. |
| warningsA | Current warning facts attached to the named systems, for a check before a risky action (a deploy, a migration, a command against a cluster). Pass the names of the repos, services, hosts or clusters involved. Read-only; returns |
| update_factA | Correct a fact in this workspace: replace its text, or set an open thread's status to closed (done) or back to current. Use it when you learn a fact is outdated or imprecise; use retract when it is simply wrong. The previous text is kept in the fact's history and the owner can restore it. Needs the token's update scope. Returns the fact's new |
| retractA | Retract a fact in this workspace that is wrong, so search and the brief stop returning it. Prefer update_fact when the fact only needs correcting. The fact and its history are kept and the owner can restore it. Needs the token's delete scope. Returns |
| report_mistakeA | Report that memory misled you: a fact, warning or brief line that turned out wrong or harmful in this session. Describe what memory said and what was actually true. The report goes to the owner's review page and changes no fact by itself. Returns |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Most tools are distinct, but search, brief and warnings all surface overlapping memory content (warnings appear in search kinds and in the brief), so an agent may hesitate which to call before a risky action. guard_check is explicitly deprecated yet still exposed, directly competing with warnings for the same safety-check purpose.
Verbs-with-nouns (save_session, update_fact, report_mistake, guard_check) sit alongside bare nouns (search, brief, warnings) and a bare verb (retract). Readable but no single predictable convention.
Eight tools is a well-scoped size for a memory server and each maps to a lifecycle step. The only dead weight is the retired guard_check, which no longer earns its slot.
The write path is strong (save_session with rich sections, update_fact, retract, report_mistake) and the read path covers search, brief and warnings. Gaps are minor: no list/enumerate facts, no get-by-id, and no way to browse sessions or namespaces, though search can approximate these.