Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Config & scoping

Reference for the Telys MCP server — environment configuration, user vs project install scope, result wrapping, the error shape, and the exact tool set.

The Telys MCP server (telys mcp) is a JSON-RPC 2.0 server over stdio (protocol version 2025-06-18), spawned by your MCP client as a child process. Because the client launches it, everything the server needs — the memory store, the runtime, and the kernel — is set through the env block of the client config, not your shell. This page is the reference for that config, the install scope, result wrapping, and errors.

The tool set

The server registers 19 tools — a full replica of the SDK surface that makes sense for a text-mode LLM caller. Every mutating tool persists the store to disk after the operation.

The full table with arguments and return shapes is in MCP overview.

To update, upsert, delete, tune, or build indexes, use the tools above — they cover the SDK's text surface. The SDK adds raw-vector add/search, snapshot, and apply_tuning on top; a self-hosted server (RemoteCollection) mirrors the text surface minus update_texts, tune, and apply_tuning. See Update records, Delete & compact, and Serving overview.

Environment

Set these in the client's env block. All are optional and default to your per-user store.

Variable
Default
Effect on the MCP server

TELYS_MEMORY_PATH

~/.telys/memory

Directory holding the collections the tools read and write. Point separate clients at separate paths to isolate their memory.

TELYS_HOME

~/.telys

Root of all on-disk Telys state (creds, runtime, default memory/).

TELYS_RUNTIME

"" (auto)

Force native or local runtime selection.

TELYS_KERNEL

—

Force the native kernel library path (highest priority; AME_KERNEL is the legacy fallback).

See Environment variables for the full list and precedence.

Install scope: user vs project

telys mcp install writes the config block above into your client's configuration. --scope chooses which config file it edits — it does not change memory partitioning.

Writes to the client's user-level configuration, so the telys server is available in every project for that client:

Use this for a single personal memory store shared across your work.

Writes to a project-local configuration file in the current directory, so only that project sees the server:

Combine with a project-local TELYS_MEMORY_PATH in the env block to give each repository its own isolated memory.

--client accepts claude, cursor, codex, claude-desktop, qwen, or all (the default). See Install the MCP server and telys mcp.

Two different "scopes." --scope user|project is about where the client config file lives. The scope partition key (from partition_by="scope") is about how records are grouped inside a collection and is filtered with the where argument. They are unrelated — see Partitions & scope keys.

Result wrapping

Every tool returns its JSON payload encoded into a single text content block, wrapped so a tool failure never crashes the server. The success envelope:

The text field is a JSON string — parse it to get the payload. Tool-specific payloads are documented on each tool's page.

Error shape

On failure the server returns the same envelope with isError: true and a single text block of the form <Type>: <message>:

Common causes:

ValueError / collection not found

The collection argument names a collection that is not in the active store. Confirm it with telys_list_collections, and check TELYS_MEMORY_PATH points where you expect.

Multi-key where filter rejected

Telys filters are Eq — single-column equality. A where object with more than one key raises an error. Pass exactly one key (scope for MCP-created collections). See Filters (Eq).

Runtime or kernel not installed

Any collection operation needs the signed runtime, and the default embedder needs the native kernel. If either is missing the tool errors. Install and verify with telys runtime install then telys runtime verify. See Install & runtime issues.

See also

Last updated

Was this helpful?