Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Tana Codemode

БесплатноНе проверен

Enables dynamic TypeScript code execution against Tana's Local API for flexible knowledge management operations including workspaces, nodes, tags, search, and f

GitHubEmbed

Описание

Enables dynamic TypeScript code execution against Tana's Local API for flexible knowledge management operations including workspaces, nodes, tags, search, and field management.

README

Codemode MCP server for Tana. AI writes TypeScript that executes directly against the Tana Local API.

Requires: Tana Desktop with Local API enabled + an API token (Settings → API).

Install

Binary — download from GitHub Releases, chmod +x, run.

npm (Node.js ≥ 20):

npm install -g tana-mcp-codemode

From source (Bun): git clonebun installbun run src/entry-bun.ts

Setup

Run the interactive setup script — detects your installation, prompts for credentials, and configures Claude Code and/or Claude Desktop automatically:

bun run setup
# or for team-shared config:
bun run setup --scope project

Manual MCP Configuration

{
  "mcpServers": {
    "tana": {
      "command": "tana-mcp-codemode",
      "env": {
        "TANA_API_TOKEN": "your-token-here",
        "MAIN_TANA_WORKSPACE": "My Workspace"
      }
    }
  }
}

For binary: set command to the binary path. For source: "command": "bun", "args": ["run", "/path/to/src/entry-bun.ts"].

Environment Variables

Variable Default Description
TANA_API_TOKEN required Bearer token from Tana Desktop
TANA_API_URL http://127.0.0.1:8262 Tana Local API URL
MAIN_TANA_WORKSPACE Default workspace name or ID
TANA_SEARCH_WORKSPACES Comma-separated workspaces for search scope
TANA_TIMEOUT 10000 Request timeout in ms
TANA_HISTORY_PATH platform default Custom SQLite history path

Usage Examples

// Search nodes
const results = await tana.nodes.search("project ideas", {
  workspaceIds: [tana.workspace.id]
});

// Import with tags and fields
await tana.import(tana.workspace.id, `
%%tana%%
- Meeting notes #meeting
  - Date:: [[2024-01-15]]
  - Attendees:: Alice, Bob
`);

API Reference

Namespace Methods
tana.workspace pre-resolved default workspace
tana.workspaces list()
tana.nodes search(), read(), getChildren(), edit(), move(), trash(), check(), uncheck(), open()
tana.tags listAll(), getSchema(), create(), modify(), addField(), setCheckbox()
tana.fields setOption(), setContent(), getFieldOptions()
tana.calendar getOrCreate()
tana.import() import Tana Paste content
tana.health() API health check

Development

bun run start        # MCP server
bun run dev          # watch mode
bun run test         # tests
bun run build        # Node.js dist (tsup)
bun run build:binary # self-contained binary
bun run debug        # debug UI at :3333

License

MIT

from github.com/fabiogaliano/tana-mcp-codemode

Установить Tana Codemode в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install tana-codemode

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add tana-codemode -- npx -y tana-mcp-codemode

Пошаговые гайды: как установить Tana Codemode

FAQ

Tana Codemode MCP бесплатный?

Да, Tana Codemode MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Tana Codemode?

Нет, Tana Codemode работает без API-ключей и переменных окружения.

Tana Codemode — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Tana Codemode в Claude Desktop, Claude Code или Cursor?

Открой Tana Codemode на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Tana Codemode with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development