Skip to main content
Glama

The wiki that writes itself — from the code you already ship.

Sign up free   Tour the site   Self-host it

Home · Pricing · Compare · MCP for agents · Docs

License: AGPL-3.0 GitHub stars Latest release Docker npm tela-mcp

tela is a self-hostable, markdown-native team wiki built for a world where agents are first-class authors and readers. It pairs a Go + PostgreSQL backend with a React 19 / Milkdown editor, live Yjs collaboration, ranked full-text and semantic search, and a built-in Model Context Protocol (MCP) server — so the same knowledge base your team edits in the browser is one your agents can search, read, and write directly. Atlas, its documentation engine, turns the artifacts you already produce into maintained wiki pages. Your content stays canonical markdown forever — pages.body is markdown, there is no proprietary block store.

👉 Start at telawiki.com — the marketing site walks through what tela does (with pricing, a comparison, and the agent/MCP story), and the hosted instance has a free tier: no install, no card.

Why tela

  • Atlas auto-doc-gen — point Atlas at your sources and it drafts and maintains real wiki pages, so docs track what you ship instead of rotting.

  • Built-in MCP server — /api/mcp is part of the backend, not a bolt-on. Claude, Cursor, and other agents search, read, and author pages with scoped, per-tool write permissions.

  • Semantic + full-text search — ranked PostgreSQL FTS works out of the box; add an embedder for pgvector-backed semantic retrieval and grounded "ask your docs" answers.

  • Live collaboration — real-time multi-cursor editing over Yjs in a Milkdown editor, with comments, backlinks, and revision history.

  • Teams that run themselves — users create orgs and invite teammates by email, no admin ticket. Flip a space to public and it becomes a login-free blog surface with per-author home pages.

  • Self-host & own your markdown — pages.body is canonical markdown forever (no block table). Sync over WebDAV, export to zip/PDF, and run the whole stack with one make up.

Related MCP server: basic-memory

Quickstart

You need Docker (with Compose) and make. The bundled stack builds every image via Compose, so no host Node or Go toolchain is required.

git clone https://github.com/zcag/tela.git
cd tela

# 1. Write deploy/.env from the example with strong generated secrets
#    (fills TELA_API_KEY_SECRET, TELA_SHARE_SECRET, TELA_PG_PASSWORD via openssl rand)
make setup

# 2. Edit deploy/.env — set TELA_PUBLIC_BASE_URL, and optionally
#    TELA_ADMIN_* and TELA_SMTP_* (see Configuration below)

# 3. Build and start the full stack
make up

The stack comes up behind Caddy on http://localhost:8780. On first boot tela runs its embedded migrations automatically and lands you on the /setup wizard to create the first admin — unless you set TELA_ADMIN_PASSWORD in deploy/.env, which bootstraps the admin non-interactively.

One-click cloud deploy

Prefer managed hosting over running Compose? Deploy the published multi-arch images straight to a platform:

Deploy to Render   Deploy to DigitalOcean

After the first deploy, enable pgvector on the managed database once — CREATE EXTENSION IF NOT EXISTS vector; — then point the backend's TELA_PUBLIC_BASE_URL at your app's public URL. Or skip ops entirely with the free cloud tier.

Common targets:

make up         # build + start the stack on :8780 (auto-stamps git version/commit)
make down       # stop the stack
make logs       # tail logs from all services
make backup     # dump Postgres to ./backups/tela-<timestamp>.sql
make restore FILE=backups/tela-....sql
make clean FORCE=1   # stop and DELETE all volumes (destroys data)

make up is the same thing as running Compose directly — under the hood it's docker compose -f deploy/docker-compose.yml up -d --build (plus a forced proxy recreate so a changed Caddyfile re-mounts). The three load-bearing secrets must be set and stable across deploys: rotating TELA_SHARE_SECRET invalidates outstanding share cookies, and rotating TELA_API_KEY_SECRET invalidates every existing personal access token (PAT).

For full setup, TLS, backups, and upgrades see docs/self-hosting.md and the operations runbook docs/operations.md.

Local development

make dev        # backend (:8080) + frontend (:5173, proxies /api → :8080); boots a local dev Postgres
make be-dev     # backend only (go run; boots the dev Postgres on :55433)
make fe-dev     # frontend only (vite)
make test       # backend tests against a throwaway Postgres
make storybook  # component dev surface

If :8080 is taken on your box, run make dev DEV_BE_PORT=18080 so the backend and the vite /api proxy stay consistent.

Optional: semantic search out of the box

The bundled Compose stack ships an optional Ollama embedder behind a profile. Full-text search always works; this only lights up the semantic half:

docker compose -f deploy/docker-compose.yml --profile embed up -d
docker compose -f deploy/docker-compose.yml exec ollama ollama pull qwen3-embedding:0.6b
# then set TELA_RAG_EMBED_URL=http://ollama:11434 in deploy/.env and restart

Configuration

All configuration is environment-driven via deploy/.env (copy from deploy/.env.example). In the bundled Compose stack TELA_DATABASE_URL is auto-constructed from the TELA_PG_* vars — you only set it explicitly when running the backend against an external Postgres.

Required

Variable

Description

TELA_PUBLIC_BASE_URL

Public origin of the instance (e.g. https://wiki.example.com). Used in emails, share links, and OAuth audiences.

TELA_SHARE_SECRET

Secret signing share-link password cookies. Generate with openssl rand -hex 32; never rotate (invalidates outstanding share cookies).

TELA_API_KEY_SECRET

Secret signing personal access tokens (PATs). Generate with openssl rand -hex 32; never rotate (invalidates every existing PAT).

TELA_PG_PASSWORD

Password for the bundled Postgres. No default — must be set.

Postgres

Variable

Description

TELA_PG_USER

Postgres role for the bundled DB. Default tela.

TELA_PG_DB

Postgres database name. Default tela.

TELA_DATABASE_URL

Full DSN — only set when running outside the bundled stack (external/managed Postgres). Format postgres://USER:PASS@HOST:5432/DB?sslmode=disable.

Bootstrap admin (optional)

Variable

Description

TELA_ADMIN_USERNAME

Bootstrap admin username (first boot only).

TELA_ADMIN_PASSWORD

Bootstrap admin password. Unset → use the /setup web wizard instead.

TELA_ADMIN_EMAIL

Optional; pre-confirms the admin's email so it's exempt from the confirmation gate. Setting it later backfills the existing admin.

Email (transactional + notifications)

With TELA_SMTP_HOST unset, tela logs confirmation/reset/notification links to stdout instead of sending (fine for dev / first boot). Works with any SMTP relay.

Variable

Description

TELA_SMTP_HOST

SMTP relay host (e.g. smtp.resend.com).

TELA_SMTP_PORT

587 starttls (default) or 465 ssl.

TELA_SMTP_TLS

starttls | ssl | none.

TELA_SMTP_USERNAME

SMTP username.

TELA_SMTP_PASSWORD

SMTP password or API key.

TELA_SMTP_FROM

From identity, e.g. tela <tela@example.com>.

Custom domains & TLS (optional)

Variable

Description

TELA_SITE_ADDRESS

Canonical host Caddy binds for direct-TLS mode (e.g. telawiki.com). Empty → :80 (terminator/CF mode), which disables org custom domains.

TELA_CUSTOM_DOMAIN_TARGET

Shared CNAME target shown to org admins adding a hostname. Defaults to the canonical host.

AI: semantic retrieval, ask-your-docs, Atlas (all optional, ship dark)

These features ship dark — unset means the relevant endpoints return 503 and nothing is computed. Point them at your own Ollama / OpenAI-compatible endpoints, the bundled --profile embed Ollama, or tela cloud's managed endpoints (authenticated with a telawiki.com PAT).

Variable

Description

TELA_RAG_EMBED_URL

Embedder endpoint for semantic chunk search (e.g. http://ollama:11434). Unset → /api/rag/* 503.

TELA_RAG_EMBED_MODEL

Embedding model. Must be 1024-d; default qwen3-embedding:0.6b.

TELA_RAG_EMBED_DIM

Advisory embedding dimension (the column is fixed at vector(1024)).

TELA_RAG_EMBED_TOKEN

Bearer token for a managed/authenticated embed endpoint.

TELA_RAG_QUERY_INSTRUCT

Query-side instruction prefix for asymmetric retrieval. Unset → sensible default.

TELA_RAG_RERANK_URL

Optional cross-encoder reranker /rerank endpoint (Cohere/Jina/TEI-compatible).

TELA_RAG_RERANK_MODEL / TELA_RAG_RERANK_TOKEN

Reranker model name and token.

TELA_RAG_LOG_ASKS

Log "ask your docs" questions to surface knowledge gaps (admin-only). 0 disables.

TELA_LLM_URL

OpenAI-compatible chat base including /v1 for grounded answers (/api/rag/ask). Unset → 503.

TELA_LLM_MODEL

Chat model name (e.g. qwen2.5:7b).

TELA_LLM_TOKEN

Bearer token for a managed/authenticated LLM endpoint.

TELA_LLM_MAX_TOKENS

Completion length cap. Default 1024; 0/-1 disables the cap.

TELA_AGREEMENT

Epistemic trust pass (corroborate/contradict scoring). On when LLM+embedder are set; 0 disables.

TELA_ATLAS_MAX_CONCURRENT_RUNS

Cap on concurrent Atlas doc-gen runs. Default 1.

ATLAS_LLM_CONCURRENCY

Per-run client concurrency gate. Default 6.

TELA_ATLAS_WORKDIR

Where Atlas unpacks working files. Default: OS temp dir.

TELA_IMAGE_GEN_URL / TELA_IMAGE_GEN_MODEL / TELA_IMAGE_GEN_KEY

OpenAI-compatible Images endpoint for the MCP generate_deck_image tool. Unset → 503.

Auth: MCP OAuth & federated sign-in (optional)

Variable

Description

TELA_WORKOS_ISSUER

WorkOS AuthKit issuer to enable Claude.ai/ChatGPT "Connect" OAuth on /api/mcp. Unset → MCP stays PAT-only.

TELA_MCP_RESOURCE

The MCP endpoint's public URL (OAuth audience). Defaults to {TELA_PUBLIC_BASE_URL}/api/mcp.

WORKOS_API_KEY

Server-side WorkOS secret for the Standalone login bridge.

TELA_SSO_GOOGLE_CLIENT_ID / _SECRET

Google OIDC sign-in. Dark until both are set.

TELA_SSO_MICROSOFT_CLIENT_ID / _SECRET

Microsoft OIDC sign-in. Dark until both are set.

TELA_SSO_GITHUB_CLIENT_ID / _SECRET

GitHub OAuth2 sign-in. Dark until both are set.

Billing (optional, ships dark)

Variable

Description

TELA_POLAR_TOKEN

Polar organization access token. Unset → checkout/portal 503; plans stay operator-assigned.

TELA_POLAR_WEBHOOK_SECRET

Polar webhook signing secret (verbatim).

TELA_POLAR_BASE_URL

https://api.polar.sh or https://sandbox-api.polar.sh.

TELA_POLAR_PRODUCTS

Maps plan keys to Polar product UUIDs, e.g. personal_plus:<uuid>,org_team:<uuid>.

Services, sync & ops (optional)

Variable

Description

TELA_GOTENBERG_URL

PDF render engine. Default http://gotenberg:3000.

TELA_PDF_RENDER_BASE_URL

Internal origin Gotenberg's Chromium loads the reader from. Default http://proxy.

TELA_DECK_URL

Slidev deck render sidecar. Default http://deck:3344.

TELA_WEBDAV_ENABLED

WebDAV sync surface (/dav/). Default on; 0/false disables.

TELA_WEBDAV_CREATE_SPACES

Allow root-level MKCOL to mint spaces. Default on (any write-scoped PAT can create spaces via WebDAV).

TELA_WEBDAV_DELETE_FLOOR / TELA_WEBDAV_DELETE_FRACTION

Mass-delete guard tuning.

TELA_WEBDAV_FILE_MAX_BYTES

Per-file upload cap for space files.

TELA_ADDR

Backend listen address. Default :8080.

TELA_LOG_FORMAT

json for structured logs. Default text.

TELA_API_KEY_AUDIT_DAYS

PAT audit-log retention in days.

TELA_EVENTS_RETENTION_DAYS

Activity-feed GC window. Default 180.

TELA_DISABLE_WELCOME_SEED

Any value skips seeding the welcome space on first boot.

TELA_VERSION / TELA_COMMIT

Build metadata surfaced by GET /api/version (auto-stamped by make).

The split/deploy topology adds image-ref and Umami-analytics vars (TELA_BACKEND_IMAGE, TELA_FRONTEND_IMAGE, UMAMI_APP_SECRET, UMAMI_DB_PASSWORD, …). See deploy/.env.example and docs/deploy.md.

Connect your agents (MCP)

tela's MCP server is built into the backend at /api/mcp — it self-authenticates with a personal access token (PAT) as a bearer header. Modern hosts speak HTTP transport directly:

https://telawiki.com/api/mcp            # tela cloud
https://your-host.example.com/api/mcp   # your self-hosted origin

For hosts that can't speak HTTP transport (or want a stdio bridge), the tela-mcp npm package is a thin stdio↔HTTP proxy to the same endpoint — no second tool implementation to drift. Add it to your MCP client config (e.g. Claude Desktop / Cursor):

{
  "mcpServers": {
    "tela": {
      "command": "npx",
      "args": ["-y", "tela-mcp"],
      "env": {
        "TELA_BASE_URL": "https://telawiki.com",
        "TELA_API_KEY": "tela_pat_xxxxxxxx"
      }
    }
  }
}

Point TELA_BASE_URL at your own origin to use a self-hosted instance. Generate a PAT in Settings → API tokens; per-tool write permission is enforced server-side. The proxy requires Node ≥ 20. See mcp/README.md for the full tool catalog and troubleshooting.

One-click install

Add to Cursor Add to VS Code

Both buttons add the HTTP endpoint; auth is handled by OAuth on first use, so no token goes in the link.

Per-client setup

HTTP-transport hosts connect to the endpoint directly and sign in via OAuth. stdio-only hosts use the tela-mcp proxy with a PAT (TELA_BASE_URL + TELA_API_KEY).

Claude Code (CLI, HTTP):

claude mcp add --transport http tela https://telawiki.com/api/mcp

Cursor (HTTP) — use the button above, or add to ~/.cursor/mcp.json:

{ "mcpServers": { "tela": { "url": "https://telawiki.com/api/mcp" } } }

VS Code (HTTP) — use the button above, or:

code --add-mcp '{"name":"tela","type":"http","url":"https://telawiki.com/api/mcp"}'

ChatGPT — install Tela from the plugin directory and sign in. Nothing to paste, no Developer Mode. (The directory plugin talks to the hosted service; for a self-hosted instance add a custom connector with your own URL, as below.)

Claude.ai / self-hosted ChatGPT (OAuth connector) — add a custom connector and paste the URL; complete the sign-in:

https://telawiki.com/api/mcp

Claude Desktop (stdio proxy) — claude_desktop_config.json:

{
  "mcpServers": {
    "tela": {
      "command": "npx",
      "args": ["-y", "tela-mcp"],
      "env": { "TELA_BASE_URL": "https://telawiki.com", "TELA_API_KEY": "tela_pat_xxxxxxxx" }
    }
  }
}

Windsurf (stdio proxy) — ~/.codeium/windsurf/mcp_config.json, same mcpServers shape as Claude Desktop above.

Codex (stdio proxy) — ~/.codex/config.toml:

[mcp_servers.tela]
command = "npx"
args = ["-y", "tela-mcp"]
env = { TELA_BASE_URL = "https://telawiki.com", TELA_API_KEY = "tela_pat_xxxxxxxx" }

A machine-discovery manifest is published at /.well-known/mcp.json.

Screenshots

Ranked full-text search across every space you can read, with the matching line in context:

Atlas documents a repo and then audits its own coverage — 6/6 must-cover surfaces documented, 42 citations, and the exact file:line gaps it hasn't covered:

Atlas coverage audit: 13/19 surface covered, 6/6 must-cover documented, 42 citations with 0 unresolved, and a list of undocumented exports with their file:line locations

Architecture

  • Backend — Go (module github.com/zcag/tela/backend, entry cmd/tela). Hand-written database/sql over the pgx/v5 stdlib driver — no ORM, no sqlc. Embedded, forward-only SQL migrations run automatically on boot.

  • Database — PostgreSQL 17 with the pgvector extension (pgvector/pgvector:pg17). FTS lives in pages.search_tsv (ranked ts_rank_cd); semantic chunks live in page_chunks.embedding vector(1024).

  • Frontend — React 19 + Vite + TypeScript + Tailwind v4 + Radix + a Milkdown (@milkdown/kit) editor, with TanStack Query/Router, Orama, cmdk, and Storybook. Owned, token-driven UI components only.

  • Live collaboration — Yjs + y-prosemirror over a custom WebSocket transport, scoped tightly to src/lib/collab/* and the collab branch of the editor; it rebases onto the canonical markdown on save.

  • Built-in MCP — the tool/resource surface lives in the Go backend (internal/api/mcp*.go) and calls the same core functions the REST routes do, so there is one implementation. mcp/ is a dumb stdio↔HTTP pipe published as tela-mcp on npm.

  • Atlas — the documentation engine that drafts and maintains wiki pages from your sources, sharing the configured LLM endpoint.

  • Render sidecars — Gotenberg for HTML→PDF export; a Slidev deck sidecar for presentation pages.

  • Edge — Caddy serves the SPA, the API, and (in direct-TLS mode) on-demand certificates for org custom domains.

Deeper internals, ops, and gotchas live in docs/ — start with docs/architecture.md, and docs/decisions.md for the rationale (PostgreSQL, custom collab transport, MCP-as-thin-client).

Self-host vs cloud

  • Self-host — run the whole stack with make up (or docker compose). You own the data, the markdown, and the Postgres volume; AI features are bring-your-own-endpoint (or the bundled Ollama profile). The split/registry deploy topology for shared-edge boxes is in docs/deploy.md.

  • Cloud — a managed instance is hosted at telawiki.com with a free tier, plus optional managed semantic search and ask-your-docs so you don't have to run an embedder or LLM yourself.

Both run the same code from this repository.

Contributing

  • Commit format: type(scope): summary (e.g. feat(backend): hybrid chunk search). Concise messages, no co-author trailer.

  • No issue/task tracker — please don't open GitHub issues or reference #NNN. Discuss via pull requests.

  • Backend changes use hand-written SQL and a new forward-only NNNN_name.sql migration (never edit an applied one). Frontend changes use owned Radix/token-based primitives — no hardcoded hex/px, no third-party component kits.

  • Run make test (backend) and npm run build in frontend/ before sending a change. See CLAUDE.md and docs/ for the full conventions.

Security

Please report security issues privately to tela@telawiki.com, not as a public issue or PR. Policy and acknowledgements: SECURITY.md.

License

tela is open core. Copyright © tela contributors. The Community core — the whole product — is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0): self-host, modify, and redistribute under its terms (run a modified version as a network service and you must offer your users the corresponding source). The tela-mcp npm package is published under AGPL-3.0-only. For a commercial license without AGPL obligations (e.g. to embed or offer tela as a closed service), contact the maintainer.

The Enterprise Edition (backend/internal/ee/, source-available, not AGPL) adds the company-of-record layer (SSO, audit, SCIM, governance) and requires a license key for production use — see backend/internal/ee/LICENSE.md. Full structure in docs/licensing.md.

"tela", the tela name, and the tela logo are trademarks and are not licensed under the AGPL — see TRADEMARK.md. You may run and fork the code, but you may not use the tela branding for a redistributed or hosted version without permission.

Available Tools

50 tools
add_commentAdd commentAInspect

Comment on a page (editor+). Omit parent_id for a ROOT comment: it needs an anchor, a {prefix, exact, suffix} text triplet that pins it to a passage so it survives edits to the page. Pass parent_id to REPLY inside an existing thread (no anchor; replying to a reply is rejected) — that is how you answer a person's comment, rather than posting a second root beside theirs. ANCHOR TEXT IS THE PAGE'S PLAIN TEXT, NOT ITS MARKDOWN: inline markers are stripped (**ship it** is anchored as ship it), blocks are joined by single newlines, and prefix/suffix hold at most 32 characters of surrounding context. Quote the passage as a reader sees it, not as get_page returns it. Pass idempotency_key to make retries safe (a repeat returns the original comment instead of posting a duplicate). Use for feedback ON page content; to report problems with tela itself use submit_feedback.

Inputs: body (required), page_id (required), anchor, parent_id, +1 more. Returns: comment

atlas_list_projectsList atlas projectsA
Read-only
Inspect

List the atlas doc-generation projects you can see (your personal ones plus those of every org you belong to). Each project carries its owner, output space, schedule, source count, and latest-run summary (status + last must-cover rate); can_manage says whether you may trigger runs. Start here to find a project_id for atlas_run, or to read coverage health at a glance.

Returns: projects

atlas_runRun atlas generationAInspect

Trigger a FULL doc-generation run for every source in an atlas project (project_id from atlas_list_projects): re-ingest the sources, regenerate the cited pages, and re-audit coverage. Management-level (project owner / org admin) — a run fetches the sources, spends LLM budget, and rewrites the generated subtree (creating the output space on the first run). Returns run_ids (one per source); poll each with atlas_run_status. Returns 503 ai_unavailable when the instance has no embedder/LLM configured.

Inputs: project_id (required). Returns: run_ids

atlas_run_statusGet atlas run statusA
Read-only
Inspect

Read an atlas run's status and coverage by run_id (view+). Returns the run's status + current stage and, once auditing has run, coverage (must_rate = the headline fraction of must-cover surface documented, surface_rate, gap_count + the gap list of undocumented surface items) and stats (files / surface / chunks / pages). Use to follow a run started by atlas_run to completion and judge whether the docs are complete.

Inputs: run_id (required). Returns: run

confirm_attachment_uploadConfirm a direct uploadA
Idempotent
Inspect

After the bytes have been PUT to a request_attachment_upload URL, return the stored file's serve URL + ready-to-embed markdown (for hosts that couldn't read the PUT response). Editor+. Then place the snippet with update_page/patch_page.

Inputs: upload_id (required). Returns: attachment

create_pageCreate pageAInspect

Create a page in a space (editor+). Body is markdown; tela://page/{id} links and [[Page Title]] wikilinks (resolved by title within the space) are indexed as backlinks. tela renders a rich block palette beyond plain markdown — to-do list, pull quote, callout, collapsible, tabs, kanban board, stat grid, timeline, calendar, poll, chart, embed, mermaid diagram, image, file attachment, code block, equation, inline math, table, highlight, wikilink, footnote. Prefer these over walls of text; read the tela://authoring-guide resource (or this server's instructions) for exact syntax. After writing, call lint_page — the reader silently drops raw HTML and unwraps unrecognized blocks, which you cannot see from the markdown. When asked for a presentation, slides, a slide deck, or a talk (any phrasing) — not a prose doc — set the page property deck=true (and optionally variant=) and write the body as slides separated by --- using the tahta layouts; call the deck_authoring_guide tool (or read the tela://deck-authoring-guide resource) for the layouts, fields, components, and variants. When asked for a spreadsheet, a table of data with formulas/totals, a budget, a tracker, or any grid that computes — not a prose doc — set the page property sheet=true and write the body as Defter markdown (compact GFM tables + an optional ```defter-style block); call the sheet_authoring_guide tool (or read the tela://sheet-authoring-guide resource) for the format, formulas, and styling.

Inputs: body (required), title (required), space_id (required), props, +3 more. Returns: lint, page

create_spaceCreate spaceAInspect

Create a space; the caller becomes its owner (write scope). slug is derived from name when omitted. Use to start a new top-level container of pages; to add a page inside an existing space use create_page, and to rename a space use update_space.

Inputs: name (required), slug, org_id, idempotency_key. Returns: space

deck_authoring_guideDeck authoring guideA
Read-only
Inspect

Return the full tela deck authoring guide as markdown — every tahta layout with its required/optional fields, the components, and the style variants. Read this FIRST when creating or editing a deck (a deck=true page) so you don't guess at layouts/fields. The guide lists optional capability modules (e.g. branding, imagery); when one applies, call again with module="" to fetch that extra guidance.

Inputs: module. Returns: guide

delete_attachmentDelete attachmentA
Destructive
Inspect

Detach a file from a page by attachment id (editor+; ids come from list_attachments). Soft-delete. It does NOT edit the page body, so remove any inline embed separately with update_page/patch_page.

Inputs: id (required), page_id (required). Returns: ok

delete_pageDelete pageA
Destructive
Inspect

Delete a page (editor+). Backlinks from other pages are preserved with the last-known title.

Inputs: id (required). Returns: ok

delete_spaceDelete spaceA
Destructive
Inspect

Delete a space AND all its pages, comments, revisions and share links. Owner only. Irreversible.

Inputs: id (required). Returns: ok

edit_sheetEdit sheet (structured)AInspect

Make a STRUCTURED edit to a sheet (a sheet=true page), editor+. Prefer this over update_page for sheets: you pass a typed operation and tela rewrites the Defter markdown correctly — inserting a row shifts every formula below it, deleting a column re-references the rest, so you never corrupt the grid by hand-editing text. Pass one op (or a batch via ops, applied atomically). Each op is {kind, ...} where kind is one of: setCells {cells:[{ref:"B2",text:"=A2*1.2"}]} — write literals/formulas by A1 ref; insertRows/deleteRows {at:<1-based row>, count?}; insertCols/deleteCols {at:<col letter or 1-based index>, count?}; setStyle {target:"A1:C1"|"B"|"2", attrs:{...}} — bold/align/fill/number-format a range/col/row; setFreeze {rows?, cols?} — freeze N header rows / M leading cols (0 clears); addSheet {name, after?}; renameSheet {sheet, name}; deleteSheet {sheet}. Ops that target a specific tab take an optional sheet (name or 0-based index; defaults to the first). A bad ref/range/sheet is rejected with a fixable error. Call sheet_authoring_guide for the full op reference, cell/style syntax, and formula functions. Returns the updated sheet with formulas computed.

Inputs: page_id (required), op, ops. Returns: page

fetchFetch documentA
Read-only
Inspect

Fetch a tela page's full text by id (the id comes from a search result) — the fixed-shape companion to search. Read-only. Prefer get_page for normal use (same body plus richer metadata and trust signals); reach for fetch only when the host requires the fixed search/fetch contract.

Inputs: id (required). Returns: id, url, text, title, +1 more

find_overlapsFind overlapping pagesA
Read-only
Inspect

Near-duplicate page PAIRS that share a near-identical passage (real merge/redirect candidates) for wiki hygiene. Optional space_id restricts to one space; threshold (0..1, default 0.92) is the minimum chunk-level similarity to count as a duplicate.

Inputs: limit, space_id, threshold. Returns: overlaps

generate_deck_imageGenerate deck imageAInspect

Generate an image from a prompt and attach it to a deck page (editor+), ready for a bg:/image: slot. Returns the serve URL + a snippet; reference it by path (don't regenerate on re-render). Read the imagery module first (deck_authoring_guide module="imagery"): most slides need NO image — use it for atmosphere/concept/focal only, reuse ONE background, write rich on-palette prompts, and prefer images raw. May be unavailable (503) if the instance hasn't configured image generation or AI is paused; generation can take from ~20s to a few minutes depending on the model.

Inputs: id (required), prompt (required), name, seed, +3 more. Returns: url, note, markdown

get_pageGet pageA
Read-only
Inspect

Full markdown body + metadata for a numeric page id. Includes an epistemic block — trust signals computed from the wiki's own state: freshness (age, stale, review_overdue), provenance (human / agent / sync), and corroboration vs. dispute against same-space pages. Weigh it: prefer fresh, corroborated, human-reviewed pages; treat a stale or disputed page as lower-confidence and check its listed disputes before relying on it.

Inputs: id (required), format. Returns: page

get_page_revisionGet page revisionA
Read-only
Inspect

One historical revision of a page: its title, full markdown body and properties as they were at that point (read-only, editor+ on its space). Take revision_id from list_page_revisions. Works for trashed pages. For the page as it is now use get_page.

Inputs: page_id (required), revision_id (required). Returns: page, revision

get_spaceGet spaceA
Read-only
Inspect

Fetch one space's metadata (id, name, slug) by id. Read-only. Use when you already hold a space_id and just need its name/slug; to discover spaces use list_spaces, to list its pages use list_pages.

Inputs: id (required). Returns: space, owner_org, page_count, member_count, +1 more

import_guideImport an existing folder of filesA
Read-only
Inspect

Return the guide for BULK-importing an existing folder of documents (Word docs, spreadsheets, PDFs, notes) into a space as a page tree — rather than hand-creating pages one at a time. Read this FIRST for any 'import', 'migrate my docs', 'bring in this folder', or 'load these files' request. Covers converting Office files locally (docx → pages, spreadsheets → live sheets), attaching PDFs/images, and the import endpoint's dry-run → confirm → commit contract.

Returns: guide

invite_to_spaceInvite to space (by email)AInspect

Give a person access to a space by EMAIL ADDRESS — space owner only, write scope. Two outcomes, and the response tells you which happened: if a tela account already uses that address they are added right away and returns {member}; if nobody has that address yet, tela SENDS THEM AN EMAIL INVITATION (an outward action reaching a third party) and returns {invite} — they get the space automatically when they sign up with that address. Role is owner|editor|viewer (default viewer). Use this to onboard someone who has no tela account; to add an existing user you already know by username, or to change/remove access, use the app's space sharing UI.

Inputs: email (required), space_id (required), role. Returns: invite, member

knowledge_gapsKnowledge gapsA
Read-only
Inspect

The most-asked "ask your docs" questions the corpus could NOT answer — a content roadmap: write these pages next. Covers your own asks plus asks in spaces you're a member of. Optional space_id and since_days window.

Inputs: limit, space_id, since_days. Returns: gaps

lint_deckLint slide deckA
Read-only
Inspect

Validate a deck page's slides against the tahta theme contract — unknown layouts, missing required fields, type/format mistakes. Run after authoring/editing a deck to catch problems before presenting. Returns structured issues per slide. For the full list of valid layouts and each layout's fields, call deck_authoring_guide.

Inputs: id (required). Returns: ok, hint, errors, issues, +1 more

lint_pageLint pageA
Read-only
Inspect

Check a page for places where the READER renders something different from what the markdown says — an unknown :::block or [!CALLOUT] that silently unwraps, raw HTML the reader drops, a collapsible whose blank lines are missing so its body vanishes, a [[wikilink]] that matches no page, a broken link or attachment, a ragged table, a table so wide the page column shows only part of it. These are invisible when you re-read your own source, which is why re-reading it is not a substitute for calling this. Run it after writing or editing a page.

Inputs: id (required). Returns: ok, hint, errors, issues, +1 more

list_attachmentsList attachmentsB
Read-only
Inspect

List the files attached to a page (uploads AND rclone-synced files): name, mime, byte size, a stable serve URL, an absolute download_url (fetch the bytes), a share_url (give THIS to a person — it opens a page that previews the file and unfurls as a card in chat, where download_url just downloads), and a ready-to-embed markdown snippet. embedded tells you the page body already references the file.

Inputs: page_id (required). Returns: attachments

list_commentsList commentsA
Read-only
Inspect

Read comments (editor+). Pass page_id for one page's full threads (each root with its replies), or space_id for an inbox of threads across a whole space (roots only, each with reply_count and page_title — drill into the page for the replies). status is open (default), resolved, or all. TO POLL FOR WHAT HUMANS WROTE: keep the cursor this returns and pass it back as since next time — you then get only threads with new or edited activity, including threads someone replied to, and each comes back with its full context. Anchors are the page's PLAIN TEXT, not its markdown (inline markers stripped, blocks joined by single newlines), so match anchor_exact loosely against a get_page body rather than searching for it verbatim. Answer a thread with add_comment(parent_id=…) and close it with update_comment(resolved=true).

Inputs: limit, since, status, page_id, +1 more. Returns: cursor, threads

list_page_revisionsList page revisionsA
Read-only
Inspect

A page's revision history, newest first (read-only, editor+ on its space). A revision is snapshotted on every title/body change, by a person, an agent, sync or Atlas. Returns page (with deleted_at set when the page is in the trash, and current_revision_id) and revisions (metadata only: id, created_at, author, source, byte_size, is_current). Works for trashed pages too, so you can recover what a removed page said. Page back with cursor = next_cursor. Read one revision's full text with get_page_revision.

Inputs: page_id (required), limit, cursor. Returns: page, revisions, next_cursor

list_pagesList pagesA
Read-only
Inspect

Flat page listing in a space (read-only). Pass parent_id for the direct children of one page; omit for top-level pages. Use to browse a space's structure or find a page_id; to find pages by keyword use search, and to read a page's body use get_page.

Inputs: space_id (required), status, parent_id. Returns: pages

list_sharesList share linksA
Read-only
Inspect

List a page's public share links (editor+): id, token, absolute url, has_password, include_descendants, expires_at, revoked_at. Active links only by default; pass include_revoked to also see revoked ones. Tokens are bearer secrets, so this needs a write-scoped key.

Inputs: page_id (required), include_revoked. Returns: shares

list_space_filesList a space's filesA
Read-only
Inspect

List every file stored in a space, including the ones parented to the space ROOT rather than to a page — those are invisible to list_attachments (which is per-page), so this is the only way to discover a file that was synced or imported beside the page tree. Each entry carries the same links: download_url for the bytes, share_url to give a person, plus parent_page_id/parent_title (absent = the space root). Filter with parent_page_id: a page id for that page's files, "root" for the root only. Read-only; any space role. Capped at 500 files (truncated says so).

Inputs: space_id (required), parent_page_id. Returns: files, truncated

list_spacesList spacesA
Read-only
Inspect

List every space the API key can access (id, name, slug). Read-only. Start here to discover a space_id for list_pages / search / create_page when you don't already have one; for a single space you already know, use get_space instead.

Returns: spaces

move_pageMove pageA
Idempotent
Inspect

Move a page: reparent (parent_id), detach to top-level (make_root), reorder (position), and/or relocate to another space (space_id). Editor+ in both source and target space. Provide at least one of space_id / parent_id / make_root / position.

Inputs: id (required), position, space_id, make_root, +1 more. Returns: page

patch_pagePatch page sectionAInspect

Surgically edit ONE section of a page instead of rewriting the whole body (editor+). First call get_page format:"map" to see the section paths, then patch the target. Cheaper and safer than update_page on a long page — it never touches the rest of the document. Snapshots a revision like any edit.

Inputs: id (required), target (required), operation (required), content, +2 more. Returns: page, warning, removed_subsections

preview_deckPreview slide deckA
Read-only
Inspect

Render a deck page to slide images and return them, so you can SEE how the deck looks (don't author blind). Pass slides to preview specific 1-based frames; omit for the first few. Renders are cached.

Inputs: id (required), slides.

preview_pagePreview pageA
Read-only
Inspect

Render a page and read it back as the reader actually shows it — the same render the PDF export uses, so callouts, tables, math, mermaid and diagrams are all resolved. Use it to check that what you wrote is what appears (text you can diff against your intent), and after any edit whose result you can't be sure of from the markdown alone. format: "text" (default), "image" for a screenshot, "both". For a deck page, call preview_deck instead.

Inputs: id (required), format.

read_chunkRead chunkA
Read-only
Inspect

Fetch one chunk's full section text by chunk_id (from a research source), for a page OR a file chunk (read-only). Middle granularity — use it to expand a single cited section; for the whole page use get_page. A file chunk cites its file (file_name + parent page_id + download_url for the bytes + share_url, the previewable link to show a person).

Inputs: chunk_id (required). Returns: chunk

request_attachment_uploadRequest a direct upload URLAInspect

Get a short-lived signed PUT URL to upload a file WITHOUT sending its bytes through the model context — for files over upload_attachment's 5 MB inline cap, or to avoid context bloat. Flow: call this → the host PUTs the raw bytes to the returned put_url over HTTP → then either read that PUT response or call confirm_attachment_upload to get the embed snippet (and share_url, the link for a person), and place it with update_page/patch_page. Editor+. Only works on hosts that can make an outbound HTTP PUT; otherwise use upload_attachment.

Inputs: name (required), page_id (required), mime. Returns: upload

researchResearch the wikiA
Read-only
Inspect

Answer a question — or gather everything relevant on a topic — from the wiki by MEANING. One call assembles answer-ready grounding: the full bodies of the pages that matter (not isolated fragments), pulled from pages AND attached files (PDFs, docs), plus any flagged disagreements among the sources and a low_confidence signal. Returns context (a numbered [n] excerpt block to ground your answer), sources (the cited hits aligned to [n], each with page_id/chunk_id for drill-in and, for file sources, a download_url for the bytes plus a share_url to show the person), disagreements (conflicts to surface, [n]-keyed), low_confidence, and considered/truncated. truncated: true means retrieval found MORE relevant sources than it returned (considered says how many) — the corpus did not run out, the per-call cap did; re-ask with a bigger limit before concluding anything is missing. YOU write the answer from context and cite sources by their [n]. To read one section deeper use read_chunk (chunk_id from a source) or get_page (full page). For exact-name/term lookup use search. Requires a configured embedder (503 otherwise).

Inputs: question (required), limit, space_id. Returns: context, sources, truncated, considered, +2 more

revoke_shareRevoke share linkA
DestructiveIdempotent
Inspect

Disable a public share link by its share id (editor+; ids come from list_shares). The link stops working immediately. Idempotent — revoking an already-revoked link is a no-op.

Inputs: share_id (required). Returns: ok

share_pageShare page (public link)AInspect

Mint a public share link for a page — a URL anyone can open with NO tela login (editor+). Returns the absolute url plus the link's id and token. Options: include_descendants shares the whole subtree (not just this page); password gates it behind a passphrase; expires_at (UTC 'YYYY-MM-DD HH:MM:SS') auto-expires it. Each call mints a NEW link — use list_shares to see existing ones and revoke_share to disable one. This shares a single page tree; to publish a WHOLE space, use the space's visibility setting instead.

Inputs: page_id (required), password, expires_at, include_descendants. Returns: share

sheet_authoring_guideSheet authoring guideA
Read-only
Inspect

Return the full tela spreadsheet (sheet) authoring guide as markdown — the Defter text format, coordinates, the formula functions, and the ```defter-style styling/format/chart syntax. Read this FIRST when creating or editing a sheet (a sheet=true page) so you write valid, well-formatted Defter markdown instead of guessing.

Returns: guide

submit_feedbackSubmit feedbackAInspect

Submit free-text feedback about tela / tela-mcp itself (friction, bugs, missing capabilities). NOT for page content — use add_comment for that.

Inputs: body (required), subject (required), kind. Returns: feedback

treat_deck_imageTreat deck imageAInspect

Make an image tahta-grade for a deck's variant (editor+): crop to 16:9, apply a scheme-aware duotone (palette-lock), grain, and an optional contrast scrim. Upload the source with upload_attachment first, then pass its attachment_id; the treated JPEG is saved as a new attachment and returned with a ready-to-place snippet for a bg:/image: slot. This is the tahta-imagine treat step — a FALLBACK for off-palette or reused images; prefer rich on-palette images raw, and never duotone (mode=duotone) a real-colour focal subject — use mode=none for those. See the imagery capability module (deck_authoring_guide module="imagery").

Inputs: id (required), attachment_id (required), mode, scrim, +1 more. Returns: url, note, variant, markdown

update_commentUpdate commentA
Idempotent
Inspect

Edit or resolve an existing comment (editor+); pass exactly one of body / resolved. {resolved: true} closes a thread once you have acted on it, {resolved: false} reopens one — idempotent, so re-resolving an already-resolved comment succeeds instead of erroring. Resolve applies to ROOT comments only. {body: ...} rewrites the text and is author-only: it works on comments this key wrote, and is refused on a person's comment. To answer someone rather than close them out, use add_comment with parent_id.

Inputs: comment_id (required), body, resolved. Returns: comment

update_pageUpdate pageA
Idempotent
Inspect

Patch a page's title, body, props and/or draft status (editor+). A body change auto-snapshots a revision. Pass base_version (from get_page) to refuse the write if someone edited the page since you read it. tela renders a rich block palette beyond plain markdown — to-do list, pull quote, callout, collapsible, tabs, kanban board, stat grid, timeline, calendar, poll, chart, embed, mermaid diagram, image, file attachment, code block, equation, inline math, table, highlight, wikilink, footnote. Prefer these over walls of text; read the tela://authoring-guide resource (or this server's instructions) for exact syntax. After writing, call lint_page — the reader silently drops raw HTML and unwraps unrecognized blocks, which you cannot see from the markdown. When asked for a presentation, slides, a slide deck, or a talk (any phrasing) — not a prose doc — set the page property deck=true (and optionally variant=) and write the body as slides separated by --- using the tahta layouts; call the deck_authoring_guide tool (or read the tela://deck-authoring-guide resource) for the layouts, fields, components, and variants. When asked for a spreadsheet, a table of data with formulas/totals, a budget, a tracker, or any grid that computes — not a prose doc — set the page property sheet=true and write the body as Defter markdown (compact GFM tables + an optional ```defter-style block); call the sheet_authoring_guide tool (or read the tela://sheet-authoring-guide resource) for the format, formulas, and styling.

Inputs: id (required), body, props, title, +2 more. Returns: lint, page

update_spaceUpdate spaceA
Idempotent
Inspect

Patch a space's name and/or slug (editor+); idempotent — pass only the field(s) you want to change. Changing the slug updates the space's URL path (existing page ids and links still resolve). To create a space use create_space, to read it use get_space, to remove it use delete_space.

Inputs: id (required), name, slug. Returns: space

upload_attachmentUpload attachmentAInspect

Upload a file (base64) and attach it to a page (editor+) — an image, PDF, dataset, etc. Returns the serve URL plus a ready-to-paste markdown snippet; then call update_page or patch_page to place it in the body (images render inline as , other files as a download card). It also returns share_url — the link to give a PERSON who asks for the file, since it previews it and unfurls as a card, unlike the raw download_url. The payload is inline base64 and rides through the model's context, so it is capped at 5 MB — keep it to small files (screenshots, charts, short PDFs). For larger files use request_attachment_upload (a direct PUT URL, bytes off-context), or the tela editor (drag-drop).

Inputs: name (required), page_id (required), data_base64 (required). Returns: attachment

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 50 tools

    Disambiguation4/5

    The server has many overlapping retrieval and authoring tools (search/fetch/research/get_page/read_chunk; preview/lint page vs deck), but the descriptions explicitly differentiate each with cross-references and preferred-tool guidance. A few boundaries remain thin, such as fetch vs get_page compatibility aliasing and the multi-step attachment upload flow, so not every tool is instantly separable.

    Naming Consistency4/5

    Nearly all names are snake_case and many follow a verb_noun pattern (list_pages, create_space, delete_attachment), with a consistent atlas_ prefix for the doc-generation subgroup. The main deviations are noun-phrase guide/utility tools (deck_authoring_guide, knowledge_gaps, fetch), so the convention is readable but not perfectly uniform.

    Tool Count1/5

    At 50 tools, the surface is far beyond the typical 3-15 well-scoped range and is an extreme mismatch for a single MCP server, even accounting for the broad wiki/deck/sheet/Atlas scope. Several areas could be consolidated, such as the three-step attachment upload flow, separate guide fetches, and fetch/get_page overlap.

    Completeness4/5

    The surface covers page/space/comment/attachment/share/revision lifecycles plus authoring guides, lint/preview, decks, sheets, research, and Atlas doc generation, which is very broad. A few lifecycle gaps remain, such as no delete_comment, no restore-page operation, and limited attachment metadata editing, so it is not quite a dead-end-free surface.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      This is a connector to allow Claude Desktop (or any MCP client) to read and search any directory containing Markdown notes (such as an Obsidian vault).
      837 npm
      1,352
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Basic Memory is a knowledge management system that allows you to build a persistent semantic graph from conversations with AI assistants. All knowledge is stored in standard Markdown files on your computer, giving you full control and ownership of your data. Integrates directly with Obsidan.md
      2
      12
      12,352 PyPI
      4,691
      AGPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A token-optimized MCP server for Notion that reduces context window usage by 73% while preserving full functionality, enabling AI assistants to interact with Notion efficiently.
      20 npm
      2
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Self-hosted enterprise knowledge hub that compiles organizational docs into a structured wiki and serves it to AI clients via MCP with fine-grained access control.
      1
      1,529
      -