Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TREANT_JEVNoWorker Jev judge setting: on or off. Off never calls Jev and sends every pass to review.on
TREANT_BINDNoListen address for the treant serve MCP server.127.0.0.1:8000
TREANT_JEV_URLNoEndpoint of the Jev judge.https://api.typesafe.ai
TREANT_EMBED_URLYesURL of the embedding service used by serve, worker, dashboard, canary plant, and isolation-test.
TREANT_JEV_MODELNoModel name for the Jev judge.
TREANT_EMBED_DIMSNoEmbedding dimensions; must stay 768.768
TREANT_EMBED_MODELNoModel name sent to the embedding service.embeddinggemma-300m
TREANT_JEV_API_KEYNoAPI key for the Jev judge.
TREANT_LITELLM_URLNoBase URL of the OpenAI-compatible LLM gateway used by the worker for distillation, rewrites, and the LLM judge.
TREANT_OIDC_ISSUERNoOIDC provider issuer, required when TREANT_DASHBOARD_AUTH is oidc.
TREANT_ROLE_PREFIXNoPrefix of every database role.treant
TREANT_DATABASE_URLYesLogin role DSN used by the server, worker, dashboard, and other commands.
TREANT_ALLOWED_HOSTSNoComma-separated public host names; turns on Host and Origin checks.
TREANT_DASHBOARD_URLNoPublic https origin for the dashboard, with no path; the only accepted Host.
TREANT_DASHBOARD_AUTHNoDashboard authentication mode: oidc, or none for a trusted single-owner network.oidc
TREANT_DASHBOARD_BINDNoDashboard listen address.0.0.0.0:8001
TREANT_LOGIN_PASSWORDNoPassword of the <prefix>_login role; required by bootstrap.
TREANT_OIDC_CLIENT_IDNoOIDC client id.treant
TREANT_DASHBOARD_GROUPNoDashboard group the user must be in.treant
TREANT_DASHBOARD_OWNERSNoComma-separated usernames allowed into the dashboard.
TREANT_LITELLM_KEY_<WS>NoPer-workspace LLM gateway key, named with the workspace in place of <WS>.
TREANT_ADMIN_DATABASE_URLNoSuperuser DSN used by bootstrap, upgrade, workspace create, and other owner commands; required for those commands.
TREANT_DASHBOARD_REAUTH_SNoAge of a dashboard login in seconds before re-authentication is required for sensitive actions.300
TREANT_OIDC_CLIENT_SECRETNoOIDC client secret, required when TREANT_DASHBOARD_AUTH is oidc.
TREANT_DASHBOARD_SESSION_SECRETNoDashboard 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
save_sessionA

Save this session's knowledge to memory. sections is an object whose keys are:

  • journal: what was done and the outcome, a few lines

  • facts: stable truths learned (where config lives, versions, how things connect)

  • decisions: what was decided, why, and what was rejected

  • lessons: surprises and root causes

  • dead_ends: approaches that failed and why

  • procedures: steps or commands that worked (no command output)

  • changes: repos, branches, commits, PRs, tickets, what was applied (pointers only, no diffs)

  • open_threads: unfinished work, next steps, blockers

  • preferences: corrections on how the owner wants the AI to work

  • warnings: dangerous things to check first

  • client_memory: memory files the client wrote or changed this session Unknown keys are kept inside the journal. Saving the same client_session_id again adds a revision. Never include secrets. Set unsure=true if you are not sure the summary is free of secrets; the owner reviews it first.

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 mode (hybrid, or keyword when the embedder is down) and hits, each with namespace, kind, type, text, node and score; facts reached through the graph from a direct hit are included.

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 repo when given. With repo_only, only the repo section (no workspace-wide warnings or threads). Read-only; returns brief as plain text of at most 6000 characters. The brief is built from distilled facts, so it stays nearly empty until the worker has distilled some sessions.

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. unresolved lists target kinds that could not be determined (command when the line did not parse); an empty unlisted then does not mean all clear.

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 warnings, a list of texts, empty when memory holds none.

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 version, or error: not found, invalid input, forbidden.

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 ok, or error: not found, forbidden.

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 ok, or error.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 8 tools

Disambiguation3/5

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.

Naming Consistency3/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues